/*
Theme Name: Espaço do Povo
Theme URI: https://espacodopovo.com.br
Author: CRIA S/A
Author URI: https://criasa.com.br
Description: Portal de notícias das periferias brasileiras. Jornalismo comunitário desde 2007.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: espacodopovo
Tags: news, community, accessibility, dark-mode, pwa

Espaço do Povo © 2007-2026 - Uma marca CRIA S/A
Jornalismo das Periferias
*/

/* ============================================
   DESIGN SYSTEM v2.1 — Ciano como marca
   Regra: ciano (--brand) é SUPERFÍCIE (fills, faixas, CTAs sobre preto).
   Texto/links sobre fundo claro usam --brand-ink (5:1 sobre branco).
   Dentro de containers escuros --brand-ink vira o ciano puro (ver regra
   "DARK CONTAINERS" no fim deste arquivo).
   ============================================ */

:root {
    /* =========================
       BRAND TOKENS v2.1
       ========================= */
    --brand:            #00E5FF;   /* ciano — fills, faixas, CTAs */
    --brand-rgb:        0, 229, 255;
    --brand-ink:        #0A7A88;   /* ciano legível para texto sobre claro (5.0:1) */
    --brand-soft:       #D9FBFF;   /* fundo suave de destaque */
    --ink:              #0A0A0A;
    --paper:            #FAFAFA;
    --paper-2:          #F1F1F2;
    --muted:            #52525B;
    --line:             #E4E4E7;
    --cria:             #FF521B;   /* somente no selo "Uma marca CRIA S/A" */
    --volunteer:        #16A34A;   /* único verde: selo de colaborador voluntário */
    --volunteer-ink:    #15803D;

    /* Aliases legados (mantidos para não quebrar templates) */
    --povo-lime: var(--brand);
    --povo-lime-rgb: var(--brand-rgb);
    --povo-lime-dark: var(--brand-ink);
    --povo-lime-light: var(--brand-soft);
    --povo-black: var(--ink);
    --povo-black-rgb: 10, 10, 10;
    --povo-white: var(--paper);
    --povo-white-rgb: 250, 250, 250;
    --povo-gray: #A1A1AA;
    
    /* Legacy compatibility */
    --color-primary: var(--povo-lime);
    --color-secondary: var(--povo-black);
    --color-accent: var(--povo-lime-dark);
    --color-background: var(--povo-white);
    --color-background-alt: #F4F4F5;
    --color-text: var(--povo-black);
    --color-text-secondary: #52525b; /* Melhorado para contraste WCAG AA */
    --color-text-muted: #71717A;
    --color-border: #E4E4E7;
    --color-border-light: #F4F4F5;
    
    /* =========================
       CATEGORY COLORS
       ========================= */
    --cat-comunidade: var(--brand-ink);
    --cat-politica: #2563EB;
    --cat-economia: var(--volunteer);
    --cat-cultura: #EC4899;
    --cat-esporte: #F59E0B;
    --cat-meio-ambiente: var(--volunteer-ink);
    --cat-saude: #EF4444;
    --cat-educacao: #8B5CF6;
    --cat-tecnologia: #06B6D4;
    --cat-destaque: #EF4444;
    --cat-artigo: #6366F1;
    --cat-noticias: #3B82F6;
    
    /* =========================
       SEMANTIC COLORS
       ========================= */
    --color-success: var(--volunteer);
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    
    /* =========================
       TYPOGRAPHY
       ========================= */
    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;
    
    /* =========================
       SPACING
       ========================= */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    
    /* =========================
       LAYOUT
       ========================= */
    --container-max: 1200px;
    --container-narrow: 720px;
    --container-wide: 1400px;
    --sidebar-width: 320px;
    --header-height: 160px;
    --header-height-mobile: 64px;
    --nav-height: 48px;
    
    /* =========================
       EFFECTS
       ========================= */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(var(--povo-lime-rgb), 0.3);
    
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-spring: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* =========================
       Z-INDEX
       ========================= */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* =========================
   DARK MODE
   ========================= */
body.dark-mode,
[data-theme="dark"] {
    --color-background: #0A0A0A;
    --color-background-alt: #141414;
    --color-text: #FAFAFA;
    --color-text-secondary: #A1A1AA;
    --color-text-muted: #71717A;
    --color-border: #27272A;
    --color-border-light: #1F1F23;
}

/* ============================================
   BASE STYLES
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Garantir que texto seja selecionável em todo o site */
p, span, div, article, section, main, 
.entry-content, .bio-content, .opiniao-entry,
.card-excerpt, .post-content {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    pointer-events: auto !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-top: 0;
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-top: 0;
    margin-bottom: var(--space-4);
}

a {
    color: var(--povo-lime-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-ink);
}

.overline {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.display-xl {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Garantir texto branco em headers/heros com fundo ESCURO apenas */
.category-header .display-xl,
.category-header h1,
.colunista-hero .display-xl,
.colunista-hero h1,
.colunistas-hero .display-xl,
.colunistas-hero h1,
.opiniao-header h1,
.archive-header h1,
.contato-hero .display-xl,
.contato-hero h1,
.pauta-hero .display-xl,
.pauta-hero h1,
.transparencia-hero .display-xl,
.transparencia-hero h1 {
    color: var(--povo-white, #FAFAFA) !important;
}

.display-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.container-wide {
    max-width: var(--container-wide);
}

.site-content {
    min-height: 60vh;
}

/* Main Layout with Sidebar */
.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr var(--sidebar-width);
    }
}

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

.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-4));
    height: fit-content;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--povo-lime);
    color: var(--povo-black);
}

.btn-primary:hover {
    background: var(--povo-lime-dark);
    color: var(--povo-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--povo-black);
    color: var(--brand-ink);
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: var(--brand-ink);
}

.btn-outline {
    background: transparent;
    color: var(--povo-black);
    border: 2px solid var(--povo-black);
}

.btn-outline:hover {
    background: var(--povo-black);
    color: var(--brand-ink);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--brand-ink);
    background: rgba(var(--povo-lime-rgb), 0.1);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-body {
    padding: var(--space-5);
}

.card-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.card-title a {
    color: var(--color-text);
}

.card-title a:hover {
    color: var(--povo-lime-dark);
}

.card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================
   CATEGORY BADGES
   ============================================ */

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.category-badge--comunidade {
    background: var(--cat-comunidade);
    color: var(--povo-black);
}

.category-badge--politica {
    background: var(--cat-politica);
    color: white;
}

.category-badge--economia {
    background: var(--cat-economia);
    color: white;
}

.category-badge--cultura {
    background: var(--cat-cultura);
    color: white;
}

.category-badge--esporte {
    background: var(--cat-esporte);
    color: var(--povo-black);
}

.category-badge--meio-ambiente {
    background: var(--cat-meio-ambiente);
    color: white;
}

.category-badge--saude {
    background: var(--cat-saude);
    color: white;
}

.category-badge--educacao {
    background: var(--cat-educacao);
    color: white;
}

.category-badge--tecnologia {
    background: var(--cat-tecnologia);
    color: var(--povo-black);
}

.category-badge--destaque {
    background: var(--cat-destaque);
    color: white;
}

.category-badge--artigo {
    background: var(--cat-artigo);
    color: white;
}

.category-badge--noticias {
    background: var(--cat-noticias);
    color: white;
}

/* ============================================
   POST GRID
   ============================================ */

.posts-grid {
    display: grid;
    gap: var(--space-6);
}

.posts-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.posts-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.posts-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .posts-grid--3col,
    .posts-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-grid--2col,
    .posts-grid--3col,
    .posts-grid--4col {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .posts-grid .card {
        flex-direction: row;
    }
    
    .posts-grid .card-image {
        width: 120px;
        flex-shrink: 0;
        aspect-ratio: 1;
    }
    
    .posts-grid .card-image img {
        height: 100%;
        object-fit: cover;
    }
    
    .posts-grid .card-body {
        padding: var(--space-3);
    }
    
    .posts-grid .card-title {
        font-size: 0.85rem;
    }
    
    .posts-grid .card-excerpt {
        display: none;
    }
    
    .posts-grid .card-meta {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .posts-grid .card {
        flex-direction: column;
    }
    
    .posts-grid .card-image {
        width: 100%;
        aspect-ratio: 16/10;
    }
}

/* ============================================
   HERO POST
   ============================================ */

.hero-post {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: var(--space-8);
}

.hero-post-image {
    position: absolute;
    inset: 0;
}

.hero-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.hero-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-8);
    color: white;
}

.hero-post-title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    color: white;
    margin-bottom: var(--space-4);
}

.hero-post-title a {
    color: white;
}

.hero-post-title a:hover {
    color: var(--brand-ink);
}

.hero-post-excerpt {
    font-size: var(--text-lg);
    opacity: 0.9;
    max-width: 600px;
}

/* Hero Post - Mobile Responsivo */
@media (max-width: 768px) {
    .hero-post {
        aspect-ratio: 4/5;
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-6);
    }
    
    .hero-post-content {
        padding: var(--space-6);
    }
    
    .hero-post-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-3);
        line-height: 1.2;
    }
    
    .hero-post-excerpt {
        font-size: var(--text-base);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-post-meta {
        font-size: var(--text-xs);
        flex-wrap: wrap;
        gap: var(--space-2);
    }
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */

.widget {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.widget-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--povo-lime);
}

/* Newsletter Widget */
.widget-newsletter {
    background: var(--povo-lime);
    border: none;
}

.widget-newsletter .widget-title {
    color: var(--povo-black);
    border-bottom-color: var(--povo-black);
}

.widget-newsletter p {
    color: var(--povo-black);
    opacity: 0.8;
}

.widget-newsletter input[type="email"] {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--povo-black);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.widget-newsletter button {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--povo-black);
    color: var(--brand-ink);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.widget-newsletter button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

/* Ad Widget */
.widget-ad {
    background: var(--povo-black);
    text-align: center;
}

.widget-ad .widget-title {
    color: var(--brand-ink);
    border-bottom-color: rgba(0, 229, 255, 0.3);
}

/* Popular Posts Widget */
.widget-popular .popular-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}

.widget-popular .popular-item:last-child {
    border-bottom: none;
}

.widget-popular .popular-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-ink);
    line-height: 1;
    min-width: 32px;
}

.widget-popular .popular-title {
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: var(--leading-snug);
}

.widget-popular .popular-title a {
    color: var(--color-text);
}

.widget-popular .popular-title a:hover {
    color: var(--povo-lime-dark);
}

.widget-popular .popular-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* Tags Widget */
.widget-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.widget-tags .tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-background-alt);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.widget-tags .tag:hover {
    background: var(--povo-lime);
    color: var(--povo-black);
}

/* ============================================
   SINGLE POST
   ============================================ */

.single-post-header {
    margin-bottom: var(--space-8);
}

/* TÍTULO PRETO em posts normais (fundo branco) */
body.single-post:not(.single-opiniao) .single-post-title,
body.single-post:not(.single-opiniao) h1.single-post-title,
.single-post-header .single-post-title {
    color: #0A0A0A !important;
}

/* TÍTULO BRANCO em páginas de opinião (fundo escuro) */
body.single-opiniao .opiniao-title,
.opiniao-header h1,
.opiniao-header .opiniao-title {
    color: #FAFAFA !important;
}

.single-post-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    margin-bottom: var(--space-4);
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.single-post-author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.single-post-author img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.single-post-featured {
    margin-bottom: var(--space-8);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.single-post-featured img {
    width: 100%;
    height: auto;
}

.single-post-content {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
}

.single-post-content p {
    margin-bottom: var(--space-6);
}

.single-post-content h2,
.single-post-content h3 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

.single-post-content blockquote {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    padding-left: var(--space-6);
    border-left: 4px solid var(--povo-lime);
    background: var(--color-background-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--povo-lime);
    z-index: var(--z-fixed);
    transition: width 50ms linear;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: var(--space-3);
    margin: var(--space-8) 0;
    padding: var(--space-6) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.share-btn--whatsapp {
    background: #25D366;
    color: white;
}

.share-btn--facebook {
    background: #1877F2;
    color: white;
}

.share-btn--twitter {
    background: #000;
    color: white;
}

.share-btn--telegram {
    background: #0088cc;
    color: white;
}

.share-btn--copy {
    background: var(--color-background-alt);
    color: var(--color-text);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Author Box */
.author-box {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-6);
    background: var(--povo-black);
    border-radius: var(--radius-xl);
    margin: var(--space-10) 0;
}

.author-box-avatar {
    flex-shrink: 0;
}

.author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    border: 3px solid var(--povo-lime);
}

.author-box-content {
    color: white;
}

.author-box-label {
    font-size: var(--text-xs);
    color: var(--brand-ink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.author-box-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: white;
}

.author-box-bio {
    font-size: var(--text-sm);
    color: #A1A1AA;
    margin-bottom: var(--space-4);
}

.author-box-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--brand-ink);
    font-size: var(--text-sm);
    font-weight: 600;
}

.author-box-link:hover {
    text-decoration: underline;
}

/* Reactions */
.reactions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-background-alt);
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
}

.reactions-title {
    width: 100%;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3);
    background: var(--color-background);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.reaction-btn:hover {
    border-color: var(--brand-ink);
    transform: translateY(-2px);
}

.reaction-btn.active {
    border-color: var(--brand-ink);
    background: rgba(var(--povo-lime-rgb), 0.1);
}

.reaction-emoji {
    font-size: var(--text-2xl);
}

.reaction-count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-3);
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.pagination a {
    background: var(--color-background);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.pagination a:hover {
    background: var(--povo-lime);
    color: var(--povo-black);
    border-color: var(--brand-ink);
}

.pagination .current {
    background: var(--povo-black);
    color: var(--brand-ink);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

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

.breadcrumbs a:hover {
    color: var(--brand-ink);
}

.breadcrumbs .separator {
    color: var(--color-text-muted);
}

/* ============================================
   CATEGORY HEADER
   ============================================ */

.category-header {
    background: var(--povo-lime);
    padding: var(--space-10) 0;
    margin-bottom: var(--space-8);
    border-radius: var(--radius-xl);
}

.category-header .container {
    position: relative;
}

.category-badge-large {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--povo-black);
    color: var(--brand-ink);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
}

.category-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    color: var(--povo-black);
    margin-bottom: var(--space-4);
}

.category-count {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--povo-black);
    opacity: 0.8;
}

/* ============================================
   FORMS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-ink);
    box-shadow: 0 0 0 3px rgba(var(--povo-lime-rgb), 0.2);
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: var(--povo-black);
    color: var(--brand-ink);
    font-weight: 600;
    border-radius: var(--radius-md);
    z-index: var(--z-toast);
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: var(--space-4);
}

:focus-visible {
    outline: 3px solid var(--povo-lime);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-lime { color: var(--povo-lime-dark); }
.text-black { color: var(--povo-black); }
.text-muted { color: var(--color-text-muted); }

.bg-lime { background-color: var(--brand-ink); }
.bg-black { background-color: var(--povo-black); }
.bg-white { background-color: var(--povo-white); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

@media (max-width: 768px) {
    .hidden-mobile { display: none; }
}

@media (min-width: 769px) {
    .hidden-desktop { display: none; }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn {
    animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp var(--transition-slow) ease forwards;
}

/* Staggered animations for grids */
.posts-grid > *:nth-child(1) { animation-delay: 0ms; }
.posts-grid > *:nth-child(2) { animation-delay: 50ms; }
.posts-grid > *:nth-child(3) { animation-delay: 100ms; }
.posts-grid > *:nth-child(4) { animation-delay: 150ms; }
.posts-grid > *:nth-child(5) { animation-delay: 200ms; }
.posts-grid > *:nth-child(6) { animation-delay: 250ms; }

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .share-buttons,
    .reactions,
    .related-posts,
    .comments {
        display: none !important;
    }
    
    .single-post-content {
        font-size: 12pt;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ============================================
   FIX CRÍTICO: Seleção de texto em colunas
   Bug: Texto das colunas de opinião não era selecionável
   Data: Janeiro 2026
   ============================================ */

/* Reset global - garantir que nenhum elemento bloqueie seleção */
body,
body * {
    -webkit-touch-callout: default;
}

/* Conteúdo de artigos DEVE ser selecionável */
.entry-content,
.entry-content *,
.opiniao-entry,
.opiniao-entry *,
.opiniao-main,
.opiniao-main *,
.post-content,
.post-content *,
article .entry-content,
article .entry-content * {
    -webkit-user-select: text !important;
    -khtml-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
}

/* Sidebars NÃO devem bloquear interação com conteúdo adjacente */
.share-sidebar,
.opiniao-sidebar,
aside.share-sidebar {
    pointer-events: none !important;
}

/* Mas elementos clicáveis dentro das sidebars devem funcionar */
.share-sidebar a,
.share-sidebar button,
.share-sidebar .share-btn,
.share-sticky,
.share-sticky *,
.opiniao-sidebar a,
.opiniao-sidebar button,
.opiniao-sidebar input,
.opiniao-sidebar .author-box-extended,
.opiniao-sidebar .sidebar-newsletter {
    pointer-events: auto !important;
}

/* Garantir que layouts grid não criem camadas bloqueadoras */
.opiniao-layout,
.opiniao-content-wrapper {
    pointer-events: auto;
}

.opiniao-layout::before,
.opiniao-layout::after,
.opiniao-content-wrapper::before,
.opiniao-content-wrapper::after {
    pointer-events: none !important;
}

/* Fix específico para páginas de opinião */
.single-opiniao .opiniao-main {
    position: relative;
    z-index: 2;
}

.single-opiniao .share-sidebar {
    position: relative;
    z-index: 1;
}

/* Parágrafos e textos - seleção explícita */
p, span, div, h1, h2, h3, h4, h5, h6,
blockquote, li, td, th, figcaption,
.opiniao-entry p,
.opiniao-entry span,
.opiniao-entry blockquote {
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* ============================================
    ACESSIBILIDADE - Screen Reader Only
    ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible para melhor acessibilidade */
:focus-visible {
    outline: 3px solid var(--povo-lime);
    outline-offset: 2px;
}

/* ============================================
   FORM NOTICES
   ============================================ */
.form-notice {
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-left: 4px solid;
}

.form-notice--success {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--volunteer);
    color: #065f46;
}

.form-notice--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: #EF4444;
    color: #991b1b;
}

body.dark-mode .form-notice--success { color: #6ee7b7; }
body.dark-mode .form-notice--error { color: #fca5a5; }

/* ============================================
   TOAST + NEWSLETTER FEEDBACK
   ============================================ */
.espaco-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 16px);
    background: #0A0A0A;
    color: #FAFAFA;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border: 1px solid var(--povo-lime);
}
.espaco-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.newsletter-feedback {
    margin: 8px 0 0;
    font-size: 0.85rem;
}
.newsletter-feedback.is-success { color: var(--volunteer); }
.newsletter-feedback.is-error { color: #EF4444; }
.newsletter-feedback.is-loading { color: var(--color-text-muted, #71717A); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--povo-black);
    color: var(--brand-ink);
    border: 2px solid var(--povo-lime);
    border-radius: 50%;
    cursor: pointer;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--povo-lime);
    color: var(--povo-black);
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
/* Garante indicador de foco mesmo onde templates removem o outline */
*:focus-visible {
    outline: 3px solid var(--povo-lime) !important;
    outline-offset: 2px !important;
}

:root { color-scheme: light; }
body.dark-mode,
[data-theme='dark'] { color-scheme: dark; }

/* ============================================
   EXTRACTED FROM HEADER.PHP (Non-critical CSS)
   ============================================ */

/* ===== TOP BAR (Desktop) ===== */
.top-bar {
    background: var(--povo-black);
    color: var(--povo-white);
    font-size: 0.75rem;
    padding: 6px 0;
    font-family: var(--font-body);
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-ink);
}

.top-bar-date {
    color: #9ca3af;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-link {
    color: var(--povo-white);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar-link:hover {
    color: var(--brand-ink);
}

.top-bar-cta {
    background: var(--povo-lime);
    color: var(--povo-black);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.top-bar-cta:hover {
    background: var(--povo-lime-dark);
    color: var(--povo-black);
}

@media (max-width: 768px) {
    .top-bar { display: none; }
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 480px;
    background: var(--povo-white);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 24px;
    gap: 24px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-column h4 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--povo-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--povo-lime);
}

.nav-dropdown-column a {
    display: block;
    padding: 8px 0;
    color: var(--povo-black);
    font-size: 0.9rem;
}

.nav-dropdown-column a:hover {
    color: var(--povo-lime-dark);
}

.nav-dropdown-column a::after {
    display: none;
}

.nav-dropdown-badge {
    grid-column: 1 / -1;
    background: var(--povo-black);
    color: var(--brand-ink);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* ============================================
   HEADER & NAVIGATION (movido do inline header.php)
   ============================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--povo-black);
    color: var(--brand-ink);
    font-weight: 600;
    border-radius: 8px;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ============================================
   HEADER v2.1 — uma faixa, preta, desktop e mobile
   ============================================ */
.site-header {
    background: var(--ink);
    color: var(--paper);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header-inner {
    max-width: var(--container-max); margin: 0 auto; padding: 0 16px;
    height: 64px; display: flex; align-items: center; gap: 20px;
}
.header-logo { display: flex; align-items: center; flex: 0 0 auto; }
.custom-logo-img { height: 36px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.nav-primary-wrap { flex: 1 1 auto; min-width: 0; }
.nav-primary { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-primary li { margin: 0; }
.nav-primary a {
    display: block; padding: 8px 12px; border-radius: 6px;
    color: rgba(250,250,250,0.88); font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
    text-decoration: none; white-space: nowrap;
}
.nav-primary a:hover, .nav-primary .current-menu-item > a { color: var(--brand); background: rgba(255,255,255,0.06); }
.header-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.nav-secondary { display: flex; list-style: none; margin: 0 4px 0 0; padding: 0; gap: 2px; }
.nav-secondary a {
    display: block; padding: 8px 10px; color: rgba(250,250,250,0.7);
    font-family: var(--font-body); font-size: 0.85rem; text-decoration: none; border-radius: 6px;
}
.nav-secondary a:hover { color: var(--brand); }
.nav-icon-btn, .mobile-menu-toggle {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: none; color: var(--paper); cursor: pointer; border-radius: 8px;
}
.nav-icon-btn:hover, .mobile-menu-toggle:hover { background: rgba(255,255,255,0.1); color: var(--brand); }
.mobile-menu-toggle { display: none; }
.header-newsletter-btn {
    background: var(--brand); color: var(--ink); padding: 9px 16px; border-radius: 8px; margin-left: 6px;
    font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; text-decoration: none; white-space: nowrap;
}
.header-newsletter-btn:hover { background: #fff; color: var(--ink); }
.header-swg { margin-left: 8px; }
.header-swg[hidden] { display: none; }
@media (max-width: 1080px) {
    .nav-secondary { display: none; }
}
@media (max-width: 992px) {
    .site-header-inner { height: 56px; gap: 8px; }
    .mobile-menu-toggle { display: inline-flex; }
    .nav-primary-wrap { display: none; }
    .header-logo { flex: 1 1 auto; justify-content: center; }
    .custom-logo-img { height: 30px; }
    .header-newsletter-btn { display: none; }
    .header-swg { display: none; }
}

/* Mobile nav */
.mobile-nav {
    position: fixed; top: 0; left: -100%; width: 85%; max-width: 360px; height: 100dvh;
    background: var(--paper); z-index: 9999; overflow-y: auto; transition: left 0.25s ease;
    display: flex; flex-direction: column;
}
.mobile-nav.is-open { left: 0; }
.mobile-nav-header {
    background: var(--ink); color: var(--paper); padding: 0 12px 0 20px; height: 56px;
    display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.mobile-nav-close {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: 8px; color: var(--paper); cursor: pointer;
}
.mobile-nav-menu { list-style: none; margin: 0; padding: 8px 20px; }
.mobile-nav-menu a, .mobile-nav-section a {
    display: block; padding: 12px 0; color: var(--ink); font-family: var(--font-body); font-size: 1rem;
    text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-nav-section { padding: 12px 20px 4px; }
.mobile-nav-section h3 {
    font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 8px 0 4px;
}
.mobile-nav-section a:last-child { border-bottom: none; }
.mobile-nav-cta { padding: 16px 20px 24px; margin-top: auto; }
.mobile-nav-cta a {
    display: block; background: var(--brand); color: var(--ink); padding: 14px; border-radius: 8px;
    font-family: var(--font-display); font-weight: 700; text-align: center; text-decoration: none; margin-bottom: 10px;
}
.mobile-nav-cta a.outline { background: transparent; border: 2px solid var(--ink); }
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; }

/* Search overlay */
.search-overlay {
    position: fixed; inset: 0; background: rgba(10,10,10,0.95); z-index: 99999; display: none;
    align-items: flex-start; justify-content: center; padding: 15vh 20px 20px; backdrop-filter: blur(8px);
}
.search-overlay.is-open { display: flex; }
.search-overlay-inner { width: 100%; max-width: 640px; }
.search-overlay-close {
    position: absolute; top: 16px; right: 16px; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--paper); cursor: pointer;
}
.search-overlay form { display: flex; background: var(--paper); border-radius: 12px; overflow: hidden; }
.search-overlay input { flex: 1; min-width: 0; padding: 18px 20px; border: none; font-family: var(--font-body); font-size: 1.05rem; outline: none; color: var(--ink); }
.search-overlay button {
    padding: 0 22px; background: var(--brand); border: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink);
}

/* Breaking bar */
.breaking-bar { background: #DC2626; color: #fff; padding: 8px 0; font-family: var(--font-body); font-size: 0.875rem; }
.breaking-bar-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.breaking-badge { background: #fff; color: #DC2626; padding: 2px 10px; border-radius: 4px; font-weight: 700; font-size: 0.75rem; }
.breaking-text { flex: 1; }
.breaking-close { background: transparent; border: none; color: #fff; cursor: pointer; padding: 4px; opacity: 0.8; display: inline-flex; }
.ad-leaderboard-wrapper { padding: 16px 0; background: var(--paper-2); }

/* ===== footer.php (movido do template) ===== */

/* ============================================
   ESPAÇO DO POVO - FOOTER REDESIGN v2.0
   ============================================ */

.site-footer {
    margin-top: 48px;
}

/* Newsletter Section */
.footer-newsletter {
    background: var(--povo-lime, var(--brand));
    padding: 32px 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.newsletter-icon {
    font-size: 2.5rem;
}

.newsletter-text h3 {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--povo-black, #0A0A0A);
    margin: 0 0 4px;
}

.newsletter-text p {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    color: var(--povo-black, #0A0A0A);
    opacity: 0.8;
    margin: 0;
}

.newsletter-form-wrapper {
    flex: 1;
    max-width: 480px;
}

.newsletter-form,
.newsletter-form-wrapper form {
    display: flex;
    gap: 8px;
}

.newsletter-form input,
.newsletter-form-wrapper input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--povo-black, #0A0A0A);
    border-radius: 8px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 1rem;
    background: white;
}

.newsletter-form button,
.newsletter-form-wrapper input[type="submit"],
.newsletter-form-wrapper button[type="submit"] {
    padding: 14px 24px;
    background: var(--povo-black, #0A0A0A);
    color: var(--povo-lime, var(--brand));
    border: none;
    border-radius: 8px;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover,
.newsletter-form-wrapper input[type="submit"]:hover,
.newsletter-form-wrapper button[type="submit"]:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

/* MailPoet form overrides */
.newsletter-form-wrapper .mailpoet_form {
    display: flex !important;
    gap: 8px !important;
}

.newsletter-form-wrapper .mailpoet_paragraph {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text {
        flex-direction: column;
    }
    
    .newsletter-form-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .newsletter-form,
    .newsletter-form-wrapper form {
        flex-direction: column;
    }
}

/* Main Footer */
.footer-main {
    background: var(--povo-black, #0A0A0A);
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Footer About Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--povo-white, #FAFAFA);
}

.footer-logo-tagline {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.75rem;
    color: var(--povo-lime, var(--brand));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-description {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.9rem;
    line-height: 1.7;
    color: #a1a1aa;
    margin-bottom: 20px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--povo-lime, var(--brand));
    color: var(--povo-lime, var(--brand));
    padding: 8px 16px;
    border-radius: 100px;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Footer Columns */
.footer-title {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--povo-lime, var(--brand));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 229, 255, 0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.9rem;
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--povo-lime, var(--brand));
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item:hover {
    color: var(--povo-white, #FAFAFA);
}

.contact-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.contact-icon.whatsapp {
    background: #25D366;
    color: white;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #a1a1aa;
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--povo-lime, var(--brand));
    color: var(--povo-black, #0A0A0A);
    transform: translateY(-2px);
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    background: #050505;
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-copyright p {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0 0 4px;
}

.footer-legal {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.footer-legal a {
    color: #a1a1aa;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--povo-lime, var(--brand));
}

.footer-legal span {
    color: #71717a;
}

.footer-cria {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-cria span {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.8rem;
    color: #9ca3af;
}

.cria-logo {
    transition: transform 0.2s;
}

.cria-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Container helper */
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Dark Mode Adjustments */
body.dark-mode .footer-newsletter {
    background: var(--povo-lime, var(--brand));
}

body.dark-mode .footer-main {
    background: #050505;
}

body.dark-mode .footer-bottom {
    background: #000;
}

/* ===== sidebar.php (movido do template) ===== */

/* Sidebar Styles */

.sidebar .widget {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.sidebar .widget-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--povo-lime);
}

/* Newsletter */
.widget_espacodopovo_newsletter,
.widget_espacodopovo_newsletter.widget {
    background: var(--povo-lime) !important;
    border: none !important;
}

.widget_espacodopovo_newsletter .widget-title,
.widget_espacodopovo_newsletter.widget-title {
    color: var(--povo-black);
    border-bottom-color: var(--povo-black);
}

.widget_espacodopovo_newsletter p {
    color: var(--povo-black);
    opacity: 0.8;
    margin-bottom: var(--space-4);
}

.newsletter-form input {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--povo-black);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    background: transparent;
}

.newsletter-form input::placeholder {
    color: rgba(10,10,10,0.6);
}

.newsletter-form button {
    width: 100%;
}

/* Ad Widget */
.widget_espacodopovo_ad,
.widget_espacodopovo_ad.widget {
    background: var(--povo-black) !important;
    text-align: center;
}

.widget-ad-label {
    display: block;
    font-size: var(--text-xs);
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.widget_espacodopovo_ad .ad-cta h4,
.widget_espacodopovo_ad.widget .ad-cta h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--brand-ink);
    margin-bottom: var(--space-2);
}

.widget_espacodopovo_ad .ad-cta p,
.widget_espacodopovo_ad.widget .ad-cta p {
    font-size: var(--text-sm);
    color: #a1a1aa;
    margin-bottom: var(--space-4);
}

/* Popular Posts */
.popular-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}

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

.popular-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-ink);
    line-height: 1;
    min-width: 32px;
}

.popular-category {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.popular-title {
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.popular-title a {
    color: var(--color-text);
}

.popular-title a:hover {
    color: var(--povo-lime-dark);
}

.popular-meta {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tags-list .tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-background-alt);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tags-list .tag:hover {
    background: var(--povo-lime);
    color: var(--povo-black);
}

/* Social */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.social-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-background-alt);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-weight: 500;
    transition: all var(--transition-base);
}

.social-btn:hover {
    transform: translateX(4px);
}

.social-btn--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-btn--whatsapp:hover {
    background: #25D366;
    color: white;
}

.social-btn--youtube:hover {
    background: #FF0000;
    color: white;
}


/* ============================================
   DARK CONTAINERS — dentro deles o ciano volta a ser cor de texto
   (contraste 12.9:1 sobre preto). Gerado a partir dos seletores que
   usam fundo preto no tema.
   ============================================ */
.archive-header,
.author-box,
.author-card--dark,
.back-to-top,
.bg-black,
.category-header,
.colunista-hero,
.colunista-profile-header,
.colunistas-hero,
.contato-hero,
.cta-box,
.cta-colunista,
.denuncias-box,
.edicao-header,
.edicoes-hero,
.espaco-toast,
.footer-main,
.fundador-photo-fallback,
.hero-manchete,
.mission-card,
.mobile-nav-header,
.nav-bar,
.noticias-hero,
.opiniao-header,
.opiniao-hero,
.page-hero,
.pagination .current,
.pauta-hero,
.search-header,
.search-overlay,
.section-mvv,
.section-videos,
.videos,
.manchete,
.sidebar-newsletter,
.single-hero,
.site-footer,
.stat-item,
.top-bar,
.transparencia-hero,
.widget-ad,
.widget-newsletter button,
.widget_espacodopovo_ad,
.widget_espacodopovo_ad.widget {
    --brand-ink: var(--brand);
    --volunteer-ink: #4ADE80;
}

/* ============================================
   BASE v2.1 — legibilidade
   ============================================ */
a { color: var(--brand-ink); }
a:hover { color: var(--ink); }
.post-content, .page-content, .entry-content { text-align: left; hyphens: manual; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ico { width: 1em; height: 1em; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }
.section-title-icon { display: inline-flex; margin-right: 8px; color: var(--brand-ink); }
img { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
