/* main.bundled.css — Gerado automaticamente por build-css-bundle.cjs
 * NÃO EDITAR MANUALMENTE. Edite os arquivos fonte em css/ e re-execute:
 *   node scripts/build-css-bundle.cjs
 * 
 * Gerado em: 2026-02-27T02:39:35.026Z
 * Total de imports resolvidos inline para eliminar waterfall HTTP.
 */

/* main.css - Arquivo principal que importa todos os módulos CSS */

/* Base */
/* === base/global.css === */
/* global.css - Estilos globais do site */

html {
    /* scroll-behavior: smooth foi REMOVIDO (25-02-2026).
       Motivo: afetava scroll programático e scroll restoration do browser no iOS Safari,
       causando "scroll preso" no feed mobile. Os locais que precisam de scroll suave
       já usam behavior:'smooth' explícito no JS (scrollToSection, scrollIntoView). */
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.content-area-wrapper {
    min-height: calc(100vh - 10rem); 
}



/* Componentes */
/* === components/article.css === */
/* article.css - Estilos para artigos e seus componentes */

/* ==================== HERO SECTION - LAYOUT RESPONSIVO ==================== */

/* Container principal do hero */
#home {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

@media (min-width: 1024px) {
    #home {
        flex-direction: row !important;
        align-items: stretch !important;
        margin-bottom: 2rem !important;
    }
}

/* Container do card hero (lado esquerdo) */
#hero-main-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

@media (min-width: 1024px) {
    #hero-main-content {
        width: 66.666667% !important;
    }
}

/* Card hero principal com moldura e animações */
.hero-main-article {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
    background-color: white !important;
}

/* Animação de hover obrigatória */
.hero-main-article:hover {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.35) !important;
    transform: translateY(-2px) !important;
}

/* Container da imagem com aspect ratio 16:9 FIXO */
.hero-image-container {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}

/* Imagem do hero com object-fit cover */
.hero-main-article img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
}

/* Animação de zoom na imagem */
.hero-main-article:hover img {
    transform: scale(1.05) !important;
}

/* Container do texto que se expande */
.hero-text-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.5rem !important;
    min-height: 200px !important;
}

/* Sidebar responsiva */
#hero-sidebar-popular {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    min-height: 400px !important;
    background: linear-gradient(145deg, #ffffff, #fafafa) !important;
}

@media (min-width: 1024px) {
    #hero-sidebar-popular {
        width: 33.333333% !important;
        min-height: auto !important;
    }
}

/* Estilos específicos para os itens populares */
.popular-article-item {
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    padding: 16px 8px !important;
    margin: 0 -8px !important;
}

.popular-article-item:hover {
    background: rgba(155, 196, 41, 0.05) !important;
    transform: translateX(4px) !important;
    border-left: 3px solid #9bc429 !important;
    padding-left: 13px !important;
}

.popular-number-badge {
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.popular-number-badge::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s ease !important;
    opacity: 0 !important;
}

.popular-article-item:hover .popular-number-badge::before {
    animation: shine 0.6s ease-in-out !important;
    opacity: 1 !important;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.popular-article-item h3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 18px !important;
}

.popular-article-item:hover h3 {
    color: #2d3748 !important;
}

/* Melhoria na tag de categoria */
.popular-article-item .bg-opacity-10 {
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #787876 !important;
}

.popular-article-item:hover .bg-opacity-10 {
    background-color: #9bc429 !important;
    color: white !important;
}

/* ==================== CARDS PADRÃO ==================== */

.article-card img, 
.featured-article-card img {
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
}

/* ==================== RESPONSIVIDADE ==================== */

@media (max-width: 640px) {
    .hero-text-content {
        padding: 1rem !important;
        min-height: 150px !important;
    }
    
    #home {
        gap: 1.5rem !important;
    }
    
    #hero-sidebar-popular {
        padding: 1rem !important;
    }
}

@media (min-width: 640px) and (max-width: 1024px) {
    .hero-text-content {
        min-height: 180px !important;
    }
}

@media (min-width: 1200px) {
    .hero-text-content {
        min-height: 220px !important;
        padding: 1rem !important;
    }
}

/* ==================== ESTILOS PARA CONTEÚDO DE ARTIGO ==================== */

.article-content h1, 
.article-content h2, 
.article-content h3 {
    font-weight: 700;
    margin-top: 1.5em; 
    margin-bottom: 0.5em;
}

.article-content h1 { 
    font-size: 1.875rem; 
}

.article-content h2 { 
    font-size: 1.5rem; 
}

.article-content h3 { 
    font-size: 1.25rem; 
}

.article-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-color-secondary, #555);
    margin-top: 0.25em;
    margin-bottom: 0.75em;
    line-height: 1.5;
}

.article-content p {
    margin-bottom: 1em; 
    line-height: 1.7; 
}

.article-content ul, 
.article-content ol {
    margin-left: 1.5em; 
    margin-bottom: 1em;
}

.article-content ul { 
    list-style-type: disc; 
}

.article-content ol { 
    list-style-type: decimal; 
}

.article-content a {
    color: var(--highlight-color); 
    text-decoration: underline;
    font-weight: 500;
}

.article-content blockquote {
    border-left: 4px solid var(--highlight-color); 
    padding-left: 1em; 
    margin: 1.5em 0; 
    font-style: italic;
    color: var(--blockquote-text-color); 
}

.article-content img {
    max-width: 100%; 
    height: auto; 
    margin: 1.5em 0; 
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

 .article-content {
     overflow-wrap: anywhere;
     word-break: break-word;
 }

 .article-content pre,
 .article-content table {
     max-width: 100%;
     overflow-x: auto;
 }

/* ==================== TABELAS (geradas pela LLM) ==================== */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-content thead {
    background-color: #f3f4f6;
}

.article-content th {
    padding: 0.75em 1em;
    text-align: left;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 2px solid #d1d5db;
    white-space: nowrap;
}

.article-content td {
    padding: 0.65em 1em;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
}

.article-content tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.article-content tbody tr:hover {
    background-color: #f0f4ff;
}

.article-content caption {
    caption-side: bottom;
    padding: 0.5em;
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}

/* ==================== STRONG / EM / MARK ==================== */
.article-content strong,
.article-content b {
    font-weight: 700;
    color: inherit;
}

.article-content em,
.article-content i {
    font-style: italic;
}

.article-content mark {
    background-color: #fef3c7;
    padding: 0.1em 0.3em;
    border-radius: 0.2em;
}

/* ==================== HR (separador) ==================== */
.article-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}

/* ==================== CODE / PRE ==================== */
.article-content code {
    background-color: #f3f4f6;
    color: #b91c1c;
    padding: 0.15em 0.4em;
    border-radius: 0.25em;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Menlo', 'Consolas', monospace;
}

.article-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1.25em;
    border-radius: 0.5rem;
    margin: 1.5em 0;
    line-height: 1.6;
    font-size: 0.9em;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* ==================== FIGURE / FIGCAPTION ==================== */
.article-content figure {
    margin: 1.5em 0;
    text-align: center;
}

.article-content figcaption {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5em;
    font-style: italic;
}

/* ==================== DL / DT / DD ==================== */
.article-content dl {
    margin: 1.5em 0;
}

.article-content dt {
    font-weight: 700;
    margin-top: 0.75em;
    color: #1f2937;
}

.article-content dd {
    margin-left: 1.5em;
    margin-bottom: 0.5em;
    color: #374151;
}

/* ==================== SUB / SUP ==================== */
.article-content sub,
.article-content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.article-content sup { top: -0.5em; }
.article-content sub { bottom: -0.25em; }

 .article-content iframe {
     max-width: 100%;
 }

 /* ==================== ADS SIDEBAR ==================== */
 .article-layout-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 24px;
     min-width: 0;
 }

 .article-layout-grid > * {
     min-width: 0;
 }
 
 .article-layout-left,
 .article-layout-right {
     display: none;
 }
 
 @media (min-width: 1280px) {
     .article-layout-grid.has-side-ads {
         grid-template-columns: 300px minmax(0, 1fr) 300px;
         align-items: start;
     }
 
     .article-layout-grid.has-side-ads .article-layout-left,
     .article-layout-grid.has-side-ads .article-layout-right {
         display: block;
     }

     .article-layout-grid.has-side-ads .article-layout-left:empty,
     .article-layout-grid.has-side-ads .article-layout-right:empty {
         display: none;
     }

     /* Sidebar de conteúdo (Mais Populares + CTA YouTube) sem ads laterais */
     .article-layout-grid.has-sidebar-content {
         grid-template-columns: minmax(0, 1fr) 320px;
         align-items: start;
     }

     .article-layout-grid.has-sidebar-content .article-layout-left {
         display: none;
     }

     .article-layout-grid.has-sidebar-content .article-layout-right {
         display: block;
     }

     /* has-side-ads tem precedência sobre has-sidebar-content */
     .article-layout-grid.has-side-ads.has-sidebar-content {
         grid-template-columns: 300px minmax(0, 1fr) 300px;
     }

     .article-layout-grid.has-side-ads.has-sidebar-content .article-layout-left {
         display: block;
     }
 }
 
 .article-ad-sidebar {
     width: 300px;
     min-height: 600px;
     position: sticky;
     top: 120px;
     margin-bottom: 20px;
     background: #f5f5f5;
     border: 1px solid #e5e7eb;
     border-radius: 4px;
     overflow: hidden;
 }
 .article-ad-sidebar.left { margin-right: 0; }
 .article-ad-sidebar.right { margin-left: 0; }
 @media (max-width: 1279px) {
     .article-ad-sidebar { display: none !important; }
     /* Slot de anúncio inline visível em telas menores */
     .article-ad-inline { display: block !important; }
 }

@media (min-width: 1280px) {
    /* Em telas grandes o inline é oculto para evitar duplicidade */
    .article-ad-inline { display: none !important; }
}

/* ==================== BADGE "NOVO" (S1-4) ==================== */

.badge-new {
    display: inline-block;
    background-color: #9bc429;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

/* ==================== BOTÕES DE COMPARTILHAMENTO SOCIAL (S1-3) ==================== */

.share-buttons-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin: 1rem 0;
    border-top: 1px solid var(--card-border-color, #e5e7eb);
    border-bottom: 1px solid var(--card-border-color, #e5e7eb);
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.share-btn-whatsapp { background-color: #25D366; }
.share-btn-twitter { background-color: #1DA1F2; }
.share-btn-linkedin { background-color: #0A66C2; }
.share-btn-copy { background-color: #6B7280; }

.share-btn-copy.copied {
    background-color: #9bc429;
}

@media (max-width: 640px) {
    .share-buttons-bar {
        justify-content: center;
    }
}

/* ==================== BARRA DE PROGRESSO DE LEITURA (S1-6) ==================== */

#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #9bc429, #7ba01f);
    z-index: 9999;
    transition: width 0.1s linear;
    display: none;
    pointer-events: none;
}

/* ==================== ARTIGOS RELACIONADOS - "LEIA TAMBÉM" (S1-2) ==================== */

.related-articles-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
}

.related-articles-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

@media (min-width: 769px) and (max-width: 1024px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-article-card {
    transition: transform 0.2s ease;
}

.related-article-card:hover {
    transform: translateY(-2px);
}

/* Skeleton para artigos relacionados enquanto carrega */
.related-articles-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-articles-skeleton .skeleton-card {
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
}

.related-articles-skeleton .skeleton-card .skeleton-img {
    width: 100%;
    aspect-ratio: 200 / 112;
    background: #e5e7eb;
}

.related-articles-skeleton .skeleton-card .skeleton-text {
    padding: 0.75rem;
}

.related-articles-skeleton .skeleton-card .skeleton-line {
    height: 0.75rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.related-articles-skeleton .skeleton-card .skeleton-line:last-child {
    width: 60%;
}

@media (max-width: 768px) {
    .related-articles-skeleton {
        grid-template-columns: 1fr;
    }
}

/* ==================== P1-FIX: SIDEBAR MOBILE DENTRO DO ARTIGO ==================== */

.article-sidebar-mobile {
    display: block;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 1280px) {
    .article-sidebar-mobile {
        display: none !important;
    }
}

/* ==================== P2-FIX: WRAPPER ADS INLINE COM COLAPSO ==================== */

.article-ad-inline-wrapper {
    min-height: 0;
    overflow: hidden;
}

/* ==================== SPRINT 3: TAG CHIPS ==================== */

.article-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.article-tags-container:empty {
    display: none;
}

.article-tags-container .tag-chip-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    margin-right: 0.25rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.tag-chip:hover {
    transform: translateY(-1px);
}

.tag-chip--ticker {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-chip--ticker:hover {
    background-color: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.tag-chip--theme {
    background-color: rgba(155, 196, 41, 0.1);
    color: #6b8e23;
    border: 1px solid rgba(155, 196, 41, 0.2);
}

.tag-chip--theme:hover {
    background-color: rgba(155, 196, 41, 0.2);
    color: #556b2f;
}

/* ==================== LINE CLAMP UTILITY ==================== */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* === components/sections.css === */
/* sections.css - Estilos para as seções do site */

section[id] { 
     scroll-margin-top: 110px; 
}

.section-title { 
    font-size: 1.75rem; 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
    padding-bottom: 0.5rem; 
    border-bottom-width: 3px;
}

.hero-section-line {
    height: 3px;
    width: 80px; 
    margin-bottom: 1rem;
}


/* === components/navigation.css === */
/* navigation.css - D4: Estilos conforme protótipo */

/* ==================== DESKTOP NAV ==================== */

/* Links simples sem background arredondado */
#mainNav a.nav-link {
    color: var(--header-link-color, #e0e0e0);
    background-color: transparent;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* Hover: texto verde, sem background */
#mainNav a.nav-link:hover {
    color: var(--highlight-color, #9bc429);
    background-color: transparent;
}

#mainNav a.nav-link:focus-visible {
    outline: 2px solid var(--highlight-color, #9bc429);
    outline-offset: 2px;
}

/* Utility links (Sobre, Contato): estilo discreto */
#mainNav a.nav-link--utility {
    opacity: 0.85;
}

#mainNav a.nav-link--utility:hover {
    opacity: 1;
}

/* CTA links (Canal YT, Membros, Grupo VIP): botão verde destacado */
#mainNav a.nav-link--cta {
    background-color: var(--highlight-color, #9bc429);
    color: #1d2210;
    border-radius: 0.25rem;
    border-bottom: none;
    padding: 0.5rem 1rem;
    font-weight: 700;
}

#mainNav a.nav-link--cta:hover {
    filter: brightness(1.1);
    color: #1d2210;
}

/* Link ativo no desktop: border-bottom verde, sem background cheio */
#mainNav a.nav-link-active {
    color: var(--header-hover-link-color, #ffffff) !important;
    border-bottom-color: var(--highlight-color, #9bc429) !important;
    background-color: transparent !important;
    font-weight: 600;
}

/* CTA ativo mantém estilo de botão */
#mainNav a.nav-link--cta.nav-link-active {
    background-color: var(--highlight-color, #9bc429) !important;
    border-bottom: none !important;
}

#mainNav a.nav-link-active:hover {
    opacity: 0.9;
}

/* ==================== MOBILE NAV ==================== */

#mobileMenu a.nav-link {
    color: var(--header-link-color, #e0e0e0);
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#mobileMenu a.nav-link:hover {
    color: var(--header-hover-link-color, #ffffff);
}

#mobileMenu a.nav-link:focus-visible {
    outline: 2px solid var(--highlight-color, #9bc429);
    outline-offset: 2px;
}

#mobileMenu a.nav-link-active {
    color: var(--header-active-link-color, #ffffff) !important;
    background-color: rgba(155, 196, 41, 0.15) !important;
    font-weight: 600;
}

#mobileMenu a.nav-link-active:hover {
    opacity: 0.9;
}

/* Ajuste para centralização vertical no header */
#mainHeader .container > div {
    align-items: center;
}

/* ==================== P3-FIX: MENU MOBILE COM PERSONALIDADE ==================== */

#mobileMenu {
    background: linear-gradient(180deg, #3a3f47 0%, #2d3239 100%);
    border-top: 2px solid #9bc429;
    padding: 0.5rem 0;
}

#mobileMenu a.nav-link--mobile {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#mobileMenu a.nav-link--mobile:last-child {
    border-bottom: none;
}

#mobileMenu a.nav-link--mobile:hover {
    background-color: rgba(155, 196, 41, 0.1);
    border-left-color: #9bc429;
    color: #ffffff;
}

#mobileMenu a.nav-link-active {
    border-left-color: #9bc429 !important;
    background-color: rgba(155, 196, 41, 0.15) !important;
}

#mobileMenu a.nav-link--cta {
    margin: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    justify-content: center;
    border-left: none;
    border-bottom: none;
    background: rgba(155, 196, 41, 0.2);
    box-shadow: inset 0 0 0 1px rgba(155, 196, 41, 0.5);
}

#mobileMenu a.nav-link--cta:hover {
    background: #9bc429;
    color: #ffffff;
    border-left: none;
}

#mobileMenu a.nav-link--utility {
    opacity: 0.85;
    font-size: 0.875rem;
}


/* === components/message-box.css === */
/* message-box.css - Estilos para a caixa de mensagem modal */

#mockMessageBox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mockMessageBox.visible {
    opacity: 1;
    visibility: visible;
}

#mockMessageBoxContent {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 90%;
    width: 400px;
}

#mockMessageBoxContent h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #333;
}

#mockMessageBoxContent p {
    margin-bottom: 1.5rem;
    color: #555;
}

#mockMessageCloseButton {
    background-color: var(--highlight-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#mockMessageCloseButton:hover {
    opacity: 0.9;
}


/* === components/auth.css === */
/* auth.css – estilos do modal de login */

/* Overlay */
.av-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: authFade 0.25s ease-in-out;
}

@keyframes authFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal */
.av-auth-modal {
  background-color: var(--av-auth-bg, #49505c);
  color: var(--av-auth-text, #ffffff);
  border-radius: 0.5rem;
  width: 90%;
  max-width: 380px;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  position: relative;
}

.av-auth-modal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.av-auth-modal label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.av-auth-modal input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  color: #111827;
}

.av-auth-modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.av-auth-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.av-auth-btn.cancel {
  background-color: #6b7280; /* gray-600 */
  color: #ffffff;
}

.av-auth-btn.enter {
  background-color: #9bc429; /* brandHighlight */
  color: #1f2937; /* gray-800 */
}

.av-auth-btn.enter:hover { background-color: #b2d856; }
.av-auth-btn.cancel:hover { background-color: #4b5563; }

.av-auth-modal .close-x {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.125rem;
  cursor: pointer;
}

.av-auth-error {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #f15755;
  text-align: center;
}

.av-auth-link {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  color: #ffffff;
  margin-top: 1rem;
}

.av-auth-link:hover { text-decoration: underline; }


/* === components/contact-form.css === */
/* ==================== FORMULÁRIO DE CONTATO ==================== */

.contact-form {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.contact-intro {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-left: 4px solid #9bc429 !important;
    margin-bottom: 2rem !important;
    padding: 2rem !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.contact-intro h2 {
    color: #333 !important;
    font-size: 1.75rem !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
}

.contact-intro p {
    color: #555 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.75rem !important;
}

.contact-intro ul {
    color: #666 !important;
    font-size: 1rem !important;
    margin-left: 1.5rem !important;
}

.contact-intro li {
    margin-bottom: 0.5rem !important;
}

.contact-intro li strong {
    color: #333 !important;
}

/* Estilos para campos do formulário */
.contact-form .form-group {
    margin-bottom: 1.5rem !important;
}

.contact-form label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    background-color: #fff !important;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none !important;
    border-color: #9bc429 !important;
    box-shadow: 0 0 0 3px rgba(155, 196, 41, 0.1) !important;
}

.contact-form input.border-red-500,
.contact-form select.border-red-500,
.contact-form textarea.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.contact-form textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

/* Botões do formulário */
.form-buttons {
    margin-top: 2rem !important;
    display: flex !important;
    gap: 1rem !important;
    flex-direction: column !important;
}

@media (min-width: 640px) {
    .form-buttons {
        flex-direction: row !important;
    }
}

.contact-form button[type="submit"] {
    background: linear-gradient(135deg, #9bc429, #7ba01f) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.875rem 1.5rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(155, 196, 41, 0.25) !important;
    flex: 1 !important;
}

.contact-form button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #8ab023, #6a8f1a) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(155, 196, 41, 0.35) !important;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.contact-form button[type="button"] {
    background: transparent !important;
    color: #9bc429 !important;
    font-weight: 600 !important;
    padding: 0.875rem 1.5rem !important;
    border: 2px solid #9bc429 !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 1 !important;
}

.contact-form button[type="button"]:hover {
    background: #9bc429 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(155, 196, 41, 0.2) !important;
}

/* Mensagens de erro específicas do campo */
.error-message {
    font-size: 0.875rem !important;
    color: #ef4444 !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.error-message.hidden {
    display: none !important;
}

/* Mensagens de status do formulário */
.form-status {
    margin-top: 1.5rem !important;
}

.success-message,
.form-status .error-message {
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.success-message {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

.success-message strong {
    color: #0f5132 !important;
}

.form-status .error-message {
    background: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
}

.form-status .error-message strong {
    color: #58151c !important;
}

/* Loading spinner */
.btn-loading svg {
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsividade específica do formulário */
@media (max-width: 640px) {
    .contact-intro {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .contact-intro h2 {
        font-size: 1.5rem !important;
    }
    
    .contact-intro p {
        font-size: 1rem !important;
    }
    
    .contact-form {
        padding: 0 1rem !important;
    }
    
    .contact-form .form-group {
        margin-bottom: 1.25rem !important;
    }
    
    .form-buttons {
        margin-top: 1.5rem !important;
    }
}

/* Acessibilidade melhorada */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid #9bc429 !important;
    outline-offset: 2px !important;
}

/* Placeholder customizado */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Select customizado */
.contact-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.contact-form select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239bc429' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
}


/* === components/home.css === */
/* home.css — Estilos para componentes da home (Sprint 2) */

/* ==========================================================================
   S2-1: Grid Magazine — Layout de seções de categoria
   ========================================================================== */

.magazine-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 1rem;
    min-height: 320px;
}

.magazine-feature {
    grid-row: 1 / 4;
    grid-column: 1;
}

.magazine-compact {
    /* Cada card compacto ocupa 1 linha na segunda coluna */
}

/* Tablet: 2 colunas, card destaque no topo span 2 cols */
@media (max-width: 1023px) {
    .magazine-grid {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
    }
    .magazine-feature {
        grid-column: 1 / 3;
        grid-row: 1;
    }
}

/* Mobile: 1 coluna, stack vertical */
@media (max-width: 767px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }
    .magazine-feature {
        grid-column: 1;
        grid-row: 1;
    }
}


/* === components/ticker.css === */
/* ticker.css — S2-3: Breaking News Ticker */

/* ==========================================================================
   Breaking News Ticker — Faixa horizontal com scroll automático CSS puro
   ========================================================================== */

.breaking-news-ticker {
    display: flex;
    align-items: center;
    height: 40px;
    background-color: #1a1a2e;
    overflow: hidden;
    position: relative;
    font-size: 14px;
    line-height: 40px;
    white-space: nowrap;
}

/* Label "AO VIVO" fixo à esquerda */
.ticker-label {
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 2;
    background-color: #1a1a2e;
}

.ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e53e3e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: ticker-pulse 1.5s ease-in-out infinite;
}

@keyframes ticker-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Área de conteúdo scrollante */
.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: inline-flex;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Itens do ticker */
.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 24px;
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-item:hover {
    color: #9bc429;
}

.ticker-time {
    color: #9bc429;
    font-weight: 600;
}

.ticker-separator {
    margin: 0 8px;
    color: #555;
}

.ticker-title {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsivo: texto menor em mobile */
@media (max-width: 767px) {
    .breaking-news-ticker {
        font-size: 12px;
    }

    .ticker-label {
        padding: 0 10px;
    }

    .ticker-badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    .ticker-title {
        max-width: 200px;
    }
}


/* === components/footer.css === */
/* =============================================================================
 * Sprint 3: Footer Rico com 4 colunas + Newsletter
 * ============================================================================= */

.footer-rico {
    background: linear-gradient(180deg, #2d3239 0%, #1a1a2e 100%);
    color: #e0e0e0;
    padding: 3rem 0 0;
    border-top: 3px solid #9bc429;
    min-height: 280px;
}

/* Grid de 4 colunas */
.footer-rico-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    transition: opacity 0.4s ease;
}

/* Ocultar grid até as categorias carregarem (evita títulos sem conteúdo) */
.footer-rico-grid[data-ready="false"] {
    opacity: 0;
    pointer-events: none;
}

.footer-rico-grid[data-ready="true"] {
    opacity: 1;
}

@media (min-width: 640px) {
    .footer-rico-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-rico-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

/* Colunas */
.footer-rico-col {
    display: flex;
    flex-direction: column;
}

/* Títulos das colunas */
.footer-rico-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-rico-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: #9bc429;
    border-radius: 1px;
}

/* Links das colunas (categorias e links rápidos) */
.footer-rico-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-rico-links li a {
    color: #b0b8c4;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.6;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-rico-links li a:hover {
    color: #9bc429;
    padding-left: 4px;
}

/* Texto "Sobre" */
.footer-rico-about {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

/* Newsletter */
.footer-rico-newsletter-desc {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.footer-rico-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-rico-newsletter-input-wrap {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #4a5568;
    transition: border-color 0.2s ease;
}

.footer-rico-newsletter-input-wrap:focus-within {
    border-color: #9bc429;
}

.footer-rico-newsletter-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    background: #1a1f27;
    color: #e0e0e0;
    border: none;
    font-size: 0.875rem;
    outline: none;
    min-width: 0;
}

.footer-rico-newsletter-input::placeholder {
    color: #6b7280;
}

.footer-rico-newsletter-btn {
    padding: 0.625rem 1rem;
    background: #9bc429;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.8125rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.footer-rico-newsletter-btn:hover {
    background: #8ab020;
}

.footer-rico-newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Feedback da newsletter */
.footer-rico-newsletter-feedback {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    line-height: 1.4;
}

.footer-rico-newsletter-feedback.success {
    background: rgba(155, 196, 41, 0.15);
    color: #9bc429;
    border: 1px solid rgba(155, 196, 41, 0.3);
}

.footer-rico-newsletter-feedback.error {
    background: rgba(241, 87, 85, 0.15);
    color: #f15755;
    border: 1px solid rgba(241, 87, 85, 0.3);
}

/* Barra inferior */
.footer-rico-bottom {
    border-top: 1px solid #3a3f47;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-rico-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Ícones sociais */
.footer-rico-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-rico-socials a {
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
}

.footer-rico-socials a:hover {
    color: #9bc429;
    transform: translateY(-2px);
}

/* Copyright */
.footer-rico-copyright {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-rico-copyright {
        text-align: right;
    }
}


/* === components/dark-mode.css === */
/* dark-mode.css — Sprint 4 S4-2: Dark Mode */

/* === Variáveis CSS para o tema claro (padrão) === */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-subtle: #777777;
    --border-color: #e5e7eb;
    --brand-highlight: #9bc429;
    --header-bg: #3a3f47;
    --header-text: #ffffff;
    --footer-bg: #3a3f47;
    --footer-text: #ffffff;
    --footer-subtle-text: #cccccc;
    --card-text: #333333;
    --card-subtle-text: #777777;
    --card-border: #e5e7eb;
    --blockquote-text: #4a5568;
    --skeleton-bg: #e5e7eb;
    --skeleton-shine: #f3f4f6;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --input-text: #333333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --code-bg: #f3f4f6;
}

/* === Variáveis CSS para o tema escuro === */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-subtle: #64748b;
    --border-color: #334155;
    --brand-highlight: #a3d634;
    --header-bg: #020617;
    --header-text: #f1f5f9;
    --footer-bg: #020617;
    --footer-text: #f1f5f9;
    --footer-subtle-text: #94a3b8;
    --card-text: #f1f5f9;
    --card-subtle-text: #94a3b8;
    --card-border: #334155;
    --blockquote-text: #94a3b8;
    --skeleton-bg: #334155;
    --skeleton-shine: #475569;
    --input-bg: #1e293b;
    --input-border: #475569;
    --input-text: #f1f5f9;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --code-bg: #1e293b;
}

/* === Aplicações globais via variáveis === */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] #mainHeader {
    background-color: var(--header-bg) !important;
    color: var(--header-text) !important;
}

[data-theme="dark"] #mainFooter {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
}

/* Cards e containers */
[data-theme="dark"] .bg-white,
[data-theme="dark"] [style*="background-color: #ffffff"],
[data-theme="dark"] [style*="background-color: rgb(255, 255, 255)"] {
    background-color: var(--bg-card) !important;
    color: var(--card-text) !important;
}

[data-theme="dark"] .hero-main-article {
    background-color: var(--bg-card) !important;
}

/* Bordas */
[data-theme="dark"] [style*="border: 1px solid #e5e7eb"],
[data-theme="dark"] [style*="border: 1px solid rgb(229, 231, 235)"] {
    border-color: var(--card-border) !important;
}

/* Textos */
[data-theme="dark"] [style*="color: #333333"],
[data-theme="dark"] [style*="color: rgb(51, 51, 51)"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] [style*="color: #555555"],
[data-theme="dark"] [style*="color: rgb(85, 85, 85)"] {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] [style*="color: #777777"],
[data-theme="dark"] [style*="color: rgb(119, 119, 119)"] {
    color: var(--text-subtle) !important;
}

/* Skeletons */
[data-theme="dark"] .animate-pulse > div,
[data-theme="dark"] .bg-gray-200 {
    background-color: var(--skeleton-bg) !important;
}

[data-theme="dark"] .bg-gray-100,
[data-theme="dark"] [style*="background: #e5e7eb"],
[data-theme="dark"] [style*="background:#e5e7eb"],
[data-theme="dark"] [style*="background: #f3f4f6"],
[data-theme="dark"] [style*="background:#f3f4f6"] {
    background-color: var(--skeleton-bg) !important;
}

/* =============================================================
 * HERO SIDEBAR POPULAR — Dark mode completo
 * IMPORTANTE: Usar hex literals (NÃO var()) para garantir que o
 * background seja aplicado imediatamente sem depender de reflow.
 * CSS vars em !important rules podem não resolver no browser real.
 * ============================================================= */
[data-theme="dark"] #hero-sidebar-popular {
    background: #1e293b !important;
    background-image: none !important;
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] #hero-sidebar-popular h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] #hero-sidebar-popular .popular-article-item,
[data-theme="dark"] #hero-sidebar-popular li,
[data-theme="dark"] #hero-sidebar-popular li[style] {
    border-bottom-color: #334155 !important;
    background-color: transparent !important;
}

/* Títulos dos artigos na sidebar — forçar cor clara independente de inline style */
[data-theme="dark"] #hero-sidebar-popular h4,
[data-theme="dark"] #hero-sidebar-popular h4[style],
[data-theme="dark"] #hero-sidebar-popular h4[style*="color"] {
    color: #f1f5f9 !important;
}

/* Números 01, 02... */
[data-theme="dark"] #hero-sidebar-popular .text-3xl {
    color: #64748b !important;
}

/* Labels de categoria */
[data-theme="dark"] #hero-sidebar-popular div[style*="color"],
[data-theme="dark"] #hero-sidebar-popular span[style*="color"] {
    color: #94a3b8 !important;
}

/* Links — garantir que não herdem cor escura */
[data-theme="dark"] #hero-sidebar-popular a {
    color: #f1f5f9 !important;
}

/* "Ver todas as notícias →" */
[data-theme="dark"] #hero-sidebar-popular a[style*="color"] {
    color: #a3d634 !important;
}

/* Article content */
[data-theme="dark"] .article-content {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .article-content h1,
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3,
[data-theme="dark"] .article-content h4,
[data-theme="dark"] .article-content h5,
[data-theme="dark"] .article-content h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .article-content p,
[data-theme="dark"] .article-content li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .article-content blockquote {
    border-left-color: var(--brand-highlight) !important;
    color: var(--blockquote-text) !important;
}

[data-theme="dark"] .article-content code {
    background-color: var(--code-bg) !important;
    color: var(--brand-highlight) !important;
}

[data-theme="dark"] .article-content pre {
    background-color: var(--code-bg) !important;
}

[data-theme="dark"] .article-content a {
    color: var(--brand-highlight) !important;
}

/* Tabelas */
[data-theme="dark"] .article-content table {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .article-content thead {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .article-content th {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .article-content td {
    color: var(--text-secondary) !important;
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .article-content tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .article-content tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .article-content caption {
    color: var(--text-secondary) !important;
}

/* HR */
[data-theme="dark"] .article-content hr {
    border-top-color: var(--border-color) !important;
}

/* Mark */
[data-theme="dark"] .article-content mark {
    background-color: rgba(251, 191, 36, 0.25) !important;
    color: var(--text-primary) !important;
}

/* Figure / Figcaption */
[data-theme="dark"] .article-content figcaption {
    color: var(--text-secondary) !important;
}

/* DT / DD */
[data-theme="dark"] .article-content dt {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .article-content dd {
    color: var(--text-secondary) !important;
}

/* Links no footer */
[data-theme="dark"] .footer-rico-links a,
[data-theme="dark"] .footer-rico-about {
    color: var(--footer-subtle-text) !important;
}

/* Navegação */
[data-theme="dark"] #mainNav a {
    color: var(--header-text) !important;
}

[data-theme="dark"] #mobileMenu {
    background-color: var(--header-bg) !important;
}

/* Input fields */
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="text"],
[data-theme="dark"] textarea {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--input-text) !important;
}

/* Section titles */
[data-theme="dark"] .section-title {
    color: var(--text-primary) !important;
}

/* Breaking news ticker */
[data-theme="dark"] .breaking-news-ticker {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

/* Footer newsletter */
[data-theme="dark"] .footer-rico-newsletter-input {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--input-text) !important;
}

/* Home skeleton */
[data-theme="dark"] #home-skeleton [style*="background:#e5e7eb"],
[data-theme="dark"] #home-skeleton [style*="background: #e5e7eb"],
[data-theme="dark"] #home-skeleton [style*="background:#f3f4f6"],
[data-theme="dark"] #home-skeleton [style*="background: #f3f4f6"] {
    background: var(--skeleton-bg) !important;
}

/* Conteúdo página estática (Sobre, Contato) */
[data-theme="dark"] .article-content [style*="background: white"],
[data-theme="dark"] .article-content [style*="background-color: white"],
[data-theme="dark"] .article-content [style*="background: #f8fafc"],
[data-theme="dark"] .article-content [style*="background-color: #f8fafc"] {
    background: var(--bg-secondary) !important;
}

/* =============================================================
 * FORMULÁRIO DE CONTATO — Dark mode
 * contact-form.css usa !important em todo lugar, por isso usamos
 * [data-theme="dark"] + seletor completo + !important aqui também
 * ============================================================= */
[data-theme="dark"] .contact-intro {
    background: var(--bg-secondary) !important;
    border-left-color: var(--brand-highlight) !important;
    box-shadow: 0 2px 8px var(--shadow-color) !important;
}

[data-theme="dark"] .contact-intro h2 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-intro p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .contact-intro ul,
[data-theme="dark"] .contact-intro li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .contact-intro li strong {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-form label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--input-text) !important;
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: var(--text-subtle) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form select:focus,
[data-theme="dark"] .contact-form textarea:focus {
    border-color: var(--brand-highlight) !important;
    box-shadow: 0 0 0 3px rgba(163, 214, 52, 0.15) !important;
    outline: 2px solid var(--brand-highlight) !important;
}

[data-theme="dark"] .contact-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
}

/* Página de contato — fundo geral e título principal */
[data-theme="dark"] .contact-form {
    color: var(--text-primary) !important;
}

/* Resposta de sucesso/erro */
[data-theme="dark"] .success-message {
    background: rgba(163, 214, 52, 0.1) !important;
    border-color: rgba(163, 214, 52, 0.3) !important;
    color: var(--brand-highlight) !important;
}

[data-theme="dark"] .form-status .error-message {
    background: rgba(241, 87, 85, 0.1) !important;
    border-color: rgba(241, 87, 85, 0.3) !important;
    color: #f87171 !important;
}

/* Box-shadow no dark mode */
[data-theme="dark"] .shadow-lg,
[data-theme="dark"] .shadow-xl {
    box-shadow: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color) !important;
}

/* Botão toggle dark mode */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 6px;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
}

/* Transição suave para dark mode (300ms conforme PRD) */
body,
#mainHeader,
#mainFooter,
#pageContentContainer,
.bg-white,
.hero-main-article,
#hero-sidebar-popular,
.article-content,
input,
textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* IMPORTANTE: Não inverter anúncios AdSense */
.adsbygoogle,
ins.adsbygoogle {
    filter: none !important;
    color-scheme: light !important;
}

/* Próxima matéria — S4-4 */
.next-article-preview {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    margin-top: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.next-article-preview.visible {
    opacity: 1;
    transform: translateY(0);
}

.next-article-preview a {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.next-article-preview-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.next-article-preview-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-highlight);
    font-weight: 700;
    margin-bottom: 6px;
}

.next-article-preview-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.next-article-preview-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .next-article-preview a {
        flex-direction: column;
    }
    .next-article-preview-image {
        width: 100%;
        height: 160px;
    }
}


/* === components/stock-ticker.css === */
/* stock-ticker.css — Sprint 4 S4-1: Widget de Cotações ao Vivo */

.stock-ticker-bar {
    display: flex;
    align-items: center;
    background: var(--stock-ticker-bg, #0f172a);
    color: var(--stock-ticker-text, #e2e8f0);
    font-size: 12px;
    height: 36px;
    overflow: hidden;
    border-bottom: 1px solid var(--stock-ticker-border, #1e293b);
    font-family: 'Inter', monospace;
}

.stock-ticker-label {
    flex-shrink: 0;
    padding: 0 12px;
    font-weight: 700;
    color: var(--brand-highlight, #9bc429);
    background: var(--stock-ticker-label-bg, #1e293b);
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.stock-ticker-track-container {
    flex: 1;
    overflow: hidden;
}

.stock-ticker-track {
    display: flex;
    width: max-content;    /* Largura = conteúdo total intrínseco; translateX(-50%) desloca metade exata */
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    animation: stock-scroll linear infinite;
    /* Duração aplicada dinamicamente via JS (StockTickerWidget._adjustScrollDurationByWidth) */
}

@keyframes stock-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pausar animação ao hover para leitura */
.stock-ticker-track-container:hover .stock-ticker-track {
    animation-play-state: paused;
}

.stock-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-ticker-name {
    font-weight: 700;
    color: var(--brand-highlight, #9bc429);
}

.stock-price {
    color: var(--stock-ticker-text, #e2e8f0);
}

.stock-company {
    color: var(--stock-ticker-company, #64748b);
    font-size: 10px;
}

.stock-separator {
    color: var(--stock-ticker-separator, #334155);
}

.stock-ticker-source {
    flex-shrink: 0;
    padding: 0 12px;
    font-size: 9px;
    color: var(--stock-ticker-company, #64748b);
    white-space: nowrap;
}

/* Badge de mercado fechado */
.stock-market-closed {
    color: #ef4444;
    font-weight: 600;
    font-size: 9px;
}

/* Dark mode — mesmas cores base (já é escuro por padrão) */
[data-theme="dark"] .stock-ticker-bar {
    background: var(--stock-ticker-bg-dark, #020617);
    border-color: var(--stock-ticker-border-dark, #0f172a);
}

[data-theme="dark"] .stock-ticker-label {
    background: var(--stock-ticker-label-bg-dark, #0f172a);
}

/* Mobile: fonte menor, ocultar empresa */
@media (max-width: 640px) {
    .stock-ticker-bar {
        font-size: 11px;
    }
    .stock-company {
        display: none;
    }
    .stock-ticker-source {
        display: none;
    }
    .stock-ticker-label {
        padding: 0 8px;
        font-size: 11px;
    }
}


/* === components/feed-mobile.css === */
/* ==========================================================================
   Feed Mobile — Modo cronológico estilo Google Discover
   PRD: 24-02-2026-PRD-FEED-MOBILE-AVNEWS-GOOGLE-DISCOVER
   ========================================================================== */

/* Container principal do feed */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
    max-width: 100%;
    /* CORREÇÃO (25-02-2026): overflow-x:hidden cria scroll container aninhado.
       Conforme spec CSS, quando overflow-x≠visible, o browser converte
       overflow-y:visible → auto, criando um scrollable area parasita que
       captura touch events no mobile e "trava" o scroll da página.
       overflow-x:clip corta o overflow SEM criar scroll container. */
    overflow-x: clip;
}

.feed-container > * {
    min-width: 0;
}

/* Card de notícia do feed */
.feed-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
    min-width: 0;
}

.feed-card:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Imagem do card */
.feed-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--skeleton-bg, #e5e7eb);
}

.feed-card__image-wrap img,
.feed-card__image-wrap picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Timestamp destacado — substitui badge NOVO; aparece quando o artigo tem menos de 24h */
.feed-card__meta-time--new {
    background: var(--highlight-color, #9bc429);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.6875rem;
}

[data-theme="dark"] .feed-card__meta-time--new {
    background: rgba(155, 196, 41, 0.22);
    color: #c5e46a;
}

/* Chip de categoria */
.feed-card__category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--highlight-color, #9bc429);
    margin-bottom: 4px;
}

/* Corpo do card */
.feed-card__body {
    padding: 12px 14px 10px;
}

/* Título */
.feed-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--card-text, #1f2937);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card__title a {
    color: inherit;
    text-decoration: none;
}

.feed-card__title a:hover,
.feed-card__title a:focus {
    text-decoration: underline;
}

/* Resumo */
.feed-card__summary {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--card-subtle-text, #6b7280);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metadados */
.feed-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    color: var(--card-subtle-text, #9ca3af);
    flex-wrap: wrap;
}

.feed-card__meta-separator {
    color: var(--card-border, #d1d5db);
}

/* Linha de ações (compartilhamento) */
.feed-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 12px;
    border-top: 1px solid var(--card-border, #e5e7eb);
}

.feed-card__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--card-border, #e5e7eb);
    background: transparent;
    color: var(--card-subtle-text, #6b7280);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
    line-height: 1;
}

.feed-card__share-btn:hover,
.feed-card__share-btn:focus {
    background: var(--highlight-color, #9bc429);
    color: #fff;
    border-color: var(--highlight-color, #9bc429);
    outline: none;
}

.feed-card__share-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* WhatsApp verde — sempre visível como call-to-action de compartilhamento */
.feed-card__share-btn--whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.feed-card__share-btn--whatsapp:hover,
.feed-card__share-btn--whatsapp:focus {
    background: #1da851;
    border-color: #1da851;
    color: #fff;
}

/* Dark mode: WhatsApp softer — fundo translúcido + texto verde para não machucar a vista */
[data-theme="dark"] .feed-card__share-btn--whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.45);
    color: #4ade80;
}

[data-theme="dark"] .feed-card__share-btn--whatsapp:hover,
[data-theme="dark"] .feed-card__share-btn--whatsapp:focus {
    background: rgba(37, 211, 102, 0.22);
    border-color: rgba(37, 211, 102, 0.65);
    color: #4ade80;
}

/* Card de anúncio nativo */
.feed-ad-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 10px;
    min-height: 100px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

/* Força o slot AdSense a respeitar a largura do container.
   O AdSense injeta width fixo em px via inline style — o !important é necessário aqui. */
.feed-ad-card .adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* O AdSense injeta wrappers internos (ex.: aswift_*) com width inline.
   Este clamp impede que o criativo "vaze" horizontalmente do card. */
.feed-ad-card .adsbygoogle > div[id^="aswift_"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.feed-ad-card .adsbygoogle > div[id^="aswift_"] iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.feed-ad-card__label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--card-subtle-text, #9ca3af);
    margin-bottom: 6px;
    text-align: center;
}

/* Skeleton do feed */
.feed-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
}

.feed-skeleton__card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border, #e5e7eb);
    background: var(--card-bg, #ffffff);
}

.feed-skeleton__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: feed-skeleton-shimmer 1.5s ease-in-out infinite;
}

.feed-skeleton__body {
    padding: 12px 14px;
}

.feed-skeleton__line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: feed-skeleton-shimmer 1.5s ease-in-out infinite;
    margin-bottom: 8px;
}

.feed-skeleton__line--short { width: 40%; }
.feed-skeleton__line--medium { width: 70%; }
.feed-skeleton__line--long { width: 90%; }

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

/* Toast de feedback */
.feed-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feed-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Sentinel do infinite scroll */
.feed-sentinel {
    height: 1px;
    width: 100%;
}

/* Spinner de carregamento */
.feed-loading-more {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.feed-loading-more__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--card-border, #e5e7eb);
    border-top-color: var(--highlight-color, #9bc429);
    border-radius: 50%;
    animation: feed-spin 0.7s linear infinite;
}

@keyframes feed-spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.feed-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--card-subtle-text, #9ca3af);
}

.feed-empty__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feed-empty__text {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Toggle feed no header — pílula proeminente */
.feed-mode-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    padding: 5px 11px 5px 8px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    white-space: nowrap;
}

.feed-mode-toggle:hover,
.feed-mode-toggle:focus {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    transform: scale(1.04);
}

.feed-mode-toggle__label {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

/* Mini toggle switch — trilho + thumb */
.feed-toggle-switch {
    width: 26px;
    height: 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    position: relative;
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s;
}

.feed-toggle-switch__thumb {
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
}

/* Modo ativo: destaque com a cor da marca */
.feed-mode-toggle--active {
    background: var(--highlight-color, #9bc429);
    border-color: var(--highlight-color, #9bc429);
    color: #fff;
}

.feed-mode-toggle--active:hover,
.feed-mode-toggle--active:focus {
    filter: brightness(1.12);
    border-color: var(--highlight-color, #9bc429);
    transform: scale(1.04);
}

/* Thumb move para a direita quando ativo */
.feed-mode-toggle--active .feed-toggle-switch {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

.feed-mode-toggle--active .feed-toggle-switch__thumb {
    transform: translateX(11px);
    background: #fff;
}

/* Dark mode overrides */
[data-theme="dark"] .feed-card {
    background: var(--card-bg-dark, #1e293b);
    border-color: var(--card-border-dark, #334155);
}

[data-theme="dark"] .feed-card__title {
    color: var(--card-text-dark, #f1f5f9);
}

[data-theme="dark"] .feed-card__summary {
    color: var(--card-subtle-text-dark, #94a3b8);
}

[data-theme="dark"] .feed-card__meta {
    color: var(--card-subtle-text-dark, #94a3b8);
}

[data-theme="dark"] .feed-card__actions {
    border-color: var(--card-border-dark, #334155);
}

[data-theme="dark"] .feed-card__share-btn {
    border-color: var(--card-border-dark, #334155);
    color: var(--card-subtle-text-dark, #94a3b8);
}

/* Dark mode: toggle Feed ativo — fundo translúcido, verde claro para não machucar as vistas */
[data-theme="dark"] .feed-mode-toggle--active {
    background: rgba(155, 196, 41, 0.18);
    border-color: rgba(155, 196, 41, 0.45);
    color: #c5e46a;
}

[data-theme="dark"] .feed-mode-toggle--active:hover,
[data-theme="dark"] .feed-mode-toggle--active:focus {
    background: rgba(155, 196, 41, 0.26);
    filter: none;
}

/* Thumb do switch no dark mode ativo */
[data-theme="dark"] .feed-mode-toggle--active .feed-toggle-switch {
    background: rgba(155, 196, 41, 0.3);
    border-color: rgba(155, 196, 41, 0.55);
}

[data-theme="dark"] .feed-mode-toggle--active .feed-toggle-switch__thumb {
    background: #c5e46a;
}

[data-theme="dark"] .feed-ad-card {
    background: var(--card-bg-dark, #1e293b);
    border-color: var(--card-border-dark, #334155);
}

[data-theme="dark"] .feed-ad-card__label {
    color: var(--card-subtle-text-dark, #64748b);
}

[data-theme="dark"] .feed-skeleton__card {
    background: var(--card-bg-dark, #1e293b);
    border-color: var(--card-border-dark, #334155);
}

[data-theme="dark"] .feed-skeleton__image,
[data-theme="dark"] .feed-skeleton__line {
    background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
    animation: feed-skeleton-shimmer 1.5s ease-in-out infinite;
}

[data-theme="dark"] .feed-toast {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="dark"] .feed-empty {
    color: var(--card-subtle-text-dark, #64748b);
}

/* ==========================================================================
   Feed Card — Animação de entrada (engagement / scroll depth)
   ========================================================================== */

/* Cards entram com fade+slide-up via IntersectionObserver (classe adicionada em JS) */
.feed-card,
.feed-ad-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.feed-card--visible,
.feed-ad-card--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Feed Onboarding — One-time overlay
   ========================================================================== */

.feed-onboarding {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0 72px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feed-onboarding--visible {
    opacity: 1;
    pointer-events: auto;
}

.feed-onboarding--exit {
    opacity: 0;
    pointer-events: none;
}

.feed-onboarding__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.feed-onboarding__card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px 22px;
    max-width: 348px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(48px) scale(0.94);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    opacity: 0;
}

.feed-onboarding--visible .feed-onboarding__card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.feed-onboarding--exit .feed-onboarding__card {
    transform: translateY(48px) scale(0.94);
    opacity: 0;
}

.feed-onboarding__emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    animation: feed-onboarding-bounce 1.4s ease-in-out infinite;
}

@keyframes feed-onboarding-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.feed-onboarding__title {
    font-size: 1.1875rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.25;
}

.feed-onboarding__body {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 18px;
}

.feed-onboarding__arrow-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.feed-onboarding__arrow-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.feed-onboarding__arrow {
    font-size: 1.75rem;
    color: var(--highlight-color, #9bc429);
    line-height: 1;
    animation: feed-onboarding-arrow 0.9s ease-in-out infinite;
}

@keyframes feed-onboarding-arrow {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-10px); opacity: 0.55; }
}

.feed-onboarding__cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--highlight-color, #9bc429);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

.feed-onboarding__cta:hover,
.feed-onboarding__cta:active {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.feed-onboarding__dismiss {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s;
}

.feed-onboarding__dismiss:hover {
    color: #374151;
}

/* Dark mode overrides */
[data-theme="dark"] .feed-onboarding__card {
    background: #1e293b;
}

[data-theme="dark"] .feed-onboarding__title {
    color: #f1f5f9;
}

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

[data-theme="dark"] .feed-onboarding__arrow-label {
    color: #64748b;
}

[data-theme="dark"] .feed-onboarding__dismiss {
    color: #475569;
}

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

/* ==========================================================================
   Favorites — Botão no card e toggle no header
   ========================================================================== */

/* Botão de favorito no canto superior direito da imagem do card */
.feed-card__favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    z-index: 10;
    padding: 0;
}

.feed-card__favorite-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.feed-card__favorite-btn:active {
    transform: scale(0.95);
}

.feed-card__favorite-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
    transition: fill 0.15s ease, color 0.15s ease;
}

/* Estado favoritado */
.feed-card__favorite-btn--active {
    background: var(--highlight-color, #9bc429);
}

.feed-card__favorite-btn--active .feed-card__favorite-icon {
    fill: #fff;
    color: #fff;
}

/* Animação de "pop" ao favoritar */
.feed-card__favorite-btn--pop {
    animation: favorite-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes favorite-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Dark mode: botão de favorito */
[data-theme="dark"] .feed-card__favorite-btn {
    background: rgba(30, 41, 59, 0.88);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

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

[data-theme="dark"] .feed-card__favorite-btn--active {
    background: rgba(155, 196, 41, 0.25);
}

[data-theme="dark"] .feed-card__favorite-btn--active .feed-card__favorite-icon {
    fill: #c5e46a;
    color: #c5e46a;
}

/* Toggle de favoritos no header */
.favorites-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    padding: 5px 10px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    position: relative;
}

.favorites-toggle:hover,
.favorites-toggle:focus {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    transform: scale(1.04);
}

.favorites-toggle__icon {
    width: 16px;
    height: 16px;
}

.favorites-toggle__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--highlight-color, #9bc429);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Dark mode: toggle de favoritos */
[data-theme="dark"] .favorites-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .favorites-toggle:hover,
[data-theme="dark"] .favorites-toggle:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .favorites-toggle__badge {
    background: rgba(155, 196, 41, 0.85);
    color: #0f172a;
}

/* ==========================================================================
   Favorites Modal — Listagem de artigos favoritos
   ========================================================================== */

.favorites-modal {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.favorites-modal--visible {
    opacity: 1;
    pointer-events: auto;
}

.favorites-modal--exit {
    opacity: 0;
    pointer-events: none;
}

.favorites-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.favorites-modal__container {
    position: relative;
    margin: auto 0 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
    overflow: hidden;
}

.favorites-modal--visible .favorites-modal__container {
    transform: translateY(0);
}

.favorites-modal--exit .favorites-modal__container {
    transform: translateY(100%);
}

.favorites-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--card-border, #e5e7eb);
    flex-shrink: 0;
}

.favorites-modal__title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--card-text, #1f2937);
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-modal__title-icon {
    color: var(--highlight-color, #9bc429);
}

.favorites-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--card-border, #e5e7eb);
    color: var(--card-subtle-text, #6b7280);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.15s, color 0.15s;
}

.favorites-modal__close:hover {
    background: var(--card-border, #f3f4f6);
    color: var(--card-text, #1f2937);
}

/* Controles de ordenação */
.favorites-modal__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--card-border, #e5e7eb);
    flex-shrink: 0;
}

.favorites-modal__sort-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--card-subtle-text, #6b7280);
}

.favorites-modal__sort-btn {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--card-border, #e5e7eb);
    background: transparent;
    color: var(--card-subtle-text, #6b7280);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.favorites-modal__sort-btn:hover {
    background: var(--card-border, #f3f4f6);
}

.favorites-modal__sort-btn--active {
    background: var(--highlight-color, #9bc429);
    border-color: var(--highlight-color, #9bc429);
    color: #fff;
}

/* Lista de favoritos */
.favorites-modal__list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

/* Card de favorito */
.favorite-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #e5e7eb);
    border-radius: 12px;
    transition: box-shadow 0.15s ease;
}

.favorite-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.favorite-card__image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--skeleton-bg, #e5e7eb);
}

.favorite-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.favorite-card__category {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--highlight-color, #9bc429);
    margin-bottom: 2px;
}

.favorite-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--card-text, #1f2937);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.favorite-card__meta {
    font-size: 0.6875rem;
    color: var(--card-subtle-text, #9ca3af);
    margin-top: auto;
}

.favorite-card__remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--card-border, #e5e7eb);
    color: var(--card-subtle-text, #9ca3af);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.favorite-card__remove:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.favorite-card__remove svg {
    width: 14px;
    height: 14px;
}

/* Estado vazio */
.favorites-modal__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.favorites-modal__empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.favorites-modal__empty-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--card-subtle-text, #6b7280);
    margin-bottom: 0.5rem;
}

.favorites-modal__empty-hint {
    font-size: 0.75rem;
    color: var(--card-subtle-text, #9ca3af);
}

/* Dark mode: modal de favoritos */
[data-theme="dark"] .favorites-modal__container {
    background: var(--card-bg-dark, #1e293b);
}

[data-theme="dark"] .favorites-modal__header {
    border-color: var(--card-border-dark, #334155);
}

[data-theme="dark"] .favorites-modal__title {
    color: var(--card-text-dark, #f1f5f9);
}

[data-theme="dark"] .favorites-modal__title-icon {
    color: #c5e46a;
}

[data-theme="dark"] .favorites-modal__close {
    border-color: var(--card-border-dark, #334155);
    color: var(--card-subtle-text-dark, #94a3b8);
    background: transparent;
}

[data-theme="dark"] .favorites-modal__close:hover {
    background: var(--card-border-dark, #334155);
    color: var(--card-text-dark, #f1f5f9);
}

[data-theme="dark"] .favorites-modal__controls {
    border-color: var(--card-border-dark, #334155);
}

[data-theme="dark"] .favorites-modal__sort-label {
    color: var(--card-subtle-text-dark, #94a3b8);
}

[data-theme="dark"] .favorites-modal__sort-btn {
    border-color: var(--card-border-dark, #334155);
    color: var(--card-subtle-text-dark, #94a3b8);
}

[data-theme="dark"] .favorites-modal__sort-btn:hover {
    background: var(--card-border-dark, #334155);
}

[data-theme="dark"] .favorites-modal__sort-btn--active {
    background: rgba(155, 196, 41, 0.22);
    border-color: rgba(155, 196, 41, 0.45);
    color: #c5e46a;
}

[data-theme="dark"] .favorite-card {
    background: var(--card-bg-dark, #1e293b);
    border-color: var(--card-border-dark, #334155);
}

[data-theme="dark"] .favorite-card__title {
    color: var(--card-text-dark, #f1f5f9);
}

[data-theme="dark"] .favorite-card__meta {
    color: var(--card-subtle-text-dark, #64748b);
}

[data-theme="dark"] .favorite-card__remove {
    border-color: var(--card-border-dark, #334155);
    color: var(--card-subtle-text-dark, #64748b);
}

[data-theme="dark"] .favorite-card__remove:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

[data-theme="dark"] .favorites-modal__empty-text {
    color: var(--card-subtle-text-dark, #94a3b8);
}

[data-theme="dark"] .favorites-modal__empty-hint {
    color: var(--card-subtle-text-dark, #64748b);
}



/* Utilitários */
/* === utils/animations.css === */
/* animations.css - Animações utilizadas no site */

/* Fade In */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}


