/*
Theme Name: Foco no Mercado
Theme URI: https://seusite.com
Author: Seu Nome
Author URI: https://seusite.com
Description: Portal de notícias econômicas moderno e responsivo
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foconomercado
*/

/* ========================================
   RESET E VARIÁVEIS GLOBAIS
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-color: #0b2d5c;
    --primary-dark: #051a38;
    --primary-light: #1a4b8c;
    --accent-color: #ff6b00;
    --accent-hover: #e65c00;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Neutral Scale */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-secondary: #f1f5f9;
    
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverted: #ffffff;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Spacing */
    --container-width: 1280px;
    --header-height: 70px;
}

/* ========================================
   TIPOGRAFIA
======================================== */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

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

/* ========================================
   LAYOUT GERAL
======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    padding: 40px 0 80px;
}

/* ========================================
   HEADER & NAVEGAÇÃO
======================================== */
.site-header {
    background: rgba(11, 45, 92, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-inverted);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto; /* Allow height to grow */
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    width: 100%;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background: #fff;
    transform: translateY(-2px);
}

/* Remove underline effect since we are using button style */
.main-nav a::after {
    display: none;
}

.theme-toggle {
    position: absolute;
    right: 20px;
    top: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-inverted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(15deg);
}

/* ========================================
   MARKET TICKER
======================================== */
.ticker-bar {
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
    overflow: hidden;
}

.ticker-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    /* Removed animation: ticker-slide */
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.9rem;
}


.ticker-item strong {
    color: var(--text-inverted);
    font-weight: 700;
}

.ticker-item .value {
    color: rgba(255,255,255,0.9);
    font-variant-numeric: tabular-nums;
}

.ticker-item .positive { color: #6ee7b7; } /* Verde claro */
.ticker-item .negative { color: #fca5a5; } /* Vermelho claro */
.ticker-item .neutral { color: #e2e8f0; }

/* ========================================
   COMPONENTES UI (CARDS)
======================================== */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 16px;
    border-left: 4px solid var(--accent-color);
}

/* Card Base Styles */
.news-card, .featured-card, .sidebar-widget {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    
    /* Fix: Cards height consistency */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover, .featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-medium);
}

/* Featured Section (New Grid Layout: 1 Big + 5 Small) */
.featured-section {
    margin-bottom: 60px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "big latest"
        "small1 latest"
        "small2 market";
    gap: 24px;
}

.grid-big { grid-area: big; }
.grid-small.first { grid-area: small1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-small.second { grid-area: small2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-latest { grid-area: latest; }
.grid-market { grid-area: market; }

.featured-item {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.featured-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.featured-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

/* Big Item Styles */
.featured-item.big .item-image {
    position: relative;
    height: 420px;
    width: 100%;
    z-index: 1;
}

.featured-item.big .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-item.big .item-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.featured-item.big h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.featured-item.big .meta {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Small Item Styles */
.featured-item.small {
    height: 100%;
}

.featured-item.small .item-image {
    height: 160px;
    position: relative;
}

.featured-item.small .item-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-item.small h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-item.small .meta {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Common Image Styles */
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Small card image constraints */
.card-image-small {
    height: 160px;
    overflow: hidden;
}
.card-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-item:hover .item-image img {
    transform: scale(1.05);
}

/* Category Tags */
.item-category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.badge-new {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.source-badge {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

/* ========================================
   UX ENHANCEMENTS
======================================== */
/* Reading Progress */
.reading-progress {
    position: fixed;
    top: var(--header-height); /* Below header */
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--warning));
    z-index: 999;
    width: 0%;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .reading-progress {
        display: none;
    }
}
/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Font Controls */
.font-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    width: fit-content;
}

.font-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 5px;
}

.font-controls button {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.font-controls button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-light) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img:not(.loaded) {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Categories / Tags - IMPROVED */
.card-category, .card-category-small {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem; /* Aumentado ligeiramente */
    font-weight: 800; /* Mais peso */
    text-transform: uppercase;
    padding: 8px 14px; /* Mais padding */
    border-radius: 4px; /* Mais quadrado para impacto */
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* Sombra mais forte */
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2); /* Borda sutil para contraste */
}

/* Tags Colors - Cores mais vibrantes */
.tag-economia { background-color: #0f4c81; } /* Classic Blue */
.tag-mercados { background-color: #10b981; } /* Emerald Vivid */
.tag-investimentos { background-color: #8b5cf6; } /* Violet Vivid */
.tag-empresas { background-color: #3b82f6; } /* Blue Vivid */
.tag-empreendedorismo { background-color: #ec4899; } /* Pink Vivid */

/* Card Content */
.card-content, .card-content-small {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card.alt {
    display: grid;
    grid-template-columns: 180px 1fr;
}
.news-card.alt .card-image-small {
    height: 100%;
}
.news-card.alt .card-content-small {
    padding: 16px 20px;
}

.card-content h3, .card-content-small h4 {
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-content h3 a:hover, .card-content-small h4 a:hover {
    color: var(--accent-color);
}

.card-excerpt, .excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.card-meta, .date-small {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   GRID DE NOTÍCIAS
======================================== */
.news-section {
    margin-bottom: 60px;
}
.section-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.section-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.section-right .news-card.small-right .card-image-small {
    height: 120px;
}
.section-right .news-card.small-right .card-content-small {
    padding: 16px;
}
.news-section.section-empresas .news-grid {
    grid-template-columns: repeat(3, 1fr);
}
.news-section.section-empreendedorismo .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}
.news-section.section-investimentos .news-grid {
    grid-template-columns: repeat(3, 1fr);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch; /* Garante altura igual */
}
.trending-bar {
    margin-bottom: 24px;
}
.trending-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.trend-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--bg-secondary);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}
.trend-pill:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   SIDEBAR & WIDGETS
======================================== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.sidebar-widget {
    padding: 24px;
    margin-bottom: 32px;
    height: auto; /* Widget não precisa esticar como card */
}
.market-widget .market-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.market-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.m-tile {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 6px;
}
.m-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    gap: 4px;
}
.m-head .m-label {
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.9rem;
}
.m-head .m-change {
    font-weight: 700;
    font-size: 0.8rem;
}
.m-head .m-arrow {
    margin-left: auto;
    font-weight: 800;
}
.m-head .m-change.positive { color: var(--success); }
.m-head .m-change.negative { color: var(--danger); }
.m-head .m-change.neutral { color: var(--info); }
.m-head .m-arrow.positive { color: var(--success); }
.m-head .m-arrow.negative { color: var(--danger); }
.m-head .m-arrow.neutral { color: var(--info); }
.m-value {
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.market-widget .market-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.market-widget .m-label {
    font-weight: 800;
    color: var(--text-main);
}
.market-widget .m-value {
    font-weight: 600;
    color: var(--text-secondary);
}
.sparkline {
    width: 100%;
    height: 30px;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .market-tiles {
        grid-template-columns: 1fr;
    }
}

.latest-news-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.latest-news-item:last-child { border-bottom: none; }

.latest-news-item a {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.latest-news-item a:hover {
    color: var(--primary-color);
}

.latest-news-item .time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Slide-in animation for latest news */
.latest-news-item {
    will-change: transform, opacity;
}
.latest-news-item.slide-in {
    animation: enterDown 0.4s ease both;
}
@keyframes enterDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background-color: var(--primary-dark);
    color: #e2e8f0;
    padding: 60px 0 30px;
    margin-top: 60px;
}
.category-hero {
    padding: 20px 0 10px;
}
.category-title {
    font-size: 2rem;
    margin-bottom: 8px;
}
.category-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 24px;
    max-width: 400px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}

/* ========================================
   ARTICLE READING MODE
======================================== */
.single-post-content {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.article-body {
    font-family: 'Merriweather', serif; /* Fonte serifada para leitura */
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.article-body p { margin-bottom: 1.5em; }

.article-body h2 { 
    margin-top: 2em; 
    margin-bottom: 0.75em;
    font-family: 'Inter', sans-serif;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ========================================
   RESPONSIVIDADE
======================================== */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "big"
            "small1"
            "latest"
            "small2"
            "market";
    }
    .featured-item.big {
        grid-column: auto;
        grid-row: auto;
    }
    .featured-item.big .item-image {
        position: relative;
        height: 320px;
    }
    .featured-item.big .item-overlay {
        position: relative;
        background: var(--primary-color);
        padding: 20px;
    }
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    
    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "big"
            "latest"
            "small1"
            "small2"
            "market";
    }
    .featured-item.big {
        grid-column: span 1;
    }

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
    }
    
    .site-header {
        height: auto;
        position: relative;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        margin-top: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
    .section-grid-2-1 {
        grid-template-columns: 1fr;
    }
    .section-left {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   DARK MODE
======================================== */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-secondary: #334155;
    
    --text-main: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverted: #ffffff;
    
    --border-light: #334155;
    --border-medium: #475569;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}

[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .article-body {
    color: #e2e8f0;
}

/* Fix for Dark Mode "Últimas Notícias" */
[data-theme="dark"] .widget-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--text-inverted);
}

[data-theme="dark"] .latest-news-item a {
    color: var(--text-secondary);
}

[data-theme="dark"] .latest-news-item a:hover {
    color: var(--accent-color);
}

/* Subcategory Buttons / See More Enhancements */
.see-more, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 24px;
}

.see-more:hover, .btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

[data-theme="dark"] .see-more {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .see-more:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* General Polish & Intelligence */
/* Better Card Hover */
.news-card:hover .card-content h3 a,
.featured-item:hover .item-content h3 a {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

[data-theme="dark"] .news-card:hover .card-content h3 a {
    color: var(--accent-color);
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease-in-out;
}

/* Typography Enhancements */
.card-content h3 {
    font-weight: 800; /* Bolder titles */
    letter-spacing: -0.02em;
}

.excerpt {
    font-weight: 400;
    color: var(--text-secondary);
}

[data-theme="dark"] .excerpt {
    color: #94a3b8;
}
