/* ============================================
ESTILO SOBRENATURAL - DARK & MYSTICAL
============================================ */

/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Base - Paleta Sobrenatural */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #2a2f4a;
    
    /* Cores de Acentuação */
    --accent-purple: #9d4edd;
    --accent-purple-light: #c77dff;
    --accent-red: #ff006e;
    --accent-red-dark: #d60052;
    --accent-cyan: #00d9ff;
    --accent-green: #00ff88;
    --accent-yellow: #ffbe0b;
    --accent-orange: #ff6b35;
    
    /* Cores de Corrupção */
    --corruption-low: #00ff88;
    --corruption-mid: #ffbe0b;
    --corruption-high: #ff006e;
    
    /* Texto */
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-tertiary: #707070;
    
    /* Sombras e Efeitos */
    --shadow-glow: 0 0 20px rgba(157, 78, 221, 0.5);
    --shadow-glow-red: 0 0 20px rgba(255, 0, 110, 0.5);
    --shadow-glow-cyan: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* Body e Container Principal */
body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    /* A fonte Cinzel precisa ser importada no HTML */
    font-family: 'Cinzel', serif; 
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh; /* Garante que o corpo ocupe toda a altura da viewport */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
    align-items: center;
}

/* Animação de fundo animado (opcional) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    text-align: center; /* Centraliza o conteúdo dentro do container */
}

/* ============================================
HEADER (Adaptado para ser a área principal da Index)
============================================ */

.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 40px; /* Mais padding para destaque */
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.8) 0%, rgba(26, 31, 58, 0.8) 100%); /* Fundo mais escuro */
    border: 2px solid var(--accent-red); /* Borda vermelha para um toque mais assustador */
    border-radius: 15px;
    box-shadow: 
        var(--shadow-glow-red), /* Sombra vermelha */
        inset 0 0 50px rgba(255, 0, 110, 0.2); /* Brilho interno mais forte */
    position: relative;
    overflow: hidden;
    max-width: 800px; /* Limita a largura para melhor leitura */
    margin: 0 auto 60px; /* Centraliza */
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 0, 110, 0.05) 10px, /* Padrão sutil vermelho/rocho */
            rgba(255, 0, 110, 0.05) 20px
        );
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.header h1 {
    font-size: 4em; /* Título maior */
    color: var(--accent-red); /* Cor vermelha para o nome */
    text-shadow: 
        0 0 10px var(--accent-red),
        0 0 20px var(--accent-purple),
        0 0 40px rgba(255, 0, 110, 0.8);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 5px; /* Mais espaçamento para drama */
    animation: titleGlow 4s ease-in-out infinite alternate; /* Animação mais lenta e alternada */
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--accent-red),
            0 0 20px var(--accent-purple),
            0 0 40px rgba(255, 0, 110, 0.8);
    }
    50% {
        text-shadow: 
            0 0 20px var(--accent-red),
            0 0 40px var(--accent-purple),
            0 0 80px rgba(255, 0, 110, 1);
    }
}

.header p {
    font-size: 1.5em;
    color: var(--text-primary);
    font-style: italic;
    text-shadow: 0 0 5px var(--accent-cyan);
    margin-bottom: 40px;
    line-height: 1.4;
}

/* ============================================
BOTÕES DE AÇÃO (Chamada para Aventura) - NOVO DESIGN
============================================ */

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.btn {
    padding: 18px 35px; /* Mais padding */
    font-size: 1.3em; /* Fonte maior */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px; /* Mais espaçamento */
    border-radius: 5px; /* Bordas mais quadradas */
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Efeito de texto com brilho */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Botão COMEÇAR AVENTURA (Roxo/Corrupção) */
.btn-start {
    background: rgba(157, 78, 221, 0.1); /* Fundo sutil */
    color: var(--accent-purple-light);
    border: 3px solid var(--accent-purple); /* Borda mais grossa */
    box-shadow: 
        0 0 10px rgba(157, 78, 221, 0.5), /* Brilho inicial */
        inset 0 0 10px rgba(157, 78, 221, 0.3); /* Brilho interno */
}

.btn-start:hover {
    background: rgba(157, 78, 221, 0.2);
    color: var(--text-primary);
    border-color: var(--accent-purple-light);
    box-shadow: 
        0 0 30px var(--accent-purple-light), /* Brilho intenso */
        inset 0 0 20px var(--accent-purple-light);
    transform: scale(1.05) translateY(-2px);
}

/* Botão CONTINUAR AVENTURA (Ciano/Etereal) */
.btn-continue {
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent-cyan);
    border: 3px solid var(--accent-cyan);
    box-shadow: 
        0 0 10px rgba(0, 217, 255, 0.5),
        inset 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-continue:hover {
    background: rgba(0, 217, 255, 0.2);
    color: var(--text-primary);
    border-color: var(--accent-cyan);
    box-shadow: 
        0 0 30px var(--accent-cyan),
        inset 0 0 20px var(--accent-cyan);
    transform: scale(1.05) translateY(-2px);
}

/* Efeito de "falha" (glitch) nos botões */
.btn::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent-red); /* Cor de corrupção para o glitch */
    overflow: hidden;
    transition: all 0.05s;
    opacity: 0;
    text-shadow: 0 0 5px var(--accent-red);
    padding: 18px 35px; /* Deve ter o mesmo padding do botão */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover::after {
    opacity: 1;
    animation: glitch 0.5s infinite;
}

@keyframes glitch {
    0% {
        clip: rect(10px, 350px, 50px, 0);
        transform: skew(-1deg);
    }
    50% {
        clip: rect(50px, 350px, 80px, 0);
        transform: skew(1deg);
    }
    100% {
        clip: rect(30px, 350px, 60px, 0);
        transform: skew(0deg);
    }
}

/* ============================================
RESPONSIVIDADE
============================================ */

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5em;
        letter-spacing: 3px;
    }
    
    .header p {
        font-size: 1.2em;
    }

    .action-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        font-size: 1.1em;
        padding: 15px 30px;
    }
    
    .btn::after {
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }
    
    .header {
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header p {
        font-size: 1em;
    }
}

/* O restante do CSS original que não é usado na index, mas é bom manter para consistência futura */

.section-corruption-effects,
.section-monster-elements {
    background: linear-gradient(135deg, rgba(42, 47, 74, 0.9) 0%, rgba(26, 31, 58, 0.9) 100%);
}

.footer {
    display: none; /* Ocultar o footer na página inicial para focar no mistério */
}
