/* ==========================================================================
   BRILHA BRASIL - SUPER THEME (MASTER STYLE 3.2)
   Correção: Menu Lateral Mobile + Lightbox Nativo + Imagens Grandes no PC
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- VARIÁVEIS PADRÃO --- */
:root {
    --brilha-gradiente: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #db2777 100%);
    --brilha-texto: #ffffff;
    --vidro-bg: rgba(255, 255, 255, 0.1);
    --vidro-border: 1px solid rgba(255, 255, 255, 0.2);
    --animacao-suave: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- GLOBAL --- */
body {
    margin: 0; padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #020617; color: var(--brilha-texto);
    overflow-x: hidden; min-height: 100vh;
}

/* Fundo Animado */
body::before {
    content: ''; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 40%, #000000 80%);
    opacity: 0.8; z-index: -2; animation: girar-fundo 120s linear infinite; pointer-events: none;
}

/* Orbes */
.orb { position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.5; animation: flutuar 15s infinite ease-in-out; pointer-events: none; }
.orb-1 { top: 5%; left: 5%; width: 400px; height: 400px; background: #7c3aed; }
.orb-2 { bottom: 10%; right: 5%; width: 500px; height: 500px; background: #2563eb; animation-delay: -5s; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }

/* --- HEADER --- */
.site-header {
    display: flex; flex-direction: column; padding: 20px 30px;
    background: var(--vidro-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 20px; border: var(--vidro-border); margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: var(--animacao-suave);
}
@media (min-width: 768px) { .site-header { flex-direction: row; justify-content: space-between; align-items: center; } }

.logo-brilha {
    font-size: 1.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: -1px; margin: 0;
    background: var(--brilha-gradiente); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}
.logo-brilha i { -webkit-text-fill-color: initial; }

.nav-brilha { display: flex; gap: 10px; align-items: center; margin-top: 15px; }
@media (min-width: 768px) { .nav-brilha { margin-top: 0; } }

.btn-perfil, .btn-sair, .btn-entrar {
    text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 50px;
    display: flex; align-items: center; gap: 8px; font-size: 0.9rem; transition: var(--animacao-suave);
}
.btn-perfil { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--brilha-texto); }
.btn-perfil:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.btn-entrar { background: var(--brilha-gradiente); color: #fff; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.btn-entrar:hover { transform: translateY(-2px) scale(1.05); }
.btn-sair { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-sair:hover { background: #ef4444; color: #fff; }

/* --- LAYOUT GRID (Feed + Sidebar) --- */
.layout-rede {
    display: grid; 
    grid-template-columns: 1fr; /* Padrão Mobile: 1 coluna */
    gap: 30px; 
    align-items: start;
}

/* No PC (Tela maior que 992px), divide em duas colunas */
@media (min-width: 992px) {
    .layout-rede { grid-template-columns: 1fr 320px; }
}

/* --- SIDEBAR --- */
.sidebar-direita {
    position: sticky; top: 20px;
}
.sidebar-titulo {
    font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin: 0 0 20px 0;
    display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.9);
}
.lista-recente { list-style: none; padding: 0; margin: 0; }
.lista-recente li { margin-bottom: 12px; }
.lista-recente a { color: #ccc; text-decoration: none; transition: 0.2s; }
.lista-recente a:hover { color: #fff; padding-left: 5px; }

/* --- WIDGET DO MENU RÁPIDO (Neon Plugin Style) --- */
.neon-menu-rapido-container {
    background: #0f1020; /* Fundo Escuro */
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 25px;
    padding: 25px;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}
.nm-header {
    color: #fbbf24; font-weight: 800; font-size: 0.8rem; letter-spacing: 1.5px;
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px; text-transform: uppercase;
}
.nm-list { display: flex; flex-direction: column; gap: 10px; }
.nm-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); color: #e2e8f0;
    text-decoration: none; padding: 15px 20px; border-radius: 12px; font-size: 0.95rem;
    font-weight: 500; transition: 0.3s; display: flex; align-items: center; gap: 12px;
}
.nm-item:hover { background: rgba(255,255,255,0.08); border-color: #3b82f6; transform: translateX(5px); }
.nm-dot { color: #3b82f6; font-size: 0.6rem; }
.nm-footer {
    margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; color: #cbd5e1; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
}
.nm-footer small { color: #64748b; font-size: 0.7rem; text-transform: none; display: block; margin-top: 5px; font-weight: 400; }
/* Correção de Vídeo Full Width e Proporção 16:9 */
.card-video {
    position: relative;
    padding-bottom: 56.25%; /* Mantém a proporção 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    width: 100% !important; /* Força ocupar a largura toda do card */
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* Ajuste específico para o Single Post não esmagar o conteúdo */
.single-post .coluna-principal {
    max-width: 100% !important;
}

.brilha-feed-card {
    display: flex;
    flex-direction: column;
}
/* --- FEED CARDS --- */
.brilha-feed-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    border-radius: 20px; margin-bottom: 30px; overflow: hidden; color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: transform 0.3s;
}
.brilha-feed-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }

.card-header { display: flex; align-items: center; gap: 15px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.1); }
.card-avatar img, .avatar-img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #fbbf24; object-fit: cover; }
.card-meta { display: flex; flex-direction: column; }
.card-meta strong { font-size: 1rem; color: #fff; }
.card-meta span { font-size: 0.8rem; opacity: 0.6; }

.card-body { padding: 20px; }
.card-title { margin: 0 0 10px 0; font-size: 1.3rem; }
.card-title a { text-decoration: none; color: #fff; }
.card-text { font-size: 0.95rem; line-height: 1.6; opacity: 0.9; }

.card-image img { width: 100%; height: auto; display: block; max-height: 600px; object-fit: cover; }
.card-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.card-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Galeria de Miniaturas */
.card-gallery { display: flex; gap: 8px; padding: 15px; overflow-x: auto; background: rgba(0,0,0,0.1); }
.gallery-item { 
    width: 100px; 
    height: 100px; 
    object-fit: cover; 
    border-radius: 8px; 
    cursor: pointer; 
    border: 1px solid rgba(255,255,255,0.2); 
    transition: 0.2s; 
}
.gallery-item:hover { transform: scale(1.05); border-color: #fbbf24; }

/* Dobra o tamanho da miniatura apenas no Computador (PC) */
@media (min-width: 992px) {
    .gallery-item {
        width: 220px;
        height: 220px;
    }
}

.card-footer { display: flex; justify-content: space-around; padding: 15px; border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2); }
.btn-action { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 8px; transition: 0.2s; font-family: inherit; }
.btn-action:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* --- MODAL (POP-UP) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s; padding: 20px;
}
.modal-overlay.ativo { opacity: 1; visibility: visible; }
.modal-content {
    background: transparent; width: 100%; max-width: 480px; position: relative;
    animation: zoomIn 0.3s ease; max-height: 90vh; overflow-y: auto;
}
.modal-content::-webkit-scrollbar { width: 0px; background: transparent; }
.btn-fechar-modal {
    position: absolute; top: 15px; right: 15px; background: #ef4444; color: white;
    border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 20px;
    cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Animações */
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; transform: translateY(20px); }
@keyframes girar-fundo { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes flutuar { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- RESPONSIVIDADE CORRIGIDA --- */
@media (max-width: 900px) {
    .sidebar-direita { display: block !important; margin-top: 40px; }
    .nav-brilha .hide-mobile { display: none; }
}

/* --- TELA DE LOGIN (ACESSO RESTRITO) --- */
.container-login-focado {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.card-login-token {
    background: #ffffff; width: 100%; max-width: 450px; border-radius: 24px; padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center; color: #1e293b; position: relative; z-index: 10;
}
.login-title { font-size: 1.8rem; font-weight: 800; margin: 0 0 10px 0; color: #0f172a; }
.login-subtitle { color: #64748b; font-size: 0.95rem; margin-bottom: 30px; }

.grupo-input { text-align: left; margin-bottom: 20px; }
.grupo-input label { display: block; font-size: 0.75rem; font-weight: 700; color: #475569; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.grupo-input input { width: 100%; padding: 12px 15px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 1rem; color: #334155; background: #f8fafc; transition: 0.2s; box-sizing: border-box; }
.grupo-input input:focus { border-color: #8b5cf6; background: #fff; outline: none; }

.login-actions { text-align: right; margin-bottom: 25px; }
.link-esqueci { color: #6366f1; font-size: 0.85rem; text-decoration: none; font-weight: 600; }
.login-buttons { display: flex; gap: 15px; justify-content: space-between; }
.btn-outline { flex: 1; background: #fff; border: 2px solid #e2e8f0; color: #64748b; padding: 12px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-outline:hover { border-color: #94a3b8; color: #475569; }
.btn-purple { flex: 1; background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); border: none; color: #fff; padding: 12px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.btn-purple:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); }
#login-response-msg { margin-top: 20px; font-weight: 600; font-size: 0.9rem; }

/* --- ESTILO DOS WIDGETS NATIVOS --- */
.widget { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 20px; margin-bottom: 25px; backdrop-filter: blur(5px); }
.widget-title { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; margin-top: 0; color: rgba(255, 255, 255, 0.9); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.widget ul li a { color: #cbd5e1; text-decoration: none; transition: 0.2s; }
.widget ul li a:hover { color: #fbbf24; padding-left: 5px; }

.wp-block-search__input, .search-form input[type="search"] { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; padding: 10px; border-radius: 8px; width: 100%; box-sizing: border-box; }
.wp-block-search__button, .search-submit { background: var(--brilha-gradiente); color: white; border: none; padding: 10px 15px; border-radius: 8px; margin-top: 10px; cursor: pointer; font-weight: bold; }

/* --- BANNER SUPERIOR PERSONALIZÁVEL --- */
.brilha-banner-hero { position: relative; padding: 60px 40px; border-radius: 24px; overflow: hidden; margin-bottom: 40px; background-size: cover; background-position: center; box-shadow: 0 15px 40px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; min-height: 250px; }
.banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); z-index: 1; }
.banner-content { position: relative; z-index: 2; max-width: 600px; }
.banner-content h2 { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0 0 15px 0; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.banner-content p { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 25px; line-height: 1.6; }
.btn-banner { display: inline-block; padding: 12px 30px; border-radius: 50px; color: white; font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: all 0.3s ease; border: none; }
.btn-banner:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }

@media (max-width: 768px) {
    .brilha-banner-hero { padding: 40px 25px; text-align: center; }
    .banner-overlay { background: rgba(0,0,0,0.6); }
    .banner-content { margin: 0 auto; }
    .banner-content h2 { font-size: 1.8rem; }
}

/* ==========================================================================
   BRILHA BRASIL - MASTER STYLE 3.5 (CORREÇÕES MOBILE & EXTRAS)
   ========================================================================== */
* { box-sizing: border-box !important; max-width: 100%; }
html, body { margin: 0; padding: 0; overflow-x: hidden; width: 100%; font-family: 'Plus Jakarta Sans', sans-serif; background: #020617; color: #fff; }

.brilha-feed-card { width: 100% !important; }
.card-header { padding: 20px; display: flex; align-items: center; gap: 15px; }
.card-body { padding: 0 20px 20px 20px; }

@media (max-width: 992px) { .layout-rede { display: flex; flex-direction: column; gap: 20px; } }
@media (max-width: 768px) {
    .container { padding: 15px; }
    .site-header { flex-direction: column; gap: 15px; text-align: center; }
    .sidebar-direita { width: 100% !important; margin: 0 !important; }
}

/* =========================================
   LIGHTBOX (IMAGEM EM TELA CHEIA) COM SETAS
   ========================================= */
.brilha-lightbox-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.95); 
    z-index: 10000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease; 
    backdrop-filter: blur(5px); 
}
.brilha-lightbox-overlay.ativo { 
    opacity: 1; 
    visibility: visible; 
}

/* IMAGEM GIGANTE NO LIGHTBOX (MÁGICA DO TAMANHO) */
.brilha-lightbox-img { 
    width: 100%; /* Força a tentar preencher a largura */
    height: 100%; /* Força a tentar preencher a altura */
    max-width: 85vw; /* Mantém espaço para as setas laterais */
    max-height: 90vh; /* Mantém uma margem no topo e fundo */
    border-radius: 8px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
    transform: scale(0.9); 
    transition: transform 0.3s ease; 
    object-fit: contain; /* Estica a imagem no máximo possível sem distorcer! */
}

.brilha-lightbox-overlay.ativo .brilha-lightbox-img { 
    transform: scale(1); 
}

.btn-fechar-lightbox { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: rgba(255, 255, 255, 0.1); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.2); 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    font-size: 20px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 10001; 
    transition: all 0.3s ease;
}
.btn-fechar-lightbox:hover {
    background: #ef4444; /* Fica vermelho ao passar o mouse */
    border-color: #ef4444;
    transform: scale(1.1);
}

/* SETAS DE NAVEGAÇÃO DO LIGHTBOX */
.btn-nav-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.btn-nav-lightbox:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-nav-lightbox.prev { left: 30px; }
.btn-nav-lightbox.next { right: 30px; }

@media (max-width: 768px) {
    .brilha-lightbox-img { max-width: 95vw; }
    .btn-nav-lightbox { width: 40px; height: 40px; font-size: 16px; }
    .btn-nav-lightbox.prev { left: 10px; }
    .btn-nav-lightbox.next { right: 10px; }
    .btn-fechar-lightbox { top: 15px; right: 15px; width: 35px; height: 35px; font-size: 16px; }
}

/* ==========================================================================
   BOTÃO ANIMADO & AJUSTES DE PERFIL/SINGLE POST
   ========================================================================== */
.btn-criar-conta-animado { display: block; width: 100%; padding: 15px; background: linear-gradient(45deg, #ff00cc, #3333ff, #00ccff); background-size: 300% 300%; color: #fff; font-weight: bold; text-transform: uppercase; text-decoration: none; border-radius: 50px; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; animation: neon-gradient 3s ease infinite; position: relative; overflow: hidden; }
.btn-criar-conta-animado:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(51, 51, 255, 0.6); color: #fff; }
@keyframes neon-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

@media (max-width: 900px) { .site-header { display: none !important; } }

body.page:not(.home):not(.front-page):not(.blog) .card-header { display: none !important; }

/* 1. Oculta a sidebar e widgets na Home e no Single Post */
body.home .sidebar-direita,
body.front-page .sidebar-direita,
body.single .sidebar-direita,
body.home .widget,
body.front-page .widget,
body.single .widget {
    display: none !important;
}

@media (min-width: 992px) {
    body.home .layout-rede,
    body.front-page .layout-rede {
        max-width: 100% !important;
    }
    body.home .container,
    body.front-page .container {
        max-width: 95% !important;
        width: 100% !important;
    }
    body.single .layout-rede {
        grid-template-columns: 1fr !important;
        max-width: 750px !important;
        margin: 0 auto !important;
    }
}

/* ==========================================================================
   OVERLAY DE ESTATÍSTICAS VIBRANTE E ANIMADO (CORRIGIDO PARA MOBILE)
   ========================================================================== */

/* Layout e Posição Base (Tamanho reduzido para caber no telemóvel) */
.card-stats-overlay {
    position: absolute;
    bottom: 12px; 
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px; /* Mais colados no telemóvel */
    z-index: 10;
    pointer-events: none; /* Deixa o clique passar para a imagem */
}

/* Estilo da "Pílula" no Mobile */
.card-stats-overlay span {
    background: rgba(15, 23, 42, 0.75); /* Fundo escuro translúcido */
    backdrop-filter: blur(5px); /* Efeito vidro */
    padding: 6px 12px; /* Pílula menor no celular */
    border-radius: 30px; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem; /* Texto menor no celular */
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.card-stats-overlay i {
    font-size: 1.1rem;
}

/* Aumenta de volta o tamanho nas telas de PC/Tablet */
@media (min-width: 768px) {
    .card-stats-overlay { bottom: 20px; gap: 15px; }
    .card-stats-overlay span { padding: 8px 16px; font-size: 1rem; gap: 8px; }
    .card-stats-overlay i { font-size: 1.3rem; }
}

/* --- CORES NEON E ANIMAÇÕES DIVERTIDAS --- */

/* 1. Coração (Likes) - Vermelho Neon Pulsante */
.card-stats-overlay .fa-heart {
    color: #ff3366; 
    filter: drop-shadow(0 0 5px rgba(255, 51, 102, 0.6));
    animation: heartbeat 1.5s infinite ease-in-out; 
}

/* 2. Comentários - Azul Ciano Falando (Balançando) */
.card-stats-overlay .fa-comment {
    color: #33ccff; 
    filter: drop-shadow(0 0 5px rgba(51, 204, 255, 0.6));
    animation: tagarelar 3s infinite ease-in-out; 
    transform-origin: bottom center; /* Ponto de eixo para o balanço */
}

/* 3. Visualizações - Dourado Neon Piscando o olho */
.card-stats-overlay .fa-eye {
    color: #ffcc00; 
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.6));
    animation: piscar 4s infinite linear; 
}

/* --- KEYFRAMES (As regras de Animação) --- */

/* Coração batendo */
@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Balão a "tagarelar" (balança de um lado para o outro) */
@keyframes tagarelar {
    0%, 80%, 100% { transform: rotate(0deg); }
    85% { transform: rotate(-15deg); }
    90% { transform: rotate(15deg); }
    95% { transform: rotate(-10deg); }
}

/* Olho a piscar (Achata-se para parecer que fechou a pálpebra) */
@keyframes piscar {
    0%, 90%, 100% { transform: scaleY(1); }
    93% { transform: scaleY(0.1); } 
    96% { transform: scaleY(1); }
}
/* =================================================================
   CORREÇÃO DE CORES DOS TEXTOS - NEON DESTAQUE (Vindo do Suporte)
================================================================= */

/* 1. Títulos dos Posts no Feed (Cards) */
.brilha-feed-card .card-title a {
    color: #3fd1ff !important; /* Azul Ciano Neon Brilhante */
    text-shadow: 0 0 12px rgba(63, 209, 255, 0.6);
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse no título do card */
.brilha-feed-card .card-title a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(63, 209, 255, 0.8);
}

/* 2. Títulos Principais nas Páginas Únicas (Single Post e Páginas do Sistema) */
.brilha-pagina-sistema h1,
.single-post .entry-title,
.page .entry-title {
    color: #3fd1ff !important;
    text-shadow: 0 0 15px rgba(63, 209, 255, 0.5);
    font-weight: 800 !important;
}

/* 3. Nome do Autor e Data nos Cards */
.card-meta strong a {
    color: #e6f7ff !important; /* Branco gelo */
    font-weight: 700 !important;
}

.card-meta span {
    color: rgba(230, 247, 255, 0.85) !important;
}

/* 4. Títulos dos Widgets Laterais (Ex: "MENU RÁPIDO") */
.nm-header {
    color: #3fd1ff !important;
    text-shadow: 0 0 8px rgba(63, 209, 255, 0.4);
}

/* 5. Cor do texto dentro das páginas de sistema */
.brilha-pagina-sistema .conteudo-da-pagina {
    color: #e2e8f0 !important;
}

/* =================================================================
   LINKS DAS ESTATÍSTICAS (FEED) - CORREÇÃO DE CLIQUE E SUBLINHADO
================================================================= */
.card-stats-overlay .stat-link {
    text-decoration: none !important;
    color: inherit !important;
    pointer-events: auto !important; 
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.card-stats-overlay .stat-link:hover {
    transform: scale(1.1) translateY(-3px);
}
/* =================================================================
   CORREÇÕES DO FEED: BARRA DE INTERAÇÃO COMPACTA E RISCO AZUL
================================================================= */

/* 1. Remove o risco azul (underline/border) dos ícones sobre a foto em qualquer lugar */
.card-stats-overlay .stat-link,
.card-stats-overlay .stat-link:hover,
.card-stats-overlay .stat-link:focus,
.card-stats-overlay .stat-link span {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* =================================================================
   AS REGRAS ABAIXO SE APLICAM APENAS NO FEED (Oculta textos)
   Isso mantém os botões grandes intactos na página do Single Post
================================================================= */

/* 2. Esconde os contadores repetidos (pois já estão em cima da foto) */
body:not(.single) .brilha-feed-card .brilha-stats-counters {
    display: none !important;
}

/* 3. Limpa TOTALMENTE o fundo escuro da barra para deixar só os círculos flutuando */
body:not(.single) .brilha-feed-card .brilha-actions-row {
    background: transparent !important;
    background-image: none !important; /* Remove o gradiente do plugin */
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important; /* Mata o efeito de vidro/blur */
    -webkit-backdrop-filter: none !important; /* Mata o blur no Safari/iPhone */
    justify-content: center !important;
    gap: 25px !important; /* Espaçamento entre as bolinhas */
    padding: 0 0 15px 0 !important;
}

/* Remove a linha divisória em cima das bolinhas no feed */
body:not(.single) .brilha-feed-card .brilha-interaction-bar {
    border-top: none !important; 
    padding-top: 0 !important;
    margin-top: 5px !important;

}

/* 4. Transforma os botões em círculos perfeitos e esconde as palavras */
body:not(.single) .brilha-feed-card .brilha-action-btn {
    font-size: 0 !important; /* MÁGICA: Esconde o texto "Curtir", "Comentar" */
    padding: 0 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    flex: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* 5. Aumenta e centraliza o ícone dentro das bolinhas */
body:not(.single) .brilha-feed-card .brilha-action-btn i {
    font-size: 1.4rem !important;
    margin: 0 !important;
}

/* 6. Ajuste para o botão "Partilhar" não quebrar o layout circular */
body:not(.single) .brilha-feed-card .brilha-share-wrapper {
    flex: none !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
}

body:not(.single) .brilha-feed-card .brilha-share-wrapper .brilha-action-btn {
    width: 100% !important;
    height: 100% !important;
}
/* ==========================================================
   OTIMIZAÇÃO DE PERFORMANCE PARA CELULARES (FIM DOS ENGASGOS)
   ========================================================== */
@media (max-width: 768px) {
    /* 1. Desliga os Orbes animados que pesam o processamento gráfico */
    .orb { display: none !important; }
    
    /* 2. Desliga a animação de rotação do fundo */
    body::before { animation: none !important; }
    
    /* 3. Remove o efeito de vidro (backdrop-filter) que trava a rolagem */
    .brilha-feed-card { 
        backdrop-filter: none !important; 
        -webkit-backdrop-filter: none !important;
        background: rgba(30, 41, 59, 0.95) !important; /* Fundo sólido e escuro para compensar */
    }
    
    /* 4. Remove o efeito de vidro do cabeçalho também */
    .site-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.98) !important;
    }
}
/* ==========================================================
   SUPER OTIMIZAÇÃO DE ROLAGEM MOBILE (FASE 2 - DEFINITIVA)
   Resolve o "engasgo" liberando a GPU do celular
   ========================================================== */

@media (max-width: 768px) {
    /* 1. MATA AS ANIMAÇÕES CONTÍNUAS NOS CARDS (O MAIOR VILÃO DO LAG) */
    .card-stats-overlay .fa-heart,
    .card-stats-overlay .fa-comment,
    .card-stats-overlay .fa-eye {
        animation: none !important; 
        filter: none !important; /* Remove o drop-shadow neon (sombra brilhante) que também pesa a rolagem */
        transform: none !important;
    }

    /* 2. REMOVE O EFEITO VIDRO DAS PÍLULAS DE ESTATÍSTICAS SOBRE A FOTO */
    .card-stats-overlay span {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.95) !important; /* Troca o vidro por uma cor sólida escurecida */
        box-shadow: none !important;
    }

    /* 3. LIBERA A ROLAGEM NATIVA ACELERADA POR HARDWARE DO CELULAR */
    html, body {
        /* Removemos o hidden apenas no mobile para a GPU assumir o controle da rolagem */
        overflow-x: visible !important; 
    }
    
    /* Para evitar que a tela balance para os lados com o visible, travamos a largura máxima */
    body {
        max-width: 100vw !important;
        overflow-x: clip !important; /* 'clip' é moderno, não quebra a aceleração de hardware como o 'hidden' */
    }

    /* 4. PAUSA ANIMAÇÕES DO BOTÃO FLUTUANTE DE CRIAR CONTA E DO RADAR AO VIVO */
    .btn-criar-conta-animado {
        animation: none !important;
        background-position: 0% 50% !important; /* Fixa o gradiente */
    }
    
    .mobile-live-toggle-wrapper i {
        animation: none !important; /* Tira o pulsar do satélite */
    }
}
/* ==========================================================
   SUPER OTIMIZAÇÃO DE ROLAGEM MOBILE (FASE 2 - DEFINITIVA)
   Resolve o "engasgo" liberando a GPU do celular
   ========================================================== */

@media (max-width: 768px) {
    /* 1. MATA AS ANIMAÇÕES CONTÍNUAS NOS CARDS (O MAIOR VILÃO DO LAG) */
    .card-stats-overlay .fa-heart,
    .card-stats-overlay .fa-comment,
    .card-stats-overlay .fa-eye {
        animation: none !important; 
        filter: none !important; /* Remove o drop-shadow neon (sombra brilhante) que também pesa a rolagem */
        transform: none !important;
    }

    /* 2. REMOVE O EFEITO VIDRO DAS PÍLULAS DE ESTATÍSTICAS SOBRE A FOTO */
    .card-stats-overlay span {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.95) !important; /* Troca o vidro por uma cor sólida escurecida */
        box-shadow: none !important;
    }

    /* 3. LIBERA A ROLAGEM NATIVA ACELERADA POR HARDWARE DO CELULAR */
    html, body {
        /* Removemos o hidden apenas no mobile para a GPU assumir o controle da rolagem */
        overflow-x: visible !important; 
    }
    
    /* Para evitar que a tela balance para os lados com o visible, travamos a largura máxima */
    body {
        max-width: 100vw !important;
        overflow-x: clip !important; /* 'clip' é moderno, não quebra a aceleração de hardware como o 'hidden' */
    }

    /* 4. PAUSA ANIMAÇÕES DO BOTÃO FLUTUANTE DE CRIAR CONTA E DO RADAR AO VIVO */
    .btn-criar-conta-animado {
        animation: none !important;
        background-position: 0% 50% !important; /* Fixa o gradiente */
    }
    
    .mobile-live-toggle-wrapper i {
        animation: none !important; /* Tira o pulsar do satélite */
    }
}
/* ==========================================================
   OTIMIZAÇÃO DE PERFORMANCE PARA PC (DESKTOP)
   Fim do lag na rolagem: Libera a GPU do Computador
   ========================================================== */

@media (min-width: 769px) {
    /* 1. Remove o efeito de vidro (blur) dos cards, que é o maior causador de lentidão na rolagem */
    .brilha-feed-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.98) !important; /* Fundo sólido elegante, igual ao mobile */
    }

    /* 2. Remove o blur dos pequenos contadores em cima da foto */
    .card-stats-overlay span {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.95) !important; 
    }

    /* 3. Pausa as animações infinitas dos ícones nas fotos do Feed */
    .card-stats-overlay .fa-heart,
    .card-stats-overlay .fa-comment,
    .card-stats-overlay .fa-eye {
        animation: none !important; 
        /* Mantemos a cor neon, mas tiramos o movimento para salvar processamento */
    }
}

/* ==========================================================================
   MODO CINEMA AO PASSAR O MOUSE NO VÍDEO (PC) - VERSÃO 2
   - O vídeo roda no hover
   - O botão de play, o título, o autor, o coração, visualizações e tudo mais
     some, deixando APENAS o vídeo/imagem
   - Ao tirar o mouse, tudo volta ao normal
   A classe .cinema-mode é adicionada/removida via JavaScript (footer-brilha.php)
   ========================================================================== */
@media (min-width: 992px) {

    /* Transição suave dos elementos que vão sumir */
    .brilha-feed-card .card-body,
    .brilha-feed-card .card-stats-overlay,
    .brilha-feed-card .video-play-overlay,
    .brilha-feed-card .brilha-interaction-bar,
    .brilha-feed-card .brilha-actions-row,
    .brilha-feed-card .card-gallery,
    .brilha-feed-card .card-header,
    .brilha-feed-card .brilha-author-highlight {
        transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease,
                    padding 0.3s ease, margin 0.3s ease, border 0.3s ease;
    }

    /* MODO CINEMA GERAL: tudo some visualmente, sem pular o layout */
    .brilha-feed-card.cinema-mode .card-body,
    .brilha-feed-card.cinema-mode .card-stats-overlay,
    .brilha-feed-card.cinema-mode .video-play-overlay,
    .brilha-feed-card.cinema-mode .brilha-interaction-bar,
    .brilha-feed-card.cinema-mode .brilha-actions-row,
    .brilha-feed-card.cinema-mode .card-gallery,
    .brilha-feed-card.cinema-mode .card-header,
    .brilha-feed-card.cinema-mode .brilha-author-highlight {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* FEED (HOME): além de sumir, colapsa para sobrar SÓ a mídia/vídeo */
    body.home .brilha-feed-card.cinema-mode .card-body,
    body.front-page .brilha-feed-card.cinema-mode .card-body,
    body.home .brilha-feed-card.cinema-mode .brilha-interaction-bar,
    body.front-page .brilha-feed-card.cinema-mode .brilha-interaction-bar,
    body.home .brilha-feed-card.cinema-mode .card-gallery,
    body.front-page .brilha-feed-card.cinema-mode .card-gallery {
        max-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }

    /* SINGLE: o destaque do autor também esmaece no modo cinema (sem colapsar,
       para o vídeo não mudar de posição e causar "flicker") */
    .brilha-author-highlight {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .brilha-author-highlight.cinema-mode {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}
