/* ===================================================================
   ARQUIVO: css/pages/dashboard.css
   DESCRIÇÃO: Estilos do Painel do Atleta (Botões Padronizados)
   =================================================================== */

/* --- LAYOUT PRINCIPAL --- */
.dashboard-wrapper {
    display: flex; 
    align-items: center; 
    justify-content: center;
    min-height: 100vh; 
    padding-top: 80px; 
    padding-bottom: 20px;
    overflow-y: auto;
}

.dashboard-content {
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 50px; 
    width: 100%; 
    max-width: 1100px;
}

/* --- COLUNA ESQUERDA (PERFIL) --- */
.profile-column { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-width: 300px; 
}

.rank-title { 
    font-size: 3rem; 
    font-weight: 900; 
    color: #cd7f32; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    letter-spacing: 2px; 
}

.player-status-badge {
    margin-top: 20px; 
    background: rgba(0,0,0,0.6); 
    padding: 8px 20px;
    border-radius: 20px; 
    border: 1px solid #333; 
    font-size: 12px; 
    font-weight: 700;
    color: #fff; 
    text-transform: uppercase; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.status-dot { 
    width: 8px; height: 8px; 
    background-color: var(--primary); 
    border-radius: 50%; 
    box-shadow: 0 0 5px var(--primary); 
}

/* --- COLUNA DIREITA (MENU DE AÇÕES) --- */
.menu-column { flex: 1; max-width: 600px; }

.game-menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }

/* CARD DE MENU (TILES) */
.game-tile {
    background: rgba(30, 30, 30, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; 
    padding: 20px; 
    text-decoration: none; 
    color: #fff;
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    justify-content: center;
    min-height: 110px; 
    position: relative; 
    transition: 0.3s; 
    overflow: hidden;
}

.game-tile:hover {
    background: rgba(255, 255, 255, 0.1); 
    border-color: var(--primary);
    transform: translateY(-5px); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.5); 
    color: #fff;
}

.tile-icon { font-size: 24px; color: #777; margin-bottom: 10px; transition: 0.3s; }
.game-tile:hover .tile-icon { color: var(--primary); }
.tile-content h3 { font-size: 14px; font-weight: 900; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.tile-content p { font-size: 11px; color: #aaa; margin: 0; margin-top: 2px; }
.tile-founder { border-color: #ffd700; background: rgba(255, 215, 0, 0.05); }
.tile-founder .tile-icon { color: #ffd700; }
.xp-badge { position: absolute; top: 10px; right: 10px; background: #ff3333; color: #fff; font-size: 10px; font-weight: 900; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 5; letter-spacing: 0.5px; }

/* --- BARRA DE XP --- */
.xp-container {
    position: relative; width: 200px; height: 22px; 
    background: #000; border: 1px solid #b2d13a; 
    box-shadow: 0 0 8px rgba(178, 209, 58, 0.5); 
    display: flex; align-items: center; overflow: visible; 
    margin-left: 20px; border-radius: 0;
}
.level-circle {
    position: absolute; left: -20px; width: 32px; height: 32px;
    background: #000; border: 2px solid #b2d13a; color: #b2d13a;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 14px; z-index: 10; box-shadow: 0 0 10px #b2d13a;
}
.xp-bar-bg { width: 100%; height: 100%; padding: 2px; position: relative; padding-left: 10px; }
.xp-bar-fill { height: 100%; background: #b2d13a; width: 0%; transition: width 0.5s; box-shadow: 0 0 10px #b2d13a; }
.xp-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px #000; z-index: 5; letter-spacing: 1px; }

/* --- HUD DIREITO (AJUSTE FINO) --- */
.hud-right {
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-right: 0 !important;
}

.user-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 60px !important; /* Espaço reservado para o botão de música Absolute */
}

#user-display-name {
    font-weight: bold; font-size: 14px; text-align: right; display: block; 
}

/* PADRONIZAÇÃO RÍGIDA DOS BOTÕES */
.btn-logout, .hud-right .btn-music {
    /* Dimensões GÊMEAS */
    width: 40px !important;    
    height: 40px !important;   
    border-radius: 50% !important; 
    
    /* Centralização do Ícone */
    display: flex !important;
    align-items: center;
    justify-content: center;
    
    /* Reset de margens e paddings */
    padding: 0 !important;
    margin: 0 !important;
    
    /* Estilo Visual */
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 16px; /* Tamanho do ícone */
    cursor: pointer;
    transition: 0.3s;
    box-sizing: border-box; /* Garante que borda não aumente o tamanho */
}

/* Cores específicas Logout */
.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);
}

/* Cores e Posição Específica Música */
.hud-right .btn-music {
    position: absolute !important; /* Mantido como você gosta */
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
.hud-right .btn-music:hover {
    border-color: #b2d13a; color: #b2d13a;
    transform: translateY(-50%) scale(1.1) !important;
}
.hud-right .btn-music.playing {
    border-color: #b2d13a; color: #b2d13a;
    box-shadow: 0 0 10px rgba(178, 209, 58, 0.3);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 991px) {
    .dashboard-wrapper { padding-top: 130px; align-items: flex-start; height: auto; }
    .dashboard-content { flex-direction: column; gap: 30px; padding: 0 15px 40px 15px; }
    #user-display-name { display: none !important; }
    .profile-column, .menu-column { width: 100%; }
    .rank-title { font-size: 2rem; }
    .game-tile { min-height: 100px; padding: 15px; }
    
    .xp-container { 
        transform: scale(0.9); width: 150px; margin-left: 15px;
    }
    
    .user-group {
        margin-right: 50px !important; /* Ajuste fino para mobile */
    }
}