/* ==========================================================================
   OBSERVATÓRIO DE NEUROCIÊNCIA E COMPORTAMENTO (NEUROGEO)
   ARQUIVO CSS MESTRE - PADRÃO OURO DEFINITIVO V8
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOKENS DE DESIGN (NEUROESTÉTICA E DARK MODE FORÇADO)
   -------------------------------------------------------------------------- */
:root {
    --neuro-bg-deep: #000B1A !important;
    --neuro-bg-card: #0A192F !important;
    --neuro-cyan: #00B8A9 !important;
    --neuro-cyan-hover: #00988A !important;
    --neuro-text-main: #F1F5F9 !important;
    --neuro-text-title: #FFFFFF !important;
}

body, 
.site-content, 
.ast-plain-container, 
#page, 
#primary {
    background-color: var(--neuro-bg-deep) !important;
    color: var(--neuro-text-main) !important;
    font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif !important;
    line-height: 1.6 !important;
}

/* --------------------------------------------------------------------------
   1. ARQUITETURA DO HEADER E COMPENSAÇÃO DE PÁGINAS
   -------------------------------------------------------------------------- */
#masthead, 
.site-header, 
.ast-primary-header-bar {
    background-color: transparent !important;
    background: transparent !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    border-bottom: none !important;
}

body:not(.home) .site-content { padding-top: 140px !important; }

.home header.entry-header, 
.home h1.entry-title, 
.home .page-title,
.ast-archive-description { 
    display: none !important; 
}

/* --------------------------------------------------------------------------
   2. BLINDAGEM DE CONTAINERS E CARDS (DESTRÓI FUNDOS CLAROS)
   -------------------------------------------------------------------------- */
.wp-block-spectra-container { background-color: transparent !important; }
.wp-block-spectra-container::before { display: none !important; }

.wp-block-spectra-container.has-image-background::before {
    display: block !important;
    background-color: var(--neuro-bg-deep) !important;
    opacity: 0.85 !important;
}

.site-content .wp-block-group.has-background,
.site-content .wp-block-column > .wp-block-group {
    background-color: var(--neuro-bg-card) !important;
    background: var(--neuro-bg-card) !important;
    border: 1px solid rgba(0, 184, 169, 0.2) !important;
    border-radius: 8px !important;
}

/* --------------------------------------------------------------------------
   3. A CORREÇÃO CRÍTICA: TIPOGRAFIA DE ALTA ESPECIFICIDADE
   -------------------------------------------------------------------------- */
.site-content * { text-shadow: none !important; }

.site-content h1, .site-content h2, .site-content h3, .site-content h4, .site-content h5, .site-content h6, .site-content .wp-block-heading {
    color: var(--neuro-text-title) !important;
}

.site-content h1, .site-content h2 {
    text-shadow: 0px 4px 30px rgba(0, 0, 0, 0.95), 0px 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.site-content p, .site-content span:not(.uagb-button__link):not(.sc-button__link-text), .site-content li {
    color: var(--neuro-text-main) !important;
}

#spectra-b7e374d1-prefix {
    color: var(--neuro-cyan) !important;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.9) !important;
}

/* --------------------------------------------------------------------------
   4. PADRONIZAÇÃO ABSOLUTA DE BOTÕES (CABEÇALHO, SPECTRA E NATIVOS)
   -------------------------------------------------------------------------- */
.site-content a:not(.wp-block-button__link):not(.ast-button):not(.sc-button__link) {
    color: var(--neuro-cyan) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.site-content a:not(.wp-block-button__link):not(.ast-button):not(.sc-button__link):hover {
    color: var(--neuro-cyan-hover) !important;
}

/* Bloco unificado para o fundo e formato de TODOS os botões do site */
.wp-block-button__link,
.wp-block-spectra-button a,
.ast-builder-button-wrap .ast-custom-button,
.ast-custom-button-link,
.uagb-button__link,
.sc-button__link {
    background-color: var(--neuro-cyan) !important;
    background: var(--neuro-cyan) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

/* Bloco unificado forçando a cor do texto do botão (incluindo spans internos) */
.wp-block-button__link,
.wp-block-button__link *,
.wp-block-spectra-button a,
.wp-block-spectra-button a *,
.ast-builder-button-wrap .ast-custom-button,
.ast-builder-button-wrap .ast-custom-button *,
.ast-custom-button-link,
.ast-custom-button-link *,
.uagb-button__link,
.uagb-button__link *,
.sc-button__link,
.sc-button__link * {
    color: #000B1A !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

/* Efeito de Hover universal para os botões */
.wp-block-button__link:hover,
.wp-block-spectra-button a:hover,
.ast-builder-button-wrap .ast-custom-button:hover,
.ast-custom-button-link:hover,
.uagb-button__link:hover,
.sc-button__link:hover {
    background-color: var(--neuro-cyan-hover) !important;
    background: var(--neuro-cyan-hover) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 184, 169, 0.4) !important;
}

/* --------------------------------------------------------------------------
   5. RODAPÉ (FOOTER) E WIDGETS
   -------------------------------------------------------------------------- */
.site-footer, .site-primary-footer-wrap, .site-below-footer-wrap {
    background-color: var(--neuro-bg-card) !important;
    background: var(--neuro-bg-card) !important;
    border-top: 1px solid rgba(0, 184, 169, 0.2) !important;
}

.site-footer *, .site-footer p {
    color: var(--neuro-text-main) !important;
}

.site-footer h2, .site-footer .widget-title {
    color: var(--neuro-text-title) !important;
}

.site-footer a:hover { color: var(--neuro-cyan) !important; }

.widget_recent_entries ul, .widget_archive ul, .widget_categories ul {
    list-style: none !important; padding: 0 !important;
}

.widget_recent_entries li, .widget_archive li, .widget_categories li {
    margin-bottom: 12px !important; border-bottom: 1px solid rgba(0, 184, 169, 0.1) !important; padding-bottom: 8px !important;
}

/* --------------------------------------------------------------------------
   6. CONTENÇÃO CIRÚRGICA DA FOTO DO AUTOR
   -------------------------------------------------------------------------- */
.foto-autor {
    width: 240px !important;
    height: 240px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 184, 169, 0.20) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.foto-autor img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 !important;
}