/* F1-inspired Color Variables */
:root {
    --f1-red: #E10600;
    --f1-dark-red: #B80500;
    --f1-black: #15151E;
    --f1-dark: #1F1F2B;
    --f1-gray: #38383F;
    --f1-light-gray: #949498;
    --f1-white: #FFFFFF;
    --f1-silver: #E8E8E8;

    /* F1 Flag Colors */
    --f1-yellow: #FFD700;  /* Caution/Yellow flag */
    --f1-green: #00FF00;   /* Start/Go lights */
    --f1-blue: #00AEEF;    /* Blue flag */

    /* Checkered Flag Pattern */
    --f1-checkered: repeating-conic-gradient(
        #000 0% 25%,
        #FFF 0% 50%
    );
    --f1-checkered-size: 20px 20px;

    /* Team Colors */
    --team-redbull: #3671C6;
    --team-ferrari: #F91536;
    --team-mercedes: #27F4D2;
    --team-mclaren: #FF8700;
    --team-astonmartin: #229971;
    --team-alpine: #FF87BC;
    --team-williams: #64C4FF;
    --team-alphatauri: #5E8FAA;
    --team-alfaromeo: #C92D4B;
    --team-haas: #B6BABD;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Chakra Petch', sans-serif;
    background: linear-gradient(135deg, var(--f1-black) 0%, var(--f1-dark) 50%, #181824 100%);
    color: var(--f1-white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(225, 6, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(225, 6, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--f1-black) 0%, var(--f1-dark) 100%);
    border-bottom: 3px solid var(--f1-red);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(225, 6, 0, 0.3);
}

/* Reading Progress Bar - F1 Telemetry Style */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg,
        var(--f1-red) 0%,
        var(--f1-yellow) 50%,
        var(--f1-green) 100%);
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--f1-red);
}

.reading-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8));
    animation: progressGlow 1.5s ease-in-out infinite;
}

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h1 {
    font-family: 'Racing Sans One', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    background: linear-gradient(90deg, var(--f1-white) 0%, var(--f1-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.75rem;
    color: var(--f1-light-gray);
    letter-spacing: 3px;
    margin-left: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--f1-white);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--f1-red);
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-link:hover {
    background: var(--f1-red);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
    transform: translateY(-2px);
}

.f1wow-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}
}

.follower-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--f1-white);
    padding: 10px 20px;
    border: 2px solid var(--f1-red);
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.follower-counter:hover {
    background: var(--f1-red);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
    transform: translateY(-2px);
}

.follower-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--f1-red);
}

.follower-counter:hover .follower-count {
    color: white;
}

.follower-label {
    font-size: 0.75rem;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--f1-red);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--f1-red);
}

.mobile-menu-toggle .hamburger-icon {
    display: block;
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .close-icon {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link,
    .follower-counter,
    .theme-toggle {
        width: 100%;
        justify-content: center;
    }

    .header {
        padding: 15px 0;
    }
}

/* Subscriber Count in Nav */
.subscriber-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid var(--f1-red);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscriber-count:hover {
    background: rgba(34, 197, 94, 0.2);
}

.subscriber-count svg {
    flex-shrink: 0;
}

.subscriber-count span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--f1-white);
}

/* Main Content */
.main {
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 40px 0 50px;
    overflow: hidden;
    z-index: 1;
    min-height: 450px;
}

/* F1 Car GIF Background */
.hero-car-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.hero-car-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: brightness(1.3) contrast(1.2);
}

/* Speed Lines Overlay */
.hero-speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.4), transparent);
    animation: speedLine 2s linear infinite;
}

.speed-line:nth-child(1) {
    top: 20%;
    left: -50%;
    width: 40%;
    animation-delay: 0s;
}

.speed-line:nth-child(2) {
    top: 50%;
    left: -50%;
    width: 35%;
    animation-delay: 0.7s;
}

.speed-line:nth-child(3) {
    top: 80%;
    left: -50%;
    width: 45%;
    animation-delay: 1.4s;
}

@keyframes speedLine {
    0% {
        left: -50%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Dark overlay to make text readable */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(21, 21, 30, 0.88) 0%, rgba(21, 21, 30, 0.75) 50%, rgba(21, 21, 30, 0.88) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Diagonal Racing Stripe Pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(225, 6, 0, 0.04) 30px,
        rgba(225, 6, 0, 0.04) 31px,
        transparent 31px,
        transparent 60px,
        rgba(255, 255, 255, 0.02) 60px,
        rgba(255, 255, 255, 0.02) 61px,
        transparent 61px,
        transparent 120px
    );
    animation: stripeMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes stripeMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50px, 50px) rotate(0deg);
    }
}

/* Asphalt Texture Overlay */
.hero-section {
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* Red Racing Glow at Hero Bottom - Combined with Dark Overlay */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(21, 21, 30, 0.88) 0%, rgba(21, 21, 30, 0.75) 50%, rgba(21, 21, 30, 0.88) 100%),
        linear-gradient(90deg, transparent 0%, var(--f1-red) 20%, var(--f1-red) 80%, transparent 100%);
    background-position:
        0 0,
        0 100%;
    background-size:
        100% 100%,
        100% 4px;
    background-repeat:
        no-repeat,
        no-repeat;
    z-index: -1;
    pointer-events: none;
    box-shadow: 0 -2px 30px rgba(225, 6, 0, 0.4);
    animation: heroGlow 3s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        box-shadow: 0 -2px 30px rgba(225, 6, 0, 0.3);
    }
    50% {
        box-shadow: 0 -2px 50px rgba(225, 6, 0, 0.6);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 -2px 20px rgba(225, 6, 0, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 -2px 40px rgba(225, 6, 0, 0.8);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    color: var(--f1-white);
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

/* Checkered Flag Decoration */
.hero-badge span {
    display: block;
}

.hero-title {
    font-family: 'Racing Sans One', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--f1-white) 0%, var(--f1-red) 50%, var(--f1-white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 6px;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--f1-silver);
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Social Proof */
.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--f1-light-gray);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hero-social svg {
    color: #E10600;
}

.hero-social strong {
    color: var(--f1-red);
    font-weight: 700;
}

.hero-social .separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

.hero-social a {
    color: var(--f1-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-social a:hover {
    color: var(--f1-red);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 50px;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-2px);
    border-color: var(--f1-red);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.15);
}

.countdown-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--f1-red);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-family: 'Teko', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--f1-light-gray);
}

/* Countdown Group - Centered */
.countdown-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 25px;
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn span {
    font-size: 0.9rem;
}

.cta-primary {
    background: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    color: var(--f1-white);
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.4);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.6);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--f1-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: rgba(225, 6, 0, 0.3);
    border-color: var(--f1-red);
    transform: translateY(-2px);
}

/* Countdown Timer */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.next-race-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--f1-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(225, 6, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.15);
}

/* Main Content Padding */
.content-section {
    padding: 40px 0;
}

/* Articles Grid with improved styling */
.articles-section {
    position: relative;
    z-index: 1;
    margin-bottom: 120px;
    padding-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Compact Search Wrapper */
.compact-search-wrapper {
    max-width: 700px;
    margin: -30px auto 30px;
    position: relative;
    z-index: 10;
}

.compact-search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(21, 21, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.compact-search-container:focus-within {
    border-color: rgba(225, 6, 0, 0.5);
    box-shadow: 0 10px 50px rgba(225, 6, 0, 0.3);
}

.compact-search-container .search-icon {
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
}

.compact-search-container .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: var(--f1-white);
    padding: 0;
}

.compact-search-container .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.4);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: rgba(225, 6, 0, 0.2);
    color: var(--f1-red);
}

.search-toggle.active {
    background: var(--f1-red);
    color: white;
}

/* Search Filters - Collapsible */
.search-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.search-filters.expanded {
    max-height: 100px;
    margin-top: 15px;
}

.search-filters .search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Search Section (Legacy - kept for other pages) */
.search-section {

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    position: relative;
}

.search-icon {
    color: var(--f1-light-gray);
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: var(--f1-white);
    padding: 5px 0;
}

.search-input::placeholder {
    color: var(--f1-light-gray);
}

.search-clear {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--f1-light-gray);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    background: var(--f1-red);
    color: var(--f1-white);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.search-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--f1-light-gray);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-tag:hover,
.search-tag.active {
    background: var(--f1-red);
    color: var(--f1-white);
    border-color: var(--f1-red);
}

.search-results {
    margin-top: 20px;
}

.search-no-results {
    text-align: center;
    padding: 30px;
    color: var(--f1-light-gray);
    font-style: italic;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    position: relative;
}

.search-icon {
    color: var(--f1-light-gray);
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: var(--f1-white);
    padding: 5px 0;
}

.search-input::placeholder {
    color: var(--f1-light-gray);
}

.search-clear {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--f1-light-gray);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    background: var(--f1-red);
    color: var(--f1-white);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.search-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--f1-light-gray);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-tag:hover,
.search-tag.active {
    background: var(--f1-red);
    color: var(--f1-white);
    border-color: var(--f1-red);
}

.search-results {
    margin-top: 20px;
}

.search-no-results {
    text-align: center;
    padding: 30px;
    color: var(--f1-light-gray);
    font-style: italic;
}
}

.prediction-bar-track {
    flex: 1;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.prediction-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--f1-white);
    transition: width 0.5s ease;
    min-width: 40px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Sub Header */
.sub-header {
    margin-top: 40px;
}

.sub-header h3 {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Category Tabs */
.category-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Teko', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Tab ripple effect on hover */
.category-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(225, 6, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.category-tab:hover::before {
    width: 300px;
    height: 300px;
}
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--f1-white);
}

.category-tab.active {
    background: var(--f1-red);
    border-color: var(--f1-red);
    color: white;
    animation: tabActivate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tabActivate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.tab-icon {
    font-size: 1rem;
}

.articles-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.articles-count span {
    font-weight: 700;
    color: var(--f1-red);
}

@media (max-width: 600px) {
    .category-tabs-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .category-tabs {
        gap: 6px;
    }

    .category-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* Featured Article */
.featured-article {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.15), rgba(21, 21, 30, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    border: 2px solid rgba(225, 6, 0, 0.3);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Animated Racing Stripe Border */
.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(225, 6, 0, 0.3) 20px,
        rgba(225, 6, 0, 0.3) 22px
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

/* Checkered Flag Pattern Overlay */
.featured-article::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: repeating-conic-gradient(
        rgba(0,0,0,0.1) 0% 25%,
        transparent 0% 50%
    );
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 0 24px 0 0;
}

.featured-article:hover::before {
    left: 100%;
}

.featured-article:hover::after {
    opacity: 1;
}

.featured-article:hover {
    border-color: rgba(225, 6, 0, 0.8);
    transform: translateY(-8px) rotateX(2deg) scale(1.01);
    box-shadow:
        0 30px 80px rgba(225, 6, 0, 0.5),
        0 0 0 1px rgba(225, 6, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

.featured-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--f1-red), #ff3333);
    color: white;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.featured-badge svg {
    width: 16px;
    height: 16px;
}

.featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-category {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--f1-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-title {
    font-family: 'Racing Sans One', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--f1-white);
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.featured-date,
.featured-event,
.featured-driver {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.featured-divider {
    color: rgba(255, 255, 255, 0.2);
}

.featured-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(225, 6, 0, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.featured-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--f1-red);
}

.featured-article:hover .featured-arrow {
    background: var(--f1-red);
    transform: translateX(5px);
}

.featured-article:hover .featured-arrow svg {
    color: white;
}

/* Responsive Featured Article */
@media (max-width: 900px) {
    .featured-article {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px;
    }

    .featured-badge {
        align-self: flex-start;
    }

    .featured-title {
        font-size: 1.4rem;
    }

    .featured-arrow {
        align-self: flex-end;
    }
}

.article-preview-card {
    background: rgba(21, 21, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Racing Line Accent on Left */
.article-preview-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

/* Sweep Light Effect */
.article-preview-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 5;
    pointer-events: none;
}

.article-preview-card:hover::before {
    transform: scaleY(1);
}

.article-preview-card:hover::after {
    left: 100%;
}

.article-preview-card:hover {
    transform: translateY(-8px) rotateX(3deg) scale(1.02);
    border-color: rgba(225, 6, 0, 0.5);
    box-shadow:
        0 20px 60px rgba(225, 6, 0, 0.4),
        0 0 0 1px rgba(225, 6, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.article-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--f1-red);
}

.article-preview-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.75rem;
}

.preview-category {
    background: var(--f1-gray);
    color: var(--f1-white);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
    position: relative;
    overflow: hidden;
}

/* Breaking News - Yellow with Flash */
.preview-category.breaking {
    background: var(--f1-yellow);
    color: #000;
    animation: breakingFlash 1.5s ease-in-out infinite;
    font-weight: 700;
}

@keyframes breakingFlash {
    0%, 100% {
        background: var(--f1-yellow);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        background: #FFA500;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Race Report - Green (Start/Go) */
.preview-category:where([data-category="race"], .race-report) {
    background: var(--f1-green);
    color: #000;
    font-weight: 700;
}

/* Technical - Blue */
.preview-category:where([data-category="technical"], .technical) {
    background: var(--f1-blue);
    color: #FFF;
}

.preview-date {
    color: var(--f1-light-gray);
}

.article-preview-title {
    font-family: 'Racing Sans One', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--f1-white);
}

.article-preview-excerpt {
    font-size: 0.9rem;
    color: var(--f1-silver);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.article-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

.preview-driver {
    color: var(--f1-red);
    font-weight: 500;
}

.preview-event {
    color: var(--f1-light-gray);
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--f1-red) 0%, transparent 100%);
}

.section-header h2 {
    font-family: 'Racing Sans One', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(135deg, var(--f1-white) 0%, var(--f1-silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-badge {
    background: var(--f1-green);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: livePulse 2s infinite;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Live indicator dot */
.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    animation: liveDot 1s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
    }
}

@keyframes liveDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.7); }
}

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

/* Article Card */
.article-card {
    background: var(--f1-black);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--f1-gray);
    margin-bottom: 40px;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 3px solid var(--f1-red);
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--f1-light-gray);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--f1-white);
}

.article-quote {
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-left: 4px solid var(--f1-red);
    padding: 20px 25px;
    margin: 20px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--f1-silver);
    position: relative;
}

.article-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--f1-red);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quote-text {
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.quote-attribution {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--f1-red);
    font-style: normal;
    font-weight: 500;
}

.article-source {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--f1-gray);
    font-size: 0.9rem;
    color: var(--f1-light-gray);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: var(--f1-gray);
    color: var(--f1-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--f1-red);
    transform: translateY(-2px);
}

.article-placeholder {
    padding: 40px;
    text-align: center;
    color: var(--f1-light-gray);
}

/* Article Body Content */
.article-body {
    margin-top: 25px;
}

.article-paragraph {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--f1-silver);
    margin-bottom: 20px;
}

.article-subheading {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--f1-white);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--f1-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.article-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--f1-silver);
    line-height: 1.6;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--f1-red);
    font-weight: 700;
    font-size: 1.2rem;
}

.article-inline-quote {
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-left: 3px solid var(--f1-red);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.article-inline-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--f1-white);
    margin: 0;
    line-height: 1.6;
}

.article-inline-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--f1-red);
    font-style: normal;
    font-weight: 500;
}

.article-source a {
    color: var(--f1-red);
    text-decoration: none;
    font-weight: 500;
}

.article-source a:hover {
    text-decoration: underline;
}

/* Standings Section */
.standings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.standings-card {
    background: rgba(21, 21, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.standings-card:hover {
    border-color: rgba(225, 6, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(225, 6, 0, 0.2);
}

.standings-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--f1-dark-red) 0%, var(--f1-red) 100%);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.year {
    font-size: 0.8rem;
    opacity: 0.8;
}

.standings-list {
    padding: 15px 0;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--f1-light-gray);
    font-style: italic;
}

/* Standing Item */
.standing-item {
    display: grid;
    grid-template-columns: 40px 50px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-logo {
    width: 55px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.team-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.team-logo.logo-rbr { background: linear-gradient(135deg, #3671C6 0%, #1B4B8C 100%); }
.team-logo.logo-fer { background: linear-gradient(135deg, #F91536 0%, #C91229 100%); }
.team-logo.logo-mer { background: linear-gradient(135deg, #27F4D2 0%, #00A89C 100%); color: #000; text-shadow: none; }
.team-logo.logo-mcl { background: linear-gradient(135deg, #FF8700 0%, #CC6D00 100%); }
.team-logo.logo-ast { background: linear-gradient(135deg, #229971 0%, #1A7A5A 100%); }
.team-logo.logo-alp { background: linear-gradient(135deg, #FF87BC 0%, #CC6A97 100%); }
.team-logo.logo-wil { background: linear-gradient(135deg, #64C4FF 0%, #509ECC 100%); color: #000; text-shadow: none; }
.team-logo.logo-rbt { background: linear-gradient(135deg, #5E8FAA 0%, #4A7388 100%); }
.team-logo.logo-sau { background: linear-gradient(135deg, #52E252 0%, #3CB343 100%); }
.team-logo.logo-aud { background: linear-gradient(135deg, #1E1E1E 0%, #000000 100%); border: 1px solid #444; }
.team-logo.logo-haas { background: linear-gradient(135deg, #B6BABD 0%, #929597 100%); color: #000; text-shadow: none; }
.team-logo.logo-cad { background: linear-gradient(135deg, #E6000F 0%, #B8000C 100%); }

.standing-item:last-child {
    border-bottom: none;
}

.standing-item:hover {
    background: rgba(225, 6, 0, 0.1);
}

.standing-position {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--f1-light-gray);
    width: 30px;
    text-align: center;
}

.standing-item:first-child .standing-position,
.standing-item:nth-child(2) .standing-position,
.standing-item:nth-child(3) .standing-position {
    color: var(--f1-white);
}

.standing-item:first-child .standing-position {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.standing-item:nth-child(2) .standing-position {
    color: #C0C0C0;
}

.standing-item:nth-child(3) .standing-position {
    color: #CD7F32;
}

.standing-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-color {
    width: 8px;
    height: 30px;
    border-radius: 4px;
}

.standing-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.standing-points {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--f1-red);
    font-size: 1rem;
}

/* Subscribe Section */
.subscribe-section {
    margin-top: 100px;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.08) 0%, rgba(225, 6, 0, 0.03) 100%);
    border-top: 1px solid rgba(225, 6, 0, 0.2);
    border-bottom: 1px solid rgba(225, 6, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subscribe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--f1-red), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.subscribe-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(225, 6, 0, 0.15);
    border-radius: 50%;
    color: var(--f1-red);
}

.subscribe-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--f1-white);
    margin-bottom: 15px;
}

.subscribe-section > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto 25px;
}

.subscribe-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.subscribe-input {
    flex: 1;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--f1-white);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--f1-red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--f1-red);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}

.subscribe-btn:hover {
    background: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 6, 0, 0.4);
}

.subscribe-btn:active {
    transform: translateY(0);
}

.subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.subscribe-btn .btn-icon {
    transition: transform 0.3s ease;
}

.subscribe-btn:hover .btn-icon {
    transform: translateX(4px);
}

.subscribe-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.subscribe-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    color: var(--f1-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 35, 70, 0.4);
}

/* Subscribe Notification */
.subscribe-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 14px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    font-weight: 500;
    font-size: 0.95rem;
    animation: slideInRight 0.4s ease;
}

.subscribe-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.subscribe-notification.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.subscribe-notification.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

.subscribe-notification svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Admin Panel */
.admin-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(225, 6, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 10000;
}

.admin-panel.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-content {
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--f1-white);
    margin: 0;
}

.admin-close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.admin-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.admin-stat {
    text-align: center;
    padding: 20px 30px;
    background: rgba(225, 6, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(225, 6, 0, 0.2);
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--f1-red);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--f1-white);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: rgba(225, 6, 0, 0.2);
    border-color: var(--f1-red);
}

.notify-btn:hover {
    background: var(--f1-red);
    border-color: var(--f1-red);
}

.export-btn:hover {
    background: #22c55e;
    border-color: #22c55e;
}

.clear-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.admin-article-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--f1-white);
    font-size: 0.9rem;
}

.admin-input:focus {
    outline: none;
    border-color: var(--f1-red);
}

.send-btn {
    background: linear-gradient(135deg, var(--f1-red), #ff3333);
    border: none;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(225, 6, 0, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 600px) {
    .admin-panel {
        width: 95%;
        max-width: none;
    }

    .admin-content {
        padding: 20px;
    }
}

/* Footer */
.footer {
    background: var(--f1-black);
    border-top: 2px solid var(--f1-gray);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer p {
    color: var(--f1-light-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--f1-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--f1-white);
}

/* Schedule Section */
.schedule-section {
    margin-top: 40px;
}

.race-count {
    background: var(--f1-gray);
    color: var(--f1-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.race-card {
    background: rgba(21, 21, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.race-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.race-card:hover::after {
    opacity: 1;
}

.race-card:hover {
    border-color: rgba(225, 6, 0, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.2);
}

.race-card.completed {
    border-left: 3px solid var(--f1-red);
}

.race-card.next-race {
    border: 2px solid var(--f1-red);
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.race-card.upcoming {
    border-left: 3px solid var(--f1-light-gray);
    opacity: 0.7;
}

.race-round {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--f1-red);
    min-width: 50px;
    text-align: center;
}

.race-info {
    flex: 1;
}

.race-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--f1-white);
    margin-bottom: 4px;
}

.race-date {
    font-size: 0.75rem;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.race-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.race-badge.completed {
    background: var(--f1-red);
    color: var(--f1-white);
}

.race-badge.next {
    background: #FFD700;
    color: var(--f1-black);
    animation: pulse 2s infinite;
}

.race-badge.upcoming {
    background: var(--f1-gray);
    color: var(--f1-light-gray);
}

.race-card.cancelled {
    border-left: 3px solid #666;
    opacity: 0.5;
}

.race-badge.cancelled {
    background: #666;
    color: var(--f1-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand h1 {
        font-size: 1.3rem;
    }

    .subtitle {
        display: none;
    }

    .article-title {
        font-size: 1.3rem;
    }

    .article-image {
        height: 250px;
    }

    .standings-grid {
        grid-template-columns: 1fr;
    }

    .standing-item {
        grid-template-columns: 35px 1fr auto;
        padding: 10px 15px;
        gap: 10px;
    }

    .nav-link span {
        display: none;
    }
}

    .nav-link {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .article-content {
        padding: 20px;
    }

    .article-quote {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .standings-card h3 {
        font-size: 0.95rem;
        padding: 15px 20px;
    }
}

/* Race Results Page Styles */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.results-card {
    background: var(--f1-black);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--f1-gray);
}

.results-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--f1-dark-red) 0%, var(--f1-red) 100%);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sprint-card h3 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--f1-black);
}

.results-table {
    padding: 0;
}

.result-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row:hover {
    background: rgba(225, 6, 0, 0.1);
}

.result-row.result-header {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--f1-light-gray);
}

.result-row.result-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.result-pos {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--f1-light-gray);
}

.result-pos.gold {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.result-pos.silver {
    color: #C0C0C0;
}

.result-pos.bronze {
    color: #CD7F32;
}

.result-driver {
    font-weight: 500;
    color: var(--f1-white);
}

.result-team {
    font-size: 0.8rem;
    color: var(--f1-light-gray);
}

.result-gap, .result-points {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--f1-red);
    font-size: 0.9rem;
}

.result-row.winner {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.result-row.winner .result-driver {
    font-weight: 700;
}

/* Fastest Lap Banner */
.fastest-lap-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-left: 4px solid var(--f1-red);
}

.driver-info {
    display: flex;
    flex-direction: column;
}

.fastest-lap-driver {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--f1-white);
}

.fastest-lap-team {
    font-size: 0.85rem;
    color: var(--f1-light-gray);
}

.lap-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--f1-red);
}

.lap-points {
    background: var(--f1-red);
    color: var(--f1-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-row {
        grid-template-columns: 30px 1fr auto;
        gap: 10px;
        padding: 10px 15px;
    }

    .result-team, .result-gap {
        display: none;
    }

    .fastest-lap-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Team Colors for Standings */
.team-redbull { background: linear-gradient(180deg, #3671C6 0%, #1B4B8C 100%); }
.team-ferrari { background: linear-gradient(180deg, #F91536 0%, #C91229 100%); }
.team-mercedes { background: linear-gradient(180deg, #27F4D2 0%, #1FA89C 100%); }
.team-mclaren { background: linear-gradient(180deg, #FF8700 0%, #CC6D00 100%); }
.team-astonmartin { background: linear-gradient(180deg, #229971 0%, #1A7A5A 100%); }
.team-alpine { background: linear-gradient(180deg, #FF87BC 0%, #CC6A97 100%); }
.team-williams { background: linear-gradient(180deg, #64C4FF 0%, #509ECC 100%); }
.team-alphatauri { background: linear-gradient(180deg, #5E8FAA 0%, #4A7388 100%); }
.team-alfaromeo { background: linear-gradient(180deg, #C92D4B 0%, #A1243C 100%); }
.team-haas { background: linear-gradient(180deg, #B6BABD 0%, #929597 100%); }

/* ============================================
   UX IMPROVEMENTS
   ============================================ */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    border: none;
    border-radius: 50%;
    color: var(--f1-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.6);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-title {
    height: 28px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
}

.skeleton-standing-item {
    display: grid;
    grid-template-columns: 35px 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-standing-item .skeleton {
    height: 20px;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for multiple elements */
.fade-in.stagger-1 { transition-delay: 0.1s; }
.fade-in.stagger-2 { transition-delay: 0.2s; }
.fade-in.stagger-3 { transition-delay: 0.3s; }
.fade-in.stagger-4 { transition-delay: 0.4s; }
.fade-in.stagger-5 { transition-delay: 0.5s; }

/* Loading text replacement */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--f1-light-gray);
    font-style: italic;
}

.loading-skeleton {
    padding: 0;
}

/* Mobile responsive for back to top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   ARTICLE SHARE BUTTONS
   ============================================ */

.article-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--f1-gray);
}

.article-share h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.share-btn.copy-link {
    background: var(--f1-dark);
    color: var(--f1-white);
    border: 2px solid var(--f1-gray);
}

.share-btn.copy-link:hover {
    border-color: var(--f1-red);
    background: var(--f1-red);
}

.share-btn.copy-link.copied {
    background: #27F4D2;
    border-color: #27F4D2;
    color: var(--f1-black);
}

.share-btn.whatsapp {
    background: #25D366;
    color: var(--f1-white);
}

.share-btn.whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.share-btn.facebook {
    background: #1877F2;
    color: var(--f1-white);
}

.share-btn.facebook:hover {
    background: #0d65d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--f1-white);
}

.share-btn.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.share-btn.twitter {
    background: #000;
    color: var(--f1-white);
}

.share-btn.twitter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.share-btn.linkedin {
    background: #0077b5;
    color: var(--f1-white);
}

.share-btn.linkedin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

.share-btn svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PREDICTOR GAME STYLES
   ============================================ */

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    background: linear-gradient(180deg, var(--f1-black) 0%, var(--f1-dark) 100%);
    border-bottom: 2px solid var(--f1-gray);
    position: sticky;
    top: 73px;
    z-index: 99;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--f1-gray);
    border-radius: 30px;
    color: var(--f1-light-gray);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tab-btn:hover {
    border-color: var(--f1-red);
    color: var(--f1-white);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    border-color: var(--f1-red);
    color: var(--f1-white);
    box-shadow: 0 4px 20px rgba(225, 6, 0, 0.4);
}

.tab-btn svg {
    width: 20px;
    height: 20px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Predictor Section */
.predictor-section {
    padding: 40px 0;
}

.predictor-header {
    text-align: center;
    margin-bottom: 40px;
}

.predictor-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--f1-white) 0%, var(--f1-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.predictor-header p {
    color: var(--f1-light-gray);
    font-size: 1rem;
}

/* Predictor Card */
.predictor-card {
    background: var(--f1-black);
    border-radius: 20px;
    border: 1px solid var(--f1-gray);
    overflow: hidden;
    margin-bottom: 30px;
}

.predictor-card-header {
    background: linear-gradient(135deg, var(--f1-dark-red) 0%, var(--f1-red) 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.predictor-card-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.user-points-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.user-points-badge svg {
    width: 20px;
    height: 20px;
    color: #FFD700;
}

.user-points-count {
    color: #FFD700;
    font-size: 1.1rem;
}

.predictor-card-body {
    padding: 30px;
}

/* Race Selector */
.race-selector {
    margin-bottom: 30px;
}

.race-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.race-select {
    width: 100%;
    padding: 15px 20px;
    background: var(--f1-dark);
    border: 2px solid var(--f1-gray);
    border-radius: 10px;
    color: var(--f1-white);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.race-select:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2);
}

/* Race Info Banner */
.race-info-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.15) 0%, rgba(21, 21, 30, 0.6) 100%);
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 12px;
}

.race-flag {
    font-size: 2rem;
    flex-shrink: 0;
}

.race-info-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.race-info-label {
    font-size: 0.75rem;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.race-info-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--f1-white);
    font-family: 'Orbitron', sans-serif;
}

.race-select option {
    background: var(--f1-dark);
    color: var(--f1-white);
    padding: 15px;
}

.podium-select option {
    background: rgba(0, 0, 0, 0.9);
    color: var(--f1-white);
}

/* Podium Predictor */
.podium-predictor {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin: 40px 0;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(225, 6, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 15px;
    flex-wrap: wrap;
}

.podium-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.podium-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-radius: 10px 10px 0 0;
    padding: 25px 30px;
    transition: all 0.3s ease;
}

.podium-step.first {
    width: 350px;
    height: 200px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    order: 2;
}

.podium-step.second {
    width: 300px;
    height: 160px;
    background: linear-gradient(180deg, #C0C0C0 0%, #9A9A9A 100%);
    order: 1;
}

.podium-step.third {
    width: 300px;
    height: 130px;
    background: linear-gradient(180deg, #CD7F32 0%, #A06428 100%);
    order: 3;
}

.podium-position-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--f1-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.podium-step.first .podium-position-label {
    font-size: 2rem;
}

.podium-select {
    width: 100%;
    min-width: 200px;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--f1-white);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    margin-top: auto;
}

.podium-select:focus {
    outline: none;
    border-color: var(--f1-white);
}

/* Submit Button */
.submit-prediction-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    border: none;
    border-radius: 10px;
    color: var(--f1-white);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-prediction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(225, 6, 0, 0.4);
}

.submit-prediction-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-prediction-btn svg {
    width: 24px;
    height: 24px;
}

/* Previous Predictions */
.previous-predictions {
    margin-top: 40px;
}

.previous-predictions h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--f1-light-gray);
}

.prediction-item {
    background: var(--f1-dark);
    border: 1px solid var(--f1-gray);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.prediction-item:hover {
    border-color: var(--f1-red);
    transform: translateX(5px);
}

.prediction-item.correct {
    border-color: #27F4D2;
    background: linear-gradient(90deg, rgba(39, 244, 210, 0.1) 0%, var(--f1-dark) 100%);
}

.prediction-item.partial {
    border-color: #FFD700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, var(--f1-dark) 100%);
}

.prediction-race {
    flex: 1;
}

.prediction-race-name {
    font-weight: 600;
    color: var(--f1-white);
    margin-bottom: 5px;
}

.prediction-username {
    font-size: 0.85rem;
    color: #27F4D2;
    font-weight: 500;
    margin-bottom: 5px;
}

.prediction-drivers {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--f1-light-gray);
}

.prediction-drivers span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prediction-drivers .medal {
    width: 16px;
    height: 16px;
}

.prediction-points {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #FFD700;
}

.prediction-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prediction-status.pending {
    background: var(--f1-gray);
    color: var(--f1-light-gray);
}

.prediction-status.correct {
    background: #27F4D2;
    color: var(--f1-black);
}

.prediction-status.partial {
    background: #FFD700;
    color: var(--f1-black);
}

/* Leaderboard */
.leaderboard {
    margin-top: 40px;
}

.leaderboard h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--f1-light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard h3 svg {
    width: 24px;
    height: 24px;
    color: #FFD700;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--f1-dark);
    border: 1px solid var(--f1-gray);
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    border-color: var(--f1-red);
}

.leaderboard-item.current-user {
    border-color: #FFD700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, var(--f1-dark) 100%);
}

.leaderboard-position {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    width: 35px;
    text-align: center;
}

.leaderboard-position.gold {
    color: #FFD700;
    font-size: 1.4rem;
}

.leaderboard-position.silver {
    color: #C0C0C0;
}

.leaderboard-position.bronze {
    color: #CD7F32;
}

.leaderboard-name {
    flex: 1;
    font-weight: 500;
}

.leaderboard-name.current {
    font-weight: 700;
}

.leaderboard-points {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #FFD700;
}

/* Username Input */
.username-input-container {
    margin-bottom: 30px;
}

.username-input-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.username-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--f1-dark);
    border: 2px solid var(--f1-gray);
    border-radius: 10px;
    color: var(--f1-white);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.username-input:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2);
}

.username-input::placeholder {
    color: var(--f1-light-gray);
}

/* Username Input Wrapper */
.username-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.username-status {
    font-size: 1.2rem;
    color: var(--f1-red);
    transition: all 0.3s ease;
}

.username-status.available {
    color: #2ecc71;
}

.username-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--f1-light-gray);
}

.username-input.taken {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Scoring Info */
.scoring-info {
    background: rgba(39, 244, 210, 0.1);
    border: 1px solid #27F4D2;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.scoring-info h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #27F4D2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scoring-info ul {
    list-style: none;
    padding: 0;
}

.scoring-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--f1-light-gray);
    font-size: 0.9rem;
}

.scoring-info li svg {
    width: 18px;
    height: 18px;
    color: #FFD700;
    flex-shrink: 0;
}

/* Responsive for Predictor */
@media (max-width: 768px) {
    .tab-navigation {
        padding: 15px 0;
        gap: 10px;
        top: 60px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.75rem;
        letter-spacing: 1px;
        gap: 8px;
    }

    .tab-btn span {
        display: inline;
    }

    .predictor-header h2 {
        font-size: 1.5rem;
    }

    .podium-predictor {
        gap: 15px;
        padding: 20px 10px;
    }

    .podium-step.first {
        width: 200px;
        height: 160px;
    }

    .podium-step.second {
        width: 170px;
        height: 130px;
    }

    .podium-step.third {
        width: 170px;
        height: 110px;
    }

    .podium-step {
        padding: 15px 20px;
    }

    .podium-position-label {
        font-size: 1rem;
    }

    .podium-step.first .podium-position-label {
        font-size: 1.2rem;
    }

    .podium-select {
        font-size: 0.85rem;
        padding: 10px;
        min-width: 150px;
    }

    .prediction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .prediction-drivers {
        flex-direction: column;
        gap: 8px;
    }

    .leaderboard-item {
        padding: 12px 15px;
    }
}

/* ============================================
   CHAMPIONSHIP GRAPH
   ============================================ */

/* Quick Navigation Buttons */
.quick-nav {
    padding: 20px 0;
}

.quick-nav-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1a1a2e, #16162a);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quick-nav-btn:hover {
    background: linear-gradient(135deg, #2a2a4e, #26264a);
    border-color: #e10600;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 6, 0, 0.3);
}

.quick-nav-btn:active {
    transform: translateY(-1px);
}

.quick-nav-btn.primary {
    background: linear-gradient(135deg, #e10600, #ff1e1e);
    border-color: #e10600;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(225, 6, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(225, 6, 0, 0.6);
    }
}

.quick-nav-btn.primary:hover {
    background: linear-gradient(135deg, #ff1e1e, #e10600);
    box-shadow: 0 8px 30px rgba(225, 6, 0, 0.5);
}

.quick-nav-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.championship-graph-section {
    padding: 40px 0;
}

.championship-graph-card {
    background: var(--f1-black);
    border-radius: 20px;
    border: 1px solid var(--f1-gray);
    overflow: hidden;
    margin-bottom: 30px;
}

.championship-graph-header {
    background: linear-gradient(135deg, var(--f1-dark-red) 0%, var(--f1-red) 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.championship-graph-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.graph-type-toggle {
    display: flex;
    gap: 10px;
}

.graph-type-btn {
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: var(--f1-white);
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.graph-type-btn:hover {
    border-color: var(--f1-white);
}

.graph-type-btn.active {
    background: var(--f1-white);
    color: var(--f1-red);
    border-color: var(--f1-white);
}

.championship-graph-body {
    padding: 30px;
}

.graph-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.graph-control-group {
    flex: 1;
    min-width: 200px;
}

.graph-control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.graph-select {
    width: 100%;
    padding: 12px 15px;
    background: var(--f1-dark);
    border: 2px solid var(--f1-gray);
    border-radius: 8px;
    color: var(--f1-white);
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.graph-select:focus {
    outline: none;
    border-color: var(--f1-red);
}

.graph-container {
    position: relative;
    background: var(--f1-dark);
    border-radius: 15px;
    padding: 30px 20px 50px 60px;
    min-height: 400px;
}

/* SVG Graph */
.championship-svg {
    width: 100%;
    height: 400px;
    overflow: visible;
}

.graph-axis-line {
    stroke: var(--f1-gray);
    stroke-width: 1;
}

.graph-grid-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.graph-axis-text {
    fill: var(--f1-light-gray);
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
}

.graph-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-dashoffset 1s ease;
}

.graph-line.animate {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* ========================================
   STEP 8: PAGE LOAD RACE-IN ANIMATIONS
   Cars entering the track effect
   ======================================== */

/* Race from left - like cars from pit lane */
@keyframes raceInLeft {
    0% {
        transform: translateX(-100px) skewX(-5deg);
        opacity: 0;
        filter: blur(8px);
    }
    60% {
        filter: blur(2px);
    }
    100% {
        transform: translateX(0) skewX(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Race from right - like cars from main straight */
@keyframes raceInRight {
    0% {
        transform: translateX(100px) skewX(5deg);
        opacity: 0;
        filter: blur(8px);
    }
    60% {
        filter: blur(2px);
    }
    100% {
        transform: translateX(0) skewX(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Speed burst - explode outward from center */
@keyframes speedBurst {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
        filter: blur(4px);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
        filter: blur(0);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Diagonal race in - from top left like fast corner entry */
@keyframes raceInDiagonal {
    0% {
        transform: translate(-50px, -50px) rotate(-2deg);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        filter: blur(3px);
    }
    100% {
        transform: translate(0, 0) rotate(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Turbo rev - scale up with energy */
@keyframes turboRev {
    0% {
        transform: scale(0.5);
        opacity: 0;
        filter: brightness(0.5);
    }
    70% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
    }
}

/* Drift in - slide with slight rotation */
@keyframes driftIn {
    0% {
        transform: translateX(80px) rotate(3deg);
        opacity: 0;
    }
    60% {
        transform: translateX(-5px) rotate(-0.5deg);
    }
    100% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

/* Apply animations to header elements */
.header {
    animation: raceInLeft 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.brand {
    animation: speedBurst 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    opacity: 0; /* Start hidden */
}

.nav-link, .follower-counter {
    animation: driftIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
    opacity: 0; /* Start hidden */
}

.nav-link:nth-child(2) {
    animation-delay: 0.5s;
}

/* Hero section animations */
.hero-section {
    animation: raceInDiagonal 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
    opacity: 0; /* Start hidden */
}

.hero-car-bg {
    animation: turboRev 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
    opacity: 0; /* Start hidden */
}

.hero-badge {
    animation: speedBurst 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
    opacity: 0; /* Start hidden */
}

.hero-title {
    animation: raceInLeft 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards;
    opacity: 0; /* Start hidden */
}

.hero-subtitle {
    animation: raceInRight 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
    opacity: 0; /* Start hidden */
}

.hero-cta {
    animation: speedBurst 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
    opacity: 0; /* Start hidden */
}

/* Category tabs slide in */
.category-tabs-wrapper {
    animation: driftIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.1s forwards;
    opacity: 0; /* Start hidden */
}

/* Article cards race in with stagger */
.article-preview-card {
    opacity: 0; /* Start hidden */
    animation: raceInDiagonal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Stagger each card like cars in formation lap */
.article-preview-card:nth-child(1) { animation-delay: 1.2s; }
.article-preview-card:nth-child(2) { animation-delay: 1.3s; }
.article-preview-card:nth-child(3) { animation-delay: 1.4s; }
.article-preview-card:nth-child(4) { animation-delay: 1.5s; }
.article-preview-card:nth-child(5) { animation-delay: 1.6s; }
.article-preview-card:nth-child(6) { animation-delay: 1.7s; }
.article-preview-card:nth-child(7) { animation-delay: 1.8s; }
.article-preview-card:nth-child(8) { animation-delay: 1.9s; }
.article-preview-card:nth-child(9) { animation-delay: 2s; }
.article-preview-card:nth-child(10) { animation-delay: 2.1s; }
.article-preview-card:nth-child(11) { animation-delay: 2.2s; }
.article-preview-card:nth-child(12) { animation-delay: 2.3s; }

/* Alternating directions for visual interest */
.article-preview-card:nth-child(odd) {
    animation-name: raceInLeft;
}

.article-preview-card:nth-child(even) {
    animation-name: raceInRight;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .header,
    .brand,
    .nav-link,
    .follower-counter,
    .hero-section,
    .hero-car-bg,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .category-tabs-wrapper,
    .article-preview-card {
        animation: none;
        opacity: 1;
    }
}

.graph-point {
    fill: var(--f1-black);
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.graph-point:hover {
    r: 8;
    stroke-width: 3;
}

.graph-point-label {
    fill: var(--f1-white);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
}

.graph-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--f1-red);
    border-radius: 8px;
    padding: 12px 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    min-width: 150px;
}

.graph-tooltip.visible {
    opacity: 1;
}

.graph-tooltip-race {
    font-weight: 600;
    color: var(--f1-white);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.graph-tooltip-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.graph-tooltip-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.graph-tooltip-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.graph-tooltip-name {
    color: var(--f1-light-gray);
}

.graph-tooltip-points {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--f1-red);
    margin-left: auto;
}

.graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.graph-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--f1-dark);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.graph-legend-item:hover {
    border-color: var(--f1-gray);
}

.graph-legend-item.hidden {
    opacity: 0.4;
}

.graph-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.graph-legend-name {
    color: var(--f1-white);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Team colors for graph */
.graph-color-mercedes { fill: #27F4D2; stroke: #27F4D2; }
.graph-color-ferrari { fill: #F91536; stroke: #F91536; }
.graph-color-redbull { fill: #3671C6; stroke: #3671C6; }
.graph-color-mclaren { fill: #FF8700; stroke: #FF8700; }
.graph-color-astonmartin { fill: #229971; stroke: #229971; }
.graph-color-alpine { fill: #FF87BC; stroke: #FF87BC; }
.graph-color-williams { fill: #64C4FF; stroke: #64C4FF; }
.graph-color-rb { fill: #5E8FAA; stroke: #5E8FAA; }
.graph-color-sauber { fill: #C92D4B; stroke: #C92D4B; }
.graph-color-haas { fill: #B6BABD; stroke: #B6BABD; }

/* Responsive */
@media (max-width: 768px) {
    .championship-graph-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .graph-controls {
        flex-direction: column;
    }

    .graph-control-group {
        min-width: 100%;
    }

    .graph-container {
        padding: 20px 10px 40px 50px;
    }

    .championship-svg {
        height: 300px;
    }

    .graph-legend {
        gap: 10px;
    }

    .graph-legend-item {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .graph-tooltip {
        font-size: 0.75rem;
        min-width: 120px;
    }
}

/* Instagram Embed Styles - for official Instagram embeds */
.instagram-embed-container {
    margin: 30px 0;
    max-width: 658px;
    margin-left: auto;
    margin-right: auto;
}

/* Style Instagram's official embed to match dark theme */
.instagram-embed-container blockquote.instagram-media {
    background: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

/* Make Instagram embeds responsive */
.instagram-embed-container blockquote.instagram-media {
    max-width: 100% !important;
    width: 100% !important;
    min-width: auto !important;
}

/* Responsive Instagram Embed */
@media (max-width: 768px) {
    .instagram-embed-container {
        margin: 20px 0;
    }
}
