/*
Theme Name: Hidden Atlas
Theme URI: https://seusite.com
Author: Agente X
Description: Tema customizado estilo Terminal/Sci-Fi para arquivos paranormais.
Version: 1.0
Text Domain: hidden-atlas
*/

:root {
    /* PALETA DE CORES - BASEADA NO MOCKUP */
    --bg-color: #050806;       /* Preto Profundo */
    --panel-color: #0B120C;    /* Fundo de Painéis */
    --terminal-green: #66FF9A; /* Verde Neon Principal */
    --dim-green: #2C6B45;      /* Verde Escuro/Bordas */
    --text-color: #E9EFEA;     /* Texto Claro */
    --alert-red: #FF5E5E;      /* Alertas */
    --scanline-color: rgba(18, 16, 16, 0.5);
    
    /* FONTES */
    --font-primary: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* RESET BÁSICO */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* EFEITO CRT / PHOSPHOR GLOBAL (FORA DO MAPA) */
.ha-global-scanline-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 30;
    opacity: 0.95;
    background:
        radial-gradient(ellipse at center, rgba(102, 255, 154, 0.075) 0%, rgba(102, 255, 154, 0.025) 38%, transparent 62%),
        radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.58) 100%);
    animation: ha-phosphor-breathe 4.80s ease-in-out infinite;
}

.ha-global-scanline-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.36;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(102, 255, 154, 0.10) 0 1px, transparent 1.5px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.075) 0 1px, transparent 1.5px),
        radial-gradient(circle at 40% 80%, rgba(102, 255, 154, 0.08) 0 1px, transparent 1.5px);
    background-size: 120px 120px, 180px 180px, 240px 240px;
    animation: ha-phosphor-noise 6.50s steps(5) infinite;
}

.ha-map-home .ha-global-scanline-layer { display: none; }

@keyframes ha-phosphor-breathe {
    0%, 100% {
        opacity: 0.78;
        filter: brightness(1);
    }
    35% {
        opacity: 1;
        filter: brightness(1.08);
    }
    70% {
        opacity: 0.70;
        filter: brightness(0.94);
    }
}

@keyframes ha-phosphor-noise {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.26;
    }
    25% {
        transform: translate3d(-3.0px, 1px, 0);
        opacity: 0.40;
    }
    50% {
        transform: translate3d(3.0px, -1px, 0);
        opacity: 0.30;
    }
    75% {
        transform: translate3d(1px, 2px, 0);
        opacity: 0.44;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.26;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ha-global-scanline-layer,
    .ha-global-scanline-layer::after {
        animation: none;
    }
}

/* TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--terminal-green);
}

a,
a:visited,
a:hover,
a:focus,
a:active {
    color: var(--terminal-green);
    text-decoration: none;
}

a:hover,
a:focus {
    text-shadow: 0 0 8px var(--dim-green);
}

/* LAYOUT GERAL */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* COMPONENTES DE UI */
.btn-terminal {
    background: transparent;
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green);
    padding: 10px 20px;
    font-family: var(--font-mono);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-terminal:hover {
    background: var(--dim-green);
    box-shadow: 0 0 10px var(--terminal-green);
}

/* DEBUG (Para vermos se está tudo ok) */
.test-box {
    border: 1px solid var(--terminal-green);
    padding: 20px;
    margin-top: 50px;
    text-align: center;
}
