/*
Theme Name: Vem da Uva
Theme URI: https://vemdauva.com.br
Author: Marcos Vieira
Author URI: https://vemdauva.com.br
Description: Tema profissional para blog de vinhos com design moderno e otimizado para performance
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vemdauva
Tags: blog, wine, custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #C41E3A;
    --color-secondary: #6B1C23;
    --color-accent: #F4D9C6;
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-light: #F9F9F9;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

h1 { font-size: 42px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
}

.header-top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    margin-left: 16px;
    font-size: 18px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    font-size: 40px;
}

.site-title {
    font-size: 28px;
    margin: 0;
}

.site-title a {
    color: var(--color-secondary);
}

.site-description {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-navigation .nav-menu a {
    font-weight: 600;
    color: var(--color-text);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-navigation .nav-menu a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ==========================================
   CONTENT
   ========================================== */
.site-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.content-area {
    min-width: 0;
}

/* ==========================================
   POSTS GRID
   ========================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.posts-grid article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.posts-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.entry-header {
    padding: 24px;
}

.entry-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.entry-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--color-text-light);
    margin: 12px 0;
}

.entry-summary {
    padding: 0 24px 24px;
    color: var(--color-text-light);
}

/* ==========================================
   SINGLE POST
   ========================================== */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content ul,
.entry-content ol {
    margin: 24px 0 24px 24px;
}

.entry-content li {
    margin-bottom: 12px;
}

.entry-content img {
    border-radius: 8px;
    margin: 32px 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar .widget {
    margin-bottom: 32px;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 20px;
    color: var(--color-secondary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #fff;
    margin-top: 80px;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-column h3,
.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-column ul,
.footer-section ul {
    list-style: none;
}

.footer-column li,
.footer-section li {
    margin-bottom: 12px;
}

.footer-column a,
.footer-section a {
    color: rgba(255,255,255,0.8);
}

.footer-column a:hover,
.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 24px 0;
    text-align: center;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 60px 0;
}

.pagination .page-numbers {
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    color: var(--color-text);
    font-weight: 600;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
}

/* ==========================================
   BREADCRUMBS
   ========================================== */
.breadcrumbs {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.breadcrumbs a {
    color: var(--color-primary);
}

/* ==========================================
   CALLOUT BOXES
   ========================================== */
.callout-box {
    padding: 24px;
    border-radius: 8px;
    margin: 32px 0;
    border-left: 4px solid;
}

.callout-tip {
    background: #E8F5E9;
    border-color: #4CAF50;
}

.callout-warning {
    background: #FFF3E0;
    border-color: #FF9800;
}

.callout-info {
    background: #E3F2FD;
    border-color: #2196F3;
}

.callout-danger {
    background: #FFEBEE;
    border-color: #F44336;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 968px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .header-main {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
