/* ==========================================================================
   GAMIFICATE - SISTEMA DE DISEÑO UNIFICADO (GAME-THEME.CSS)
   Estética: Cyber-Glassmorphism / Neon Dark Mode
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Orbitron:wght@500;700;900&family=Tilt+Neon&display=swap');

:root {
    /* Paleta de Colores Neón Cyberpunk */
    --cyber-bg-start: #0a0c1a;
    --cyber-bg-end: #161936;
    --cyber-card-bg: rgba(22, 27, 54, 0.92);
    --cyber-glass-border: rgba(0, 242, 254, 0.35);
    --cyber-glass-border-glow: rgba(0, 242, 254, 0.7);
    
    --neon-cyan: #00f2fe;
    --neon-purple: #9076ec;
    --neon-magenta: #ff007f;
    --neon-gold: #ffd700;
    --neon-green: #00ff87;
    --neon-orange: #ff8c00;

    --text-main: #ffffff;
    --text-sub: #e2e8f0;
    --text-muted: #94a3b8;

    /* Fuentes */
    --font-heading: 'Orbitron', 'Tilt Neon', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Sombras y Luces */
    --glow-cyan: 0 0 20px rgba(0, 242, 254, 0.4);
    --glow-purple: 0 0 20px rgba(144, 118, 236, 0.4);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    --glow-green: 0 0 20px rgba(0, 255, 135, 0.4);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Fondo global asegurado */
body {
    background: radial-gradient(circle at 50% 20%, #1a1e43 0%, var(--cyber-bg-start) 70%, #05060d 100%);
    background-attachment: fixed;
    color: var(--text-main);
}

/* --------------------------------------------------------------------------
   HUD HEADER (Barra de estado superior de juego - Aislada y fija)
   -------------------------------------------------------------------------- */
.hud-header {
    width: 100%;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 99999;
    background: rgba(10, 12, 26, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--cyber-glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    font-family: var(--font-body);
}

.hud-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-badge {
    background: rgba(22, 27, 54, 0.85);
    border: 1px solid var(--cyber-glass-border);
    padding: 0.4rem 0.9rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
    backdrop-filter: blur(8px);
}

.stat-badge.score {
    color: var(--neon-gold);
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-badge.timer {
    color: var(--neon-green);
    border-color: rgba(0, 255, 135, 0.3);
}

/* --------------------------------------------------------------------------
   COMPONENTES CYBER REUTILIZABLES
   -------------------------------------------------------------------------- */
.btn-cyber {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    user-select: none;
}

.btn-cyber:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5), 0 0 15px var(--neon-cyan);
}

.btn-cyber-purple {
    background: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
    box-shadow: 0 4px 15px rgba(225, 0, 255, 0.3);
}

.btn-cyber-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
}

.btn-cyber-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.3);
}

.input-cyber {
    background: rgba(10, 12, 26, 0.8);
    border: 2px solid var(--cyber-glass-border);
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-cyber:focus {
    border-color: var(--neon-cyan);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), var(--glow-cyan);
}

/* Ajustes Responsive para la barra HUD */
@media (max-width: 768px) {
    .hud-header {
        padding: 0.6rem 1rem;
    }
    .hud-title {
        font-size: 1.1rem;
    }
    .stat-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}
