/* =========================================
   style.css - O CERÉBRO DO SEU SITE (V4 CRT)
   ========================================= */

:root {
    --bg-color: #0a0a0a;
    --text-main: #e0e0e0;
    --accent-color: #ff003c;      /* Vermelho Suda51 */
    --secondary-accent: #6a0dad;  /* Roxo Malice Mizer */
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Courier Prime', monospace;
}

/* --- RESET & BODY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    background-image: radial-gradient(#222 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Efeito Scanline Geral (TV) */
body::after {
    content: " ";
    display: block; position: fixed; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* --- CONTRATO (VISUAL PS2/CRT) --- */
#enter-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Scanlines específicas do Contrato */
#enter-screen::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
    z-index: 2;
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanline-move 10s linear infinite;
}

.contract-box {
    text-align: center;
    border: 2px solid var(--accent-color);
    padding: 50px;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.3);
    z-index: 3;
    max-width: 700px;
    animation: crt-flicker 0.15s infinite alternate;
}

.contract-title {
    font-family: var(--font-head);
    font-size: 3rem;
    color: #fff;
    /* Efeito de Aberração Cromática (Ciano e Vermelho) */
    text-shadow: 3px 0px 1px #ff003c, -3px 0px 1px #00ffff;
    margin-bottom: 25px;
    letter-spacing: 5px;
}

.contract-text {
    font-family: var(--font-body);
    color: #00ff41; /* Verde Matrix/Terminal */
    line-height: 1.8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

#enter-btn {
    margin-top: 40px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 40px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.4s;
}

#enter-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px #fff;
    letter-spacing: 4px;
}

/* --- ANIMAÇÕES CRT --- */
@keyframes crt-flicker {
    0% { opacity: 0.97; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.001); }
}

@keyframes scanline-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* --- LAYOUT GERAL --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    min-height: 100vh;
    background: rgba(0,0,0,0.85);
}

header { margin-bottom: 20px; position: relative; }
.header-image {
    width: 100%; height: 200px;
    background-color: #111;
    background-size: cover; background-position: center;
    border: 1px solid #fff;
    filter: grayscale(100%) contrast(1.2);
}

h1.site-title {
    font-family: var(--font-head);
    font-size: 3rem;
    position: absolute; bottom: -15px; left: 15px;
    background: var(--accent-color);
    padding: 5px 20px;
    color: #000;
    transform: rotate(-1deg);
    border: 2px solid #fff;
}

/* NAVEGAÇÃO */
nav {
    margin: 40px 0;
    text-align: right;
    border-top: 1px solid var(--secondary-accent);
    border-bottom: 1px solid var(--secondary-accent);
    padding: 15px 20px;
}

.nav-container { display: flex; justify-content: flex-end; gap: 15px; align-items: center; }
nav a {
    font-family: var(--font-head);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
}
nav a:hover { color: #fff; text-shadow: 0 0 10px var(--accent-color); }
.nav-sep { color: #444; }

/* OUTROS COMPONENTES */
.content-block { background: #000; border: 1px solid #333; padding: 20px; margin-bottom: 30px; }
h2 { font-family: var(--font-head); border-left: 5px solid var(--secondary-accent); padding-left: 10px; margin-bottom: 20px; }

/* EFEITO GLITCH NO CHAT */
.glitch-container { position: relative; overflow: hidden; background: #000; border: 2px solid var(--accent-color); }
.tv-effect { filter: grayscale(100%) contrast(150%); animation: crt-flicker 0.1s infinite alternate; }
.scanlines-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
    background-size: 100% 4px; z-index: 10; pointer-events: none;
}