/*
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.0.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.0
   Cores corrigidas: #CCFF00 (Povo Lime)
   ============================================ */

:root {
    /* =========================
       BRAND COLORS (CORRIGIDO)
       ========================= */
    --povo-lime: #CCFF00;
    --povo-lime-rgb: 204, 255, 0;
    --povo-lime-dark: #B8E600;
    --povo-lime-light: #E6FF66;
    --povo-black: #0A0A0A;
    --povo-black-rgb: 10, 10, 10;
    --povo-white: #FAFAFA;
    --povo-white-rgb: 250, 250, 250;
    
    /* 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: #71717A;
    --color-text-muted: #A1A1AA;
    --color-border: #E4E4E7;
    --color-border-light: #F4F4F5;
    
    /* =========================
       CATEGORY COLORS
       ========================= */
    --cat-comunidade: #CCFF00;
    --cat-politica: #2563EB;
    --cat-economia: #10B981;
    --cat-cultura: #EC4899;
    --cat-esporte: #F59E0B;
    --cat-meio-ambiente: #059669;
    --cat-saude: #EF4444;
    --cat-educacao: #8B5CF6;
    --cat-tecnologia: #06B6D4;
    --cat-destaque: #EF4444;
    --cat-artigo: #6366F1;
    --cat-noticias: #3B82F6;
    
    /* =========================
       SEMANTIC COLORS
       ========================= */
    --color-success: #10B981;
    --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(--povo-lime);
}

.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 {
    color: var(--povo-white, #FAFAFA);
}

.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(--povo-lime);
}

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

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

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

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

.btn-ghost:hover {
    color: var(--povo-lime);
    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: 576px) {
    .posts-grid--2col,
    .posts-grid--3col,
    .posts-grid--4col {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   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(--povo-lime);
}

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

/* ============================================
   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(--povo-lime);
    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(--povo-lime);
    border-bottom-color: rgba(204, 255, 0, 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(--povo-lime);
    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(--povo-lime);
    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(--povo-lime);
    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(--povo-lime);
    transform: translateY(-2px);
}

.reaction-btn.active {
    border-color: var(--povo-lime);
    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(--povo-lime);
}

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

/* ============================================
   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(--povo-lime);
}

.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(--povo-lime);
    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(--povo-lime);
    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(--povo-lime);
    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); }
.text-black { color: var(--povo-black); }
.text-muted { color: var(--color-text-muted); }

.bg-lime { background-color: var(--povo-lime); }
.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;
}
