/* ============================================
   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);
    font-family: 'Cinzel', serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 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;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15) 0%, rgba(255, 0, 110, 0.15) 100%);
    border: 2px solid var(--accent-purple);
    border-radius: 15px;
    box-shadow: 
        var(--shadow-glow),
        inset 0 0 30px rgba(157, 78, 221, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(157, 78, 221, 0.03) 10px,
            rgba(157, 78, 221, 0.03) 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: 3em;
    color: var(--accent-purple-light);
    text-shadow: 
        0 0 10px var(--accent-purple),
        0 0 20px var(--accent-red),
        0 0 30px rgba(157, 78, 221, 0.5);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--accent-purple),
            0 0 20px var(--accent-red),
            0 0 30px rgba(157, 78, 221, 0.5);
    }
    50% {
        text-shadow: 
            0 0 20px var(--accent-purple),
            0 0 40px var(--accent-red),
            0 0 60px rgba(157, 78, 221, 0.8);
    }
}

.header p {
    font-size: 1.3em;
    color: var(--accent-cyan);
    font-style: italic;
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* ============================================
   SEÇÕES GENÉRICAS
   ============================================ */

section {
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(42, 47, 74, 0.8) 100%);
    border: 1px solid var(--accent-purple);
    border-radius: 15px;
    box-shadow: 
        0 0 30px rgba(157, 78, 221, 0.2),
        inset 0 0 30px rgba(157, 78, 221, 0.05);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0.5;
}

section h2 {
    font-size: 2em;
    color: var(--accent-purple-light);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.icon {
    font-size: 1.3em;
    filter: drop-shadow(0 0 5px var(--accent-purple));
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 30px;
    font-style: italic;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 15px;
}

/* ============================================
   ESTATÍSTICAS PRINCIPAIS (GRID)
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(199, 125, 255, 0.05) 100%);
    border: 2px solid var(--accent-purple);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 125, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 10px 30px rgba(157, 78, 221, 0.4),
        inset 0 0 20px rgba(199, 125, 255, 0.1);
    border-color: var(--accent-purple-light);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-name {
    font-size: 1.1em;
    color: var(--accent-purple-light);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5em;
    color: var(--accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-cyan);
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.stat-influence {
    font-size: 0.85em;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

/* ============================================
   ATRIBUTOS SECUNDÁRIOS
   ============================================ */

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.attribute-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.attribute-card:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 20px var(--shadow-glow-cyan),
        inset 0 0 15px rgba(0, 217, 255, 0.1);
}

.attribute-card.corruption {
    border-color: var(--accent-red);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1) 0%, rgba(255, 0, 110, 0.05) 100%);
}

.attribute-card.corruption:hover {
    box-shadow: 
        0 0 20px var(--shadow-glow-red),
        inset 0 0 15px rgba(255, 0, 110, 0.1);
}

.attribute-name {
    font-size: 1em;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.attribute-card.corruption .attribute-name {
    color: var(--accent-red);
}

.attribute-value {
    font-size: 1.8em;
    color: var(--accent-green);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px var(--accent-green);
    margin-bottom: 10px;
}

.attribute-card.corruption .attribute-value {
    color: var(--accent-red);
    text-shadow: 0 0 5px var(--accent-red);
}

.attribute-base {
    font-size: 0.75em;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ============================================
   STATUS ESPECIAIS
   ============================================ */

.status-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.status-item {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 190, 11, 0.05) 100%);
    border-left: 4px solid var(--accent-orange);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.status-item:hover {
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.status-item.corruption-status {
    border-left-color: var(--accent-red);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1) 0%, rgba(255, 0, 110, 0.05) 100%);
}

.status-item.corruption-status:hover {
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.status-title {
    font-size: 1.2em;
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-item.corruption-status .status-title {
    color: var(--accent-red);
}

.status-effect {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.5;
}

.element {
    color: var(--accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* ============================================
   TABELAS
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(157, 78, 221, 0.1);
}

table thead {
    background: linear-gradient(90deg, rgba(157, 78, 221, 0.3) 0%, rgba(199, 125, 255, 0.2) 100%);
    border-bottom: 2px solid var(--accent-purple);
}

table th {
    padding: 20px;
    text-align: left;
    color: var(--accent-purple-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95em;
}

table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    color: var(--text-secondary);
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: rgba(157, 78, 221, 0.15);
    box-shadow: inset 0 0 15px rgba(157, 78, 221, 0.1);
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tr.current-level {
    background: linear-gradient(90deg, rgba(255, 190, 11, 0.2) 0%, rgba(255, 190, 11, 0.1) 100%);
    border-left: 4px solid var(--accent-yellow);
}

table tr.current-level td {
    color: var(--accent-yellow);
    font-weight: 600;
}

table tr.active-element {
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 217, 255, 0.1) 100%);
    border-left: 4px solid var(--accent-cyan);
}

table tr.active-element td {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ============================================
   SEÇÕES ESPECÍFICAS
   ============================================ */

.section-corruption-effects,
.section-monster-elements {
    background: linear-gradient(135deg, rgba(42, 47, 74, 0.9) 0%, rgba(26, 31, 58, 0.9) 100%);
}

/* ============================================
   ESTILOS DE FORMULÁRIO (Login e Cadastro)
   ============================================ */

.cadastro-container,
.login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-cyan);
    border-radius: 15px;
    box-shadow: var(--shadow-glow-cyan);
    text-align: center;
}

.cadastro-container h2,
.login-container h2 {
    color: var(--accent-cyan);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--accent-cyan);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Cinzel', serif;
}

.cadastro-btn,
.login-btn { /* Adicionei .login-btn para consistência */
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--accent-cyan);
    color: var(--bg-primary); /* Texto escuro no botão claro */
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.cadastro-btn:hover,
.login-btn:hover {
    background-color: var(--accent-purple-light);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.login-link {
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.login-link a {
    color: var(--accent-purple-light);
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* FIM DOS ESTILOS DE FORMULÁRIO */

