/* ============================================
   Gaming Zone - DESIGN TOKENS v3 — NEXUS ULTRA
   Deep Navy + Silver + Electric Blue + Violet
   Complete shadow & glow system restored
   ============================================ */

:root {
    /* Colors - Exact Reference Theme */
    --bg-primary: #060814;
    --bg-secondary: #0f172a;
    --bg-tertiary: #2b3e7a;

    /* Glass Effect - Premium Depth */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-bg-light: rgba(15, 23, 42, 0.4);
    --glass-bg-medium: rgba(15, 23, 42, 0.7);
    --glass-bg-dark: rgba(6, 8, 20, 0.8);
    --glass-border: rgba(34, 211, 238, 0.06);
    --glass-border-hover: rgba(34, 211, 238, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(34, 211, 238, 0.03);

    /* Elevation Shadow System — 4 Levels */
    --elevation-1: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 4px rgba(34, 211, 238, 0.03);
    --elevation-2: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(34, 211, 238, 0.05);
    --elevation-3: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.06);
    --elevation-4: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(34, 211, 238, 0.08);

    /* Glow Effects - Electric Blue + Violet */
    --glow-primary: 0 0 30px rgba(43, 80, 188, 0.35), 0 0 80px rgba(43, 80, 188, 0.15);
    --glow-cyan: 0 0 25px rgba(34, 211, 238, 0.5);
    --glow-purple: 0 0 25px rgba(168, 85, 247, 0.45);
    --glow-pink: 0 0 20px rgba(255, 0, 85, 0.4);
    --glow-subtle: 0 0 15px rgba(43, 80, 188, 0.15);
    --glow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.1), 0 0 40px rgba(168, 85, 247, 0.05);

    /* Accent Colors - Bold Blue + Silver */
    --accent-cyan: #22d3ee;
    --accent-silver: #f1f5f9;
    --accent-purple: #a855f7;
    --accent-pink: #ff0055;
    --accent-blue: #2b50bc;
    --accent-blue-deep: #2b3e7a;
    --accent-cyan-bright: #22d3ee;
    --accent-indigo: #6366f1;
    --accent-violet: #a855f7;
    --accent-green: #00e676;
    --accent-glow: rgba(34, 211, 238, 0.4);
    --accent-glow-indigo: rgba(99, 102, 241, 0.4);
    --accent-glow-violet: rgba(168, 85, 247, 0.4);
    --deep-slate: #060814;
    --white: #f1f5f9;

    /* Gradients - More Vibrant */
    --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
    --gradient-holographic: linear-gradient(90deg, #22d3ee, #2b50bc, #a855f7, #ff0055, #a855f7, #2b50bc, #22d3ee);
    --gradient-success: linear-gradient(135deg, #00e676, #10b981);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-danger: linear-gradient(135deg, #ff0055, #dc2626);
    --gradient-gaming: linear-gradient(135deg, #2b50bc, #a855f7, #22d3ee);
    --gradient-silver: linear-gradient(135deg, #0f172a, #64748b, #f1f5f9);
    --gradient-violet: linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-border: linear-gradient(90deg, rgba(34, 211, 238, 0.3), rgba(168, 85, 247, 0.3));

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-bright: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: rgba(241, 245, 249, 0.6);

    /* Border Colors */
    --border-dim: rgba(34, 211, 238, 0.04);
    --border-light: rgba(34, 211, 238, 0.1);
    --border-glow: rgba(34, 211, 238, 0.3);

    /* ==================== SPACING ==================== */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* ==================== BORDER RADIUS ==================== */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 9999px;
    --radius-full: 9999px;

    /* ==================== TRANSITIONS ==================== */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    --ease-tech: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);

    /* ==================== TYPOGRAPHY ==================== */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ==================== LAYOUT ==================== */
    --nav-height: 110px;
    --container-max: 1440px;
}

/* ============================================
   GLOBAL: Grid Texture Overlay
   Matches the logo's tech grid aesthetic
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(43, 80, 188, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 80, 188, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
}

/* Subtle ambient glow spots */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 600px 400px at 20% 10%, rgba(34, 211, 238, 0.04), transparent),
        radial-gradient(ellipse 500px 350px at 80% 50%, rgba(168, 85, 247, 0.03), transparent),
        radial-gradient(ellipse 400px 300px at 50% 90%, rgba(43, 80, 188, 0.04), transparent);
}

/* ============================================
   GLOBAL: Premium Dropdown Styles
   Universal glassmorphism for all selects
   ============================================ */
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100% !important;
    background-color: var(--glass-bg, rgba(15, 23, 42, 0.6)) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.2em !important;
    border: 1px solid var(--glass-border, rgba(43, 80, 188, 0.12)) !important;
    border-radius: var(--radius-md, 12px) !important;
    color: var(--text-primary, #fff) !important;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    font-family: var(--font-body, inherit) !important;
    font-size: 0.95rem !important;
    transition: var(--transition-normal, 0.3s) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    cursor: pointer !important;
    outline: none !important;
}

select:hover {
    border-color: var(--glass-border-hover, rgba(43, 80, 188, 0.3)) !important;
    background-color: var(--glass-bg-medium, rgba(14, 31, 61, 0.7)) !important;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1) !important;
}

select:focus {
    border-color: var(--accent-cyan, #22d3ee) !important;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.2), 0 0 50px rgba(34, 211, 238, 0.05) !important;
}

select option {
    background-color: #081428 !important; /* matches --bg-secondary */
    color: #fff !important;
    padding: 12px !important;
}

/* RTL Support for Dropdowns */
[dir="rtl"] select, .rtl select {
    background-position: left 1rem center !important;
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
}

/* ============================================
   GLOBAL: Premium Keyframe Animations
   ============================================ */
@keyframes neonPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes borderReveal {
    0% { opacity: 0; transform: scaleX(0); }
    100% { opacity: 1; transform: scaleX(1); }
}

@keyframes glowBreath {
    0%, 100% { box-shadow: 0 0 15px rgba(34, 211, 238, 0.15); }
    50% { box-shadow: 0 0 25px rgba(34, 211, 238, 0.3); }
}

@keyframes scanLine {
    0% { top: -60px; }
    100% { top: 100%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
