/**
 * Blaze Sports Intel - Championship Common Styles
 * Shared CSS for Basketball and Football championship pages
 *
 * Version: 1.0.0
 * Last Updated: October 30, 2025
 */

/* ========================================
   CSS CUSTOM PROPERTIES - BURNT ORANGE BRAND
   ======================================== */

:root {
    /* Sophisticated Burnt Orange Palette - Psychology Optimized */
    --blaze-burnt-orange: #BF5700;           /* Deep burnt orange - primary brand */
    --blaze-ember: #CC6600;                  /* Rich ember glow - warmth & energy */
    --blaze-copper: #D97B38;                 /* Copper accent - sophistication */
    --blaze-sunset: #E69551;                 /* Sunset warmth - approachability */
    --blaze-bronze: #A0522D;                 /* Bronze depth - stability */
    --blaze-amber: #FFBF00;                  /* Amber highlight - excellence */
    --blaze-rust: #8B4513;                   /* Rust undertone - heritage */
    --blaze-terracotta: #E2725B;             /* Terracotta accent - earth connection */

    /* Grayscale Foundation */
    --blaze-black: #0A0A0A;                  /* Deep black background */
    --blaze-charcoal: #1A1A1A;               /* Charcoal for cards */
    --blaze-slate: #2A2A2A;                  /* Slate for secondary elements */
    --blaze-steel: #404040;                  /* Steel for borders */
    --blaze-smoke: #707070;                  /* Smoke for muted text */
    --blaze-cloud: #A0A0A0;                  /* Cloud for secondary text */
    --blaze-mist: #D0D0D0;                   /* Mist for light text */
    --blaze-white: #FFFFFF;                  /* Pure white for primary text */

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, #BF5700 0%, #CC6600 50%, #D97B38 100%);
    --gradient-ember: linear-gradient(135deg, #CC6600 0%, #E69551 100%);
    --gradient-deep: linear-gradient(135deg, #8B4513 0%, #BF5700 50%, #CC6600 100%);
    --gradient-sunset: linear-gradient(135deg, #D97B38 0%, #E69551 50%, #FFBF00 100%);
    --gradient-radial: radial-gradient(circle at center, #CC6600 0%, #BF5700 50%, #8B4513 100%);

    /* Glass Morphism - Burnt Orange Tinted */
    --glass-light: rgba(191, 87, 0, 0.08);
    --glass-medium: rgba(191, 87, 0, 0.12);
    --glass-heavy: rgba(191, 87, 0, 0.18);
    --glass-border: rgba(191, 87, 0, 0.25);

    /* Shadows with Burnt Orange Glow */
    --shadow-sm: 0 2px 4px rgba(191, 87, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(191, 87, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(191, 87, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(191, 87, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(191, 87, 0, 0.3);

    /* Typography */
    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing Scale */
    --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.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Hierarchy */
    --z-particle-field: -1;
    --z-content: 1;
    --z-nav: 1000;
    --z-modal: 2000;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--blaze-white);
    background: linear-gradient(135deg, var(--blaze-black) 0%, var(--blaze-charcoal) 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar - Burnt Orange */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--blaze-charcoal);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blaze-ember);
}

/* ========================================
   THREE.JS PARTICLE CANVAS
   ======================================== */

#particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-particle-field);
    pointer-events: none;
}

/* ========================================
   GLASS MORPHISM NAVIGATION
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: var(--glass-medium);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: var(--glass-heavy);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--blaze-white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.nav-logo:hover {
    color: var(--blaze-burnt-orange);
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    color: var(--blaze-mist);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--space-xs) var(--space-sm);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--blaze-burnt-orange);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    margin-top: 80px;
    z-index: var(--z-content);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--blaze-cloud);
    margin-bottom: var(--space-xl);
    font-weight: 400;
    line-height: 1.6;
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--blaze-smoke);
    font-style: italic;
}

/* ========================================
   CONTENT CONTAINER
   ======================================== */

.container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    z-index: var(--z-content);
}

/* ========================================
   SECTION STYLING
   ======================================== */

.section {
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    background: var(--gradient-ember);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

/* ========================================
   GLASS MORPHISM CARDS
   ======================================== */

.card {
    background: var(--glass-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.card:hover {
    background: var(--glass-medium);
    border-color: var(--blaze-burnt-orange);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--blaze-burnt-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .nav-container {
        padding: var(--space-sm) var(--space-md);
    }

    .nav-links {
        gap: var(--space-sm);
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero {
        min-height: 50vh;
        padding: var(--space-xl) var(--space-md);
    }

    .container {
        padding: var(--space-xl) var(--space-md);
    }

    .section {
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: var(--space-xs);
    }

    .hero {
        margin-top: 60px;
    }

    .card {
        padding: var(--space-md);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blaze-burnt-orange);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* 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;
    }

    html {
        scroll-behavior: auto;
    }
}
