/*
Theme Name: Portal do iOS (Copa do Mundo 3D - Ultra Premium)
Theme URI: https://portaldoios.com
Author: Administrador
Description: Tema 3D, animado e imersivo com as cores da bandeira do Brasil. Fundo orgânico e cartões em vidro fosco de alto contraste (Glassmorphism).
Version: 6.0.0
*/

/* ==========================================================================
   1. VARIÁVEIS DO SISTEMA & DESIGN SYSTEM (ACESSIBILIDADE COMPATÍVEL)
   ========================================================================== */
:root {
    /* Cores de Identidade (Padrão Seleção/Copa) */
    --br-verde: #009c3b;       
    --br-amarelo: #fedc00;     
    --br-azul: #002776;        
    --br-azul-bright: #0055ff;
    --br-branco: #ffffff;      
    
    /* Sistema de Cores de Texto (Garantia de Contraste WCAG) */
    --texto-sobre-escuro: #ffffff;       /* Para textos direto no fundo ou blocos escuros */
    --texto-sobre-claro: #0f172a;        /* Azul-ardósia escuro para leitura perfeita em blocos claros */
    --texto-mutado-escuro: #e2e8f0;      /* Texto secundário em fundos escuros */
    --texto-mutado-claro: #475569;       /* Texto secundário em fundos claros */
}

/* ==========================================================================
   2. RESETS INTERNACIONAIS E TIPOGRAFIA ULTRA-CLEAN
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--texto-sobre-escuro);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* FUNDO ANIMADO PREMIUM: Ajustado para não ofuscar o texto */
    background: linear-gradient(-45deg, #002b10, #006627, #001a4d, #004d1d);
    background-size: 400% 400%;
    animation: bandeiraAnimada 18s ease infinite;
    position: relative;
    z-index: 0;
    padding-bottom: 40px;
}

/* Brilho esférico de fundo para simular profundidade 3D */
body::before {
    content: "";
    position: fixed;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background: radial-gradient(circle at 50% 30%, rgba(254, 220, 0, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

@keyframes bandeiraAnimada {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a {
    color: var(--br-amarelo);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.2s ease;
}

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

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

/* Divisor de Seções Estilizado */
.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(254, 220, 0, 0.4), transparent);
    margin: 40px auto;
    width: 85%;
}

/* ==========================================================================
   3. CABEÇALHO (Navegação Inteligente em Vidro Oco)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 999;
    background-color: rgba(0, 43, 16, 0.85); /* Verde fechado para dar contraste nos links brancos */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(254, 220, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

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

.site-title a {
    font-size: 22px;
    font-weight: 900;
    color: var(--texto-sobre-escuro);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.site-title a span {
    color: var(--br-amarelo);
    text-shadow: 0 0 12px rgba(254, 220, 0, 0.4);
}

.header-spacer { height: 80px; }

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-navigation ul li a {
    color: var(--texto-sobre-escuro);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation ul li a:hover {
    color: var(--br-amarelo);
}

/* ==========================================================================
   4. HERO PRINCIPAL (O Bloco de Conteúdo / Sideloading)
   ========================================================================== */
.portal-hero {
    padding: 30px 0 20px 0;
}

.hero-card-glass {
    /* Vidro reforçado para garantir leitura impecável */
    background: rgba(255, 255, 255, 0.96); 
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--br-verde);
}

.hero-badge {
    background-color: var(--br-azul);
    color: var(--texto-sobre-escuro);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--texto-sobre-claro); /* Mudado de azul para slate escuro por legibilidade */
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hero-lead {
    font-size: 15px;
    color: var(--texto-mutado-claro);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-meta {
    font-size: 12px;
    color: var(--texto-mutado-claro);
    margin-bottom: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 12px;
}

.btn-portal-primary {
    background: var(--br-verde);
    color: var(--texto-sobre-escuro);
    font-weight: 800;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 14px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 0 #006627, 0 10px 20px rgba(0, 156, 59, 0.3);
}

.btn-portal-primary:hover {
    background: var(--br-azul);
    box-shadow: 0 5px 0 #001540, 0 10px 20px rgba(0, 39, 118, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. BANNER DE ANÚNCIO NATIVO PREMIUM (Foco em Conversão do GBox)
   ========================================================================== */
.native-ad-section { padding: 15px 0; }

.ad-banner-3d {
    background: linear-gradient(135deg, #001a4d, #000c24);
    border: 2px solid var(--br-amarelo);
    border-radius: 24px;
    padding: 32px;
    color: var(--texto-sobre-escuro);
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.ad-tag {
    background: var(--br-amarelo);
    color: var(--br-azul);
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.ad-content h2 { 
    font-size: 26px; 
    font-weight: 900; 
    color: var(--br-amarelo); 
    margin-bottom: 12px;
    line-height: 1.2;
}

.ad-content p { 
    color: var(--texto-mutado-escuro); 
    font-size: 15px;
    line-height: 1.5;
}

.ad-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--br-branco);
}
.ad-features span {
    background: rgba(255,255,255,0.08);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
}

.ad-action-zone {
    background: rgba(255,255,255,0.04);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.ad-price { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--texto-mutado-escuro); text-transform: uppercase;}

.btn-ad-download {
    background: linear-gradient(180deg, var(--br-amarelo), #e6c600);
    color: var(--br-azul);
    font-weight: 900;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 12px;
    display: inline-block;
    text-transform: uppercase;
    width: 100%;
    box-shadow: 0 5px 0 #948100, 0 8px 20px rgba(0,0,0,0.2);
}

.btn-ad-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #948100, 0 12px 25px rgba(254, 220, 0, 0.3);
}

.ad-subtext { font-size: 11px; color: rgba(255,255,255,0.4); display: block; margin-top: 10px; }

/* ==========================================================================
   6. GRID DE ARTIGOS/TUTORIAIS (Visual de Portal de Alto Nível)
   ========================================================================== */
.latest-posts-section { padding: 30px 0 60px 0; }

.section-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--texto-sobre-escuro); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Card de Artigo em Vidro Totalmente Otimizado */
.card-portal-article {
    background: rgba(255, 255, 255, 0.96); /* Quase opaco para o fundo verde escuro não matar o texto */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.card-portal-article:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.article-thumb-wrapper {
    height: 160px;
    position: relative;
    background: #0f172a;
}
.article-thumb-wrapper img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease;
}
.card-portal-article:hover .article-thumb-wrapper img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    bottom: 12px; left: 12px;
    background: var(--br-azul);
    color: var(--texto-sobre-escuro);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.card-portal-article .article-body { 
    padding: 24px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.card-portal-article h3 { 
    font-size: 18px; 
    font-weight: 800; 
    color: var(--texto-sobre-claro); /* Garantia de leitura */
    margin-bottom: 8px; 
    line-height: 1.3;
}

.card-portal-article p { 
    font-size: 14px; 
    color: var(--texto-mutado-claro); /* Cinza escuro de alta legibilidade */
    margin-bottom: 20px; 
    flex-grow: 1; 
    line-height: 1.5;
}

.btn-read-article {
    background: rgba(0, 39, 118, 0.07);
    color: var(--br-azul);
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    font-size: 13px;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-portal-article:hover .btn-read-article {
    background: var(--br-verde);
    color: var(--texto-sobre-escuro);
}

/* ==========================================================================
   7. RODAPÉ INSTITUCIONAL
   ========================================================================== */
.site-footer {
    background: rgba(0, 12, 4, 0.6);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--texto-sobre-escuro);
    padding: 48px 0 24px 0;
    text-align: center;
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
}
.footer-brand h3 span { color: var(--br-amarelo); }
.footer-brand p { font-size: 13px; color: var(--texto-mutado-escuro); }

.footer-divider {
    border: 0; height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 24px 0;
}

.footer-bottom {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   8. MEDIA QUERIES (Responsividade PC e Telas Grandes)
   ========================================================================== */
@media (min-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-card-glass { padding: 40px; }
    
    .ad-banner-3d { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
    }
    .ad-content { flex: 1; }
    .ad-action-zone { min-width: 280px; }
    
    .content-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 28px;
    }
    
    .section-title { font-size: 32px; text-align: left; }
    .site-footer { text-align: left; }
    .footer-bottom { display: flex; justify-content: space-between; }
}

@media (min-width: 1024px) {
    .content-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ==========================================================================
   9. MENU MOBILE (Otimização de Toque e Espaço)
   ========================================================================== */
@media (max-width: 767px) {
    .menu-toggle { display: flex; }
    
    .main-navigation {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(0, 31, 11, 0.98);
        border-bottom: 3px solid var(--br-amarelo);
        max-height: 0; overflow: hidden;
        transition: max-height 0.35s ease-out;
    }
    
    .main-navigation.toggled { max-height: 300px; }
    .main-navigation ul { flex-direction: column; padding: 24px; gap: 16px; }
    .main-navigation ul li a { font-size: 16px; display: block; }
}