/* --- ASCRL DESIGN SYSTEM --- */
:root {
    /* Color Palette */
    --primary: #c00;          /* Racing Red */
    --primary-glow: rgba(204, 0, 0, 0.3);
    --accent: #ff0;           /* Speed Yellow */
    --bg-dark: #000;          /* Deep Asphalt */
    --card-bg: #0d0d0d;       /* Carbon Fiber Gray */
    --border: #1a1a1a;        /* Subtle divider */
    --border-hover: #333;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Animation & Feel */
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass: blur(12px);
}

/* --- BASE RESET --- */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial Black', sans-serif; /* Fallback for racing style */
    
    /* --- OPTION C: GRITTY ASPHALT TEXTURE --- */
    background-color: #1a1a1a;
    background-image: 
        radial-gradient(transparent 0%, #000 100%), /* Vignette */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    background-attachment: fixed; /* Keeps texture still while scrolling */
    /* ---------------------------------------- */

    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- GLOBAL LAYOUT --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section { margin-bottom: 5rem; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
    margin: 0;
}

.text-gradient {
    background: linear-gradient(to bottom, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- REUSABLE COMPONENTS --- */

/* 1. The Navigation */
.hamburger {
    position: fixed; top: 1.5rem; left: 1.5rem; z-index: 2000;
    cursor: pointer; padding: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.hamburger:hover { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.hamburger-line { width: 25px; height: 3px; background: #fff; margin: 5px 0; }

.nav-overlay {
    position: fixed; top: 0; left: -100%; width: 100%; max-width: 350px;
    height: 100vh; background: rgba(5,5,5,0.9); backdrop-filter: var(--glass);
    transition: var(--transition); z-index: 1999;
    padding-top: 100px; border-right: 1px solid var(--primary);
}
.nav-overlay.open { left: 0; }

/* 2. Hero Header */
.hero {
    /* Slight update to blend with new body texture */
    background: radial-gradient(circle at center, rgba(26,26,26,0.8) 0%, rgba(0,0,0,0.95) 100%);
    padding: 12rem 1rem 8rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* 3. The "Glass" Card (Drivers, Results, Schedule) */
.race-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.race-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: #111;
}
.race-card::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 4px; height: 0%; background: var(--primary);
    transition: var(--transition);
}
.race-card:hover::before { height: 100%; }

/* 4. Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.stat-box {
    border-left: 2px solid var(--border);
    padding-left: 1rem;
}
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; display: block; }
.stat-value { font-size: 1.4rem; color: var(--accent); font-weight: bold; }

/* 5. Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: inline-block;
    transition: var(--transition);
}
.btn-primary:hover {
    background: #fff;
    color: #000;
}

/* --- NEW CHAMPIONSHIP LEADER CARDS (The "Pop") --- */
.leader-strip {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 0;
}

.leader-card {
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid #222;
    padding: 2rem;
    width: 240px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.leader-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.2);
}

.leader-bg-number {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 6rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}

.leader-series-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    padding: 5px 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    font-weight: bold;
}

.leader-info-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.leader-crown {
    color: #ffd700; /* Gold */
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.leader-name {
    font-size: 1.5rem;
    font-family: 'Arial Black', sans-serif;
    display: block;
    margin-top: 0.5rem;
    word-wrap: break-word;
    line-height: 1.1;
}

.leader-points-pill {
    margin-top: 1rem;
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 15px;
    font-family: sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
}

/* --- FOOTER & SOCIALS --- */
footer {
    padding: 6rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: #444;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-icon {
    color: #555;
    font-size: 1.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon:hover { transform: translateY(-3px); }
.social-icon.facebook:hover { color: #1877F2; }
.social-icon.x-twitter:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

.social-icon.email:hover { 
    color: var(--primary);
    transform: scale(1.1);
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .leader-strip {
        flex-direction: column;
        align-items: center;
    }
    .leader-card {
        width: 100%;
        max-width: 320px;
    }
}
