/* ===================================================================
   ARQUIVO: css/main.css
   DESCRIÇÃO: Base Global, Variáveis, HUD e Componentes
   =================================================================== */

:root {
    --primary: #b2d13a;       
    --primary-hover: #cce070;
    --dark-bg: #0a0a0a;       
    --text-main: #ffffff;
    --header-height: 80px;
    --font-main: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--primary); text-decoration: none; }

/* Utilitários */
.text-neon { color: var(--primary) !important; text-shadow: 0 0 10px rgba(178, 209, 58, 0.3); }
.full-width { width: 100%; display: block; }
#bg-video { position: fixed; right: 0; bottom: 0; min-width: 100%; min-height: 100%; z-index: -2; object-fit: cover; filter: brightness(0.7) grayscale(0.2); }
.video-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.9) 100%); z-index: -1; pointer-events: none; }
#preloder { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 999999; background: #000; display: flex; align-items: center; justify-content: center; }
.loader { width: 50px; height: 50px; border: 3px solid #333; border-top: 3px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.btn-primary { background: var(--primary); color: #000; border: none; padding: 12px 25px; font-weight: 900; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: 0.3s; letter-spacing: 1px; box-shadow: 0 0 15px rgba(178, 209, 58, 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 0 25px rgba(178, 209, 58, 0.6); }
.input-game { background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; height: 45px; padding: 0 15px; border-radius: 4px; font-size: 14px; width: 100%; transition: 0.3s; }
.input-game:focus { border-color: var(--primary); background: rgba(0,0,0,0.8); outline: none; box-shadow: 0 0 10px rgba(178, 209, 58, 0.2); }

/* ===================================================================
   HUD (NAVBAR)
   =================================================================== */
.game-hud {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: rgba(10, 10, 10, 0.95); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000; display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.hud-left { flex: 1; display: flex; align-items: center; }
.hud-center { flex: 2; display: flex; justify-content: center; align-items: center; }
.hud-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 15px; }

/* Logo e Texto Padrão */
.hud-logo { font-weight: 900; font-size: 18px; display: flex; align-items: center; gap: 10px; color: #fff; }
.hud-logo img { height: 35px; }

/* --- PADRONIZAÇÃO DOS BOTÕES (SOM E SAIR) --- */
/* Isso garante que fiquem IGUAIS em qualquer lugar */
.btn-logout, .btn-music {
    width: 40px !important;    /* Largura Fixa */
    height: 40px !important;   /* Altura Fixa */
    border-radius: 50% !important;
    
    display: flex !important;
    align-items: center;
    justify-content: center;
    
    font-size: 18px !important;
    cursor: pointer;
    transition: 0.3s;
    
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    
    margin: 0 !important; /* Remove margens estranhas */
    flex-shrink: 0;       /* Impede de amassar no celular */
}

/* Cores Específicas */
.btn-logout { background: rgba(255, 50, 50, 0.2); border-color: rgba(255, 50, 50, 0.4); }
.btn-logout:hover { background: rgba(255, 50, 50, 0.8); transform: scale(1.1); }

.btn-music:hover { border-color: #b2d13a; color: #b2d13a; transform: scale(1.1); }
.btn-music.playing { border-color: #b2d13a; color: #b2d13a; box-shadow: 0 0 10px rgba(178, 209, 58, 0.3); }

/* --- Barra de XP (Geral) --- */
.xp-container {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,0,0,0.5); padding: 5px 15px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.level-circle { width: 25px; height: 25px; background: var(--primary); color: #000; font-weight: bold; font-size: 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.xp-bar-bg { width: 100px; height: 6px; background: #333; border-radius: 3px; }
.xp-bar-fill { height: 100%; background: var(--primary); border-radius: 3px; }
.xp-text { font-size: 10px; color: #aaa; font-weight: bold; }


/* ===================================================================
   CORREÇÃO MOBILE (FINAL)
   =================================================================== */
@media (max-width: 768px) {
    
    /* 1. ESCONDE O LOGO DA LIGA (Lado Esquerdo) */
    .hud-left { 
        display: none !important; 
    }

    /* 2. MOSTRA O CENTRO (Barra de XP) */
    .hud-center {
        display: flex !important;
        flex: 1; /* Ocupa o espaço deixado pelo logo */
        justify-content: flex-start; /* Alinha XP à esquerda ou centro */
    }

    /* 3. DIREITA (Botões) */
    .hud-right {
        flex: 0 0 auto; /* Ocupa só o espaço dos botões */
        gap: 10px;      /* Espaço entre Audio e Sair */
    }

    /* Ajuste para não quebrar texto */
    #user-display-name { display: none !important; }
}