/* Gaming Theme - High Visual Impact Style */
:root {
    --bg-dark: #0f172a;
    /* Deep Blue Slate */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Glassy Blue */
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    --accent-orange: #f97316;
    /* Neon Orange */
    --accent-blue: #3b82f6;
    /* Electric Blue */
    --accent-cyan: #06b6d4;
    /* Neon Cyan */
    --text-primary: #f8fafc;
    --text-sec: #94a3b8;

    --glow-orange: 0 0 20px rgba(249, 115, 22, 0.3);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
}

body.gaming-theme {
    background-color: #0b1121;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(249, 115, 22, 0.08) 0%, transparent 25%);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
}

/* Glassy Cards */
.g-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
    position: relative;
}

.g-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Highlight Glow Borders */
.g-border-glow-blue:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.g-border-glow-orange:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

/* Buttons */
.g-btn {
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.g-btn-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 0 #c2410c, 0 5px 10px rgba(0, 0, 0, 0.3);
}

.g-btn-orange:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c2410c, 0 3px 5px rgba(0, 0, 0, 0.3);
}

.g-btn-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 0 #1d4ed8, 0 5px 10px rgba(0, 0, 0, 0.3);
}

.g-btn-blue:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1d4ed8, 0 3px 5px rgba(0, 0, 0, 0.3);
}

/* Stats Pill */
.g-stat-pill {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.g-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Gradients text */
.g-text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Bar specific */
.g-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Prediction Deadline Progress Bar */
.deadline-container {
    background: rgba(15, 23, 42, 0.8);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.05);
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #22c55e 50%, #facc15 100%);
    border-radius: 999px;
    transition: width 1s ease;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.progress-bar-fill.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.progress-bar-fill.closed {
    background: #475569;
    box-shadow: none;
}

/* Layout Helpers */
.g-section-gap {
    margin-top: 1.5rem;
    /* gap-6 equivalent */
}

@media (min-width: 1024px) {
    .g-section-gap {
        margin-top: 2rem;
        /* gap-8 equivalent */
    }
}

/* Post Race Debrief Styling */
.post-race-debrief {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
}

.post-race-debrief strong {
    color: #fbbf24;
    font-weight: 700;
}

.post-race-debrief em {
    color: #94a3b8;
    font-style: italic;
}