/*
Theme Name: Blog Sophia
Theme URI: https://blog.sophiaramos.adv.br/
Description: A news portal theme inspired by Correio Braziliense with Sophia Ramos aesthetics.
Author: Antigravity
Version: 1.1.11
Text Domain: blog-sophia
*/

:root {
    --primary: #C4A46F;
    --text-dark: #2D2D2D;
    --text-gray: #8C8C8C;
    --bg-white: #FFFFFF;
    --bg-cream: #F9F7F2;
    --border-color: #E0E0E0;
    --font-main: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Layout Styles Inspired by Correio Braziliense */

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-left, .header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.header-menu a {
    color: var(--text-dark);
}

.header-menu a:hover {
    color: var(--primary);
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.sub-header {
    background: var(--bg-cream);
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    border-top: 1px solid var(--border-color);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.hero-main {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 450px; /* Limite máximo para não ficar gigante */
    background: #000;
    color: #fff;
    overflow: hidden;
    border-radius: 4px;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    width: 100%;
}

.hero-category {
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-title {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-item-small {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.hero-item-small:last-child {
    border-bottom: none;
}

.hero-item-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-item-text h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-cream);
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-dark);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box; /* Garante que caiba no container */
    text-align: center;
}

.cta-button:hover {
    background-color: #b3935d;
    transform: translateY(-2px);
    color: #fff;
}

.grid-item h3 {
    font-size: 1.1rem;
    margin: 10px 0;
}

.grid-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* Main Content Area */
.main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.post-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.post-thumb {
    width: 250px;
    aspect-ratio: 3 / 2;
    max-height: 160px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-top: 0;
}

.post-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Sidebar */
.widget-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section, .news-grid, .main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .site-logo a {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .header-left, .header-right {
        justify-content: center;
        width: 100%;
    }
    
    .site-title {
        text-align: center;
    }
}
