/* --- Variáveis & Reset --- */
:root {
    /* Cores Base - Estilo Faceit Dark */
    --bg-body: #121212;       /* Fundo muito escuro e sólido */
    --bg-card: #1e1e1e;       /* Cartões sólidos, sem transparência excessiva */
    --bg-hover: #2c2c2c;
    --border: #333333;        /* Bordas mais definidas */
    
    /* Cores de Ação */
    --primary: #ff5500;       /* Laranja Faceit (Ação/Destaque) */
    --primary-hover: #ff6a00;
    --accent: #8b5cf6;        /* Roxo (Identidade PlayGround) */
    
    /* Texto */
    --text-main: #ffffff;
    --text-muted: #9aa4b0;    /* Cinza azulado técnico */
    --success: #00c853;
    --danger: #ff3d00;
    
    /* Tipografia e UI */
    --font-main: 'DIN Next LT Pro', 'Inter', system-ui, sans-serif; /* Fonte técnica */
    --radius: 4px;            /* Cantos mais rectos (Estilo Pro) */
    --header-height: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1280px; /* Mais largo para caber tabelas */
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    padding: 4rem 0;
    flex: 1;
}

/* --- Header Técnico --- */
.site-header {
    height: var(--header-height);
    background: #181818;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center;
}

.header-inner { 
    display: flex; justify-content: space-between; align-items: center; width: 100%; 
}

.brand { 
    font-size: 1.25rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
    display: flex; align-items: center; gap: 0.5rem; 
}
.brand span { color: var(--primary); }

.main-nav { display: flex; gap: 1rem; height: 100%; align-items: center; }
.navlink { 
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); 
    padding: 8px 12px; border-radius: var(--radius); letter-spacing: 0.5px;
}
.navlink:hover, .navlink.active { background: var(--bg-hover); color: var(--text-main); }

/* --- Componentes: Cards e Painéis --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}
.card-title { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }

/* --- Botões Pro --- */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
    letter-spacing: 0.5px;
}
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn.ghost:hover { border-color: var(--text-main); color: var(--text-main); background: var(--bg-hover); }

/* --- Inputs e Formulários (Estilo Dados) --- */
.form-box { max-width: 420px; margin: 2rem auto; }
.input-group { margin-bottom: 1rem; }
.input-group label { display: block; margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }

.input {
    width: 100%; padding: 0.7rem 1rem;
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: white; font-family: inherit; font-size: 0.9rem;
    transition: 0.2s;
}
.input:focus { border-color: var(--primary); background: #000; }

/* --- GESTÃO DE RESULTADOS (Faceit Style) --- */
/* Tabela de Jogadores/Resultados */
.table-custom {
    width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.table-custom th { text-align: left; padding: 12px; color: var(--text-muted); text-transform: uppercase; font-size: 0.75rem; border-bottom: 1px solid var(--border); }
.table-custom td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-custom tr:last-child td { border-bottom: none; }
.table-custom tr:hover td { background: var(--bg-hover); }

/* Input de Score (para o Admin meter o resultado) */
.score-input {
    width: 60px; text-align: center; font-weight: 700; font-size: 1.1rem;
    padding: 5px; background: #000; border: 1px solid var(--border); color: var(--primary);
}
.score-input:focus { border-color: var(--primary); outline: none; }

/* Lobby de Partida (Header VS) */
.match-lobby-header {
    display: flex; justify-content: center; align-items: center; gap: 2rem;
    padding: 2rem; background: #151515; border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.team-name { font-size: 1.5rem; font-weight: 900; }
.vs-badge { font-size: 0.8rem; background: var(--border); padding: 4px 8px; border-radius: 4px; color: var(--text-muted); }

/* --- Grelhas --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }

/* --- Tags e Status --- */
.tag { 
    padding: 2px 6px; border-radius: 2px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; 
    border: 1px solid transparent;
}
.tag.live { color: var(--danger); border-color: var(--danger); background: rgba(255, 61, 0, 0.1); }
.tag.win { color: var(--success); }

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0; margin-top: auto;
    background: #151515; text-align: center;
    color: var(--text-muted); font-size: 0.8rem;
}

/* --- Toast --- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #252525; border-left: 4px solid var(--primary); color: white; padding: 12px 16px; font-size: 0.85rem; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.5); animation: slideIn 0.3s; }
.toast.error { border-color: var(--danger); }
.toast.success { border-color: var(--success); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }