/* IMPORTANDO FONTE FUTURISTA */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&display=swap');

/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --primary-red: #ff0f39; /* Vermelho mais vivo/neon */
    --dark-red: #59000a;
    --bg-black: #050505;
    --card-bg: rgba(20, 20, 20, 0.90);
    --text-white: #ffffff;
    --gold: #ffcc00;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --neon-glow: 0 0 15px rgba(255, 15, 57, 0.6);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Chakra Petch', sans-serif; 
    font-size: 1rem;
    color: var(--text-white);
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--bg-black); /* Fallback */
    overflow-x: hidden;
    padding-top: 80px; /* Espaço para o menu fixo */
}

h1, h2, h3, .nav-brand, th, .btn {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 4px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- HEADER & MENU --- */
header { text-align: center; padding: 20px 0; margin-bottom: 20px; }
.logo { max-height: 120px; max-width: 90%; filter: drop-shadow(0 0 15px rgba(0,0,0,0.9)); transition: transform 0.3s; }
.logo:hover { transform: scale(1.05); }

.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex; justify-content: center;
}

.nav-container {
    width: 100%; max-width: 1200px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px;
}

.nav-brand { font-size: 1.8rem; color: var(--primary-red); text-shadow: var(--neon-glow); }
.nav-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

.nav-btn {
    text-decoration: none; color: #ddd; font-weight: 600; padding: 8px 16px;
    border: 1px solid transparent; border-radius: 4px; transition: 0.3s;
}
.nav-btn:hover {
    background: var(--primary-red); color: #fff;
    box-shadow: var(--neon-glow); border-color: var(--primary-red);
}

.hamburger { display: none; background: none; border: none; color: var(--primary-red); font-size: 2rem; cursor: pointer; }

/* --- LAYOUTS --- */
.split-screen {
    display: flex; gap: 30px; flex-wrap: wrap; margin-top: 20px;
}
.ranking-col {
    flex: 1; min-width: 350px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--primary-red);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

/* --- TABELAS MODERNAS --- */
.table-responsive { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 10px; }

th {
    text-align: left; padding: 15px; color: var(--primary-red);
    border-bottom: 2px solid #333; font-size: 0.9rem;
}

td {
    background: rgba(255,255,255,0.03); padding: 15px;
    font-size: 1.1rem; border: 1px solid rgba(255,255,255,0.05);
}
tr td:first-child { border-radius: 8px 0 0 8px; }
tr td:last-child { border-radius: 0 8px 8px 0; }

/* --- ANIMAÇÕES DE BRILHO (PULSE) --- */
@keyframes glow-gold {
    0% { box-shadow: inset 0 0 5px rgba(255, 215, 0, 0.2), 0 0 5px rgba(255, 215, 0, 0.4); border-color: #ffd700; }
    50% { box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.8); border-color: #ffe066; }
    100% { box-shadow: inset 0 0 5px rgba(255, 215, 0, 0.2), 0 0 5px rgba(255, 215, 0, 0.4); border-color: #ffd700; }
}

@keyframes glow-silver {
    0% { box-shadow: inset 0 0 3px rgba(192, 192, 192, 0.1), 0 0 3px rgba(192, 192, 192, 0.2); border-color: #c0c0c0; }
    50% { box-shadow: inset 0 0 10px rgba(192, 192, 192, 0.3), 0 0 10px rgba(192, 192, 192, 0.5); border-color: #e0e0e0; }
    100% { box-shadow: inset 0 0 3px rgba(192, 192, 192, 0.1), 0 0 3px rgba(192, 192, 192, 0.2); border-color: #c0c0c0; }
}

@keyframes glow-bronze {
    0% { box-shadow: inset 0 0 2px rgba(205, 127, 50, 0.1), 0 0 2px rgba(205, 127, 50, 0.1); border-color: #cd7f32; }
    50% { box-shadow: inset 0 0 8px rgba(205, 127, 50, 0.2), 0 0 8px rgba(205, 127, 50, 0.4); border-color: #dda570; }
    100% { box-shadow: inset 0 0 2px rgba(205, 127, 50, 0.1), 0 0 2px rgba(205, 127, 50, 0.1); border-color: #cd7f32; }
}

/* --- DESTAQUE TOP 3 APLICADO --- */

/* 1º Lugar - Ouro (Animação Forte) */
tr.rank-1 td { 
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(0,0,0,0)); 
    color: var(--gold); 
    font-size: 1.25rem;
    font-weight: bold;
    border: 1px solid #ffd700;
    animation: glow-gold 2s infinite ease-in-out; /* Animação de 2 segundos em loop */
    z-index: 10;
    position: relative;
}

/* 2º Lugar - Prata (Animação Média) */
tr.rank-2 td { 
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), rgba(0,0,0,0)); 
    color: var(--silver);
    border: 1px solid #c0c0c0;
    animation: glow-silver 3s infinite ease-in-out; /* Mais lento, menos intenso */
}

/* 3º Lugar - Bronze (Animação Suave) */
tr.rank-3 td { 
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), rgba(0,0,0,0)); 
    color: var(--bronze);
    border: 1px solid #cd7f32;
    animation: glow-bronze 4s infinite ease-in-out; /* Bem suave */
}

/* Ícones das medalhas */
.medal-icon { margin-right: 8px; font-size: 1.3rem; }
/* --- FORMS & ADMIN --- */
.admin-bar {
    background: #0f0f0f; padding: 20px; border-radius: 10px;
    border: 1px solid #333; display: flex; gap: 15px; align-items: center; flex-wrap: wrap;
    margin-bottom: 20px; box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Novo Estilo para inputs e selects */
input, select, textarea {
    width: 100%; padding: 12px; margin: 5px 0 15px;
    background: #000; border: 1px solid #444; color: #fff;
    font-family: 'Chakra Petch', sans-serif; font-size: 1rem; border-radius: 4px;
    transition: 0.3s;
}
input:focus, select:focus { border-color: var(--primary-red); outline: none; box-shadow: 0 0 10px rgba(255, 15, 57, 0.3); }

/* Melhoria visual da lista de membros no admin */
.admin-row {
    background: #151515; transition: 0.2s;
}
.admin-row:hover { background: #222; transform: translateX(5px); }

/* Botões */
.btn {
    display: inline-block; width: 100%; background: var(--primary-red);
    color: white; padding: 14px; border: none; cursor: pointer;
    font-size: 1rem; border-radius: 4px; transition: 0.3s; text-align: center; text-decoration: none;
}
.btn:hover { background: #d00020; box-shadow: var(--neon-glow); }
.btn-delete { background: #4a0000; color: #ff5555; padding: 8px 12px; border-radius: 4px; border: 1px solid #700; text-decoration: none; }
.btn-update { background: #003366; color: #4da6ff; border: 1px solid #004080; }

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background: #25d366; color: #FFF; border-radius: 50%;
    text-align: center; font-size: 35px; box-shadow: 0 0 15px rgba(37,211,102,0.6);
    display: flex; align-items: center; justify-content: center; text-decoration: none; z-index: 9999;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: #000; flex-direction: column; border-bottom: 3px solid var(--primary-red);
        padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.9);
    }
    .nav-links.active { display: flex; }
    .nav-btn { width: 100%; text-align: center; padding: 15px; border-bottom: 1px solid #222; }
    .split-screen { flex-direction: column; }
    .ranking-col { min-width: 100%; margin-bottom: 20px; }
    
    /* Ajustes Admin Mobile */
    .admin-bar { flex-direction: column; align-items: stretch; }
}