/*
 * Dirty Bloom 50 - Main Stylesheet
 * Built by: Nasaj
 * Includes: Base styles, results page styles, share modal, responsive design
 */

:root {
    /* Color Palette */
    --color-primary: #FC004B;
    --color-primary-dark: #C7003B;
    --color-accent-yellow: #FFBC0A;
    --color-bg-light: #ffffff;
    --color-bg-dark: #0A2126;
    --color-surface-dark: #132D33;
    --color-surface-card: #0F282D;
    --color-text-main: #0f172a; /* Slate 900 */
    --color-text-light: #4b5563; /* Gray 600 */
    --color-text-inv: #ffffff;
    --color-text-muted: #9ca3af; /* Gray 400 */
    
    /* Fonts */
    --font-heading: 'Lexend', sans-serif;
    --font-body: 'Lexend', sans-serif;

    /* Spacing */
    --container-width: 1280px; /* max-w-7xl */
    --header-height: 80px; /* Default (Mobile): Compact 80px */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Utility Classes */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent-yellow); }
.text-white { color: var(--color-text-inv); }
.bg-dark { background-color: var(--color-bg-dark); }
.bg-surface { background-color: var(--color-surface-dark); }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-inv);
    box-shadow: 0 10px 15px -3px rgba(252, 0, 75, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-outline-white {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-text-inv);
}

.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--color-text-inv);
}

.btn-large {
    height: 3.5rem;
    padding: 0 3rem;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: transparent; /* Start transparent */
    backdrop-filter: none;
    
    transition: all 0.3s ease; /* Smooth transition */
}

.site-header.scrolled {
    background-color: rgba(10, 33, 38, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled .logo img {
    height: 5rem; /* Shrink to 5rem */
}

.site-header.scrolled .header-inner {
    height: 90px; /* Compact height */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    transition: height 0.3s ease; /* Smooth height transition */
}
/* Logo */
.logo img {
    height: 4rem; /* Default (Mobile): 4rem */
    width: auto;
    transition: height 0.3s;
}

.nav-desktop {
    display: none;
}

.nav-desktop a {
    color: #ffffff; /* gray-300 */
    font-size: 1rem;
    font-weight: 500;
    margin-left: 2rem;
}

.nav-desktop a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 0, 75, 0.3);
}

/* Mobile Nav */
/* Mobile Nav - Slide from Right */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0; /* Move to right */
    left: auto; /* Reset left */
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background-color: var(--color-bg-dark);
    padding: 2rem 1rem;
    transform: translateX(100%); /* Start off-screen right */
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.3s ease;
    z-index: 100;
    border-left: 1px solid rgba(255,255,255,0.1); /* Border on left now */
    border-right: none;
    box-shadow: -10px 0 25px rgba(0,0,0,0.5); /* Shadow on left */
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 90; /* Below nav, above everything else */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-small img {
    height: 4rem; /* Small logo for mobile menu */
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav.open {
    transform: translateX(0);
}

/* Scoped to .mobile-nav-links to avoid targeting contact links */
.mobile-nav-links a {
    display: block;
    padding: 1rem;
    color: var(--color-text-inv);
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    border-radius: 0.5rem;
    border-bottom: none;
    transition: all 0.2s;
}

.mobile-nav-links a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-primary);
    padding-left: 1.5rem;
}

/* Sidebar Contact Fixes */
.sidebar-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-contact h3 {
    font-size: 0.875rem; /* Standardized from 0.85rem */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.sidebar-contact .contact-item {
    display: flex; /* Ensure flex behavior */
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem; /* Standardized from 0.95rem */
}

.sidebar-contact .contact-item a,
.sidebar-contact .contact-item span {
    text-transform: none !important; /* Force lowercase */
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.sidebar-contact .material-symbols-outlined {
    color: var(--color-primary); /* Pink icons */
    font-size: 1.25rem;
}

/* Sidebar Social Icons */
.sidebar-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-left: 1rem;
}

.sidebar-social a {
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.sidebar-social a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Sidebar Register Button */
.btn-sidebar-register {
    margin-top: 1rem;
    background: var(--color-primary);
    color: white !important; /* Force white text */
    text-align: center !important;
    border-radius: 2rem !important;
    padding: 0.75rem 1.5rem !important;
    transition: background 0.3s;
}

.btn-sidebar-register:hover {
    background: var(--color-secondary) !important;
    color: white !important;
    padding-left: 1rem !important; /* No slide for button */
    padding-right: 1rem !important;
}

/* Sidebar Contact */
.sidebar-contact {
    margin-top: auto; /* Push to bottom */
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-contact h3 {
    color: var(--color-bg-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.875rem; /* Standardized from 0.9rem */
}

.contact-item .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    background-color: var(--color-bg-dark);
    overflow: hidden;
}

/* Hero Sponsors */
.hero-sponsors {
    display: flex;
    align-items: center;
    justify-content: center; /* Center them */
    gap: 2rem; /* Increased gap */
    margin-top: 3rem;
    flex-wrap: wrap;
}

.sponsor-badge {
    transition: transform 0.3s ease;
    height: 100px; /* Big Height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-badge img {
    height: 100%; /* Fill badge height */
    width: auto; /* Maintain aspect ratio */
    max-width: 200px; /* Allow much wider logos */
    object-fit: contain;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: all 0.3s;
}

.sponsor-badge:hover img {
    opacity: 1;
    filter: brightness(1) invert(0);
}

@media (max-width: 768px) {
    .hero-sponsors {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .sponsor-badge {
        height: 50px; /* Smaller on mobile */
    }
    
    .sponsor-badge img {
        max-width: 120px;
    }
}



/* Introduction Section */
.intro-text {
    font-size: 1.25rem;
}

.hero-bg, .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out; /* Slow, smooth cross-fade */
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    /* Flat overlay - no gradient */
    background-color: rgba(10, 33, 38, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-text-inv);
    padding: 0 1rem;
}

.hero-date {
    display: inline-block;
    color: var(--color-accent-yellow);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.hero-location {
    color: #ffffff;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.75rem; /* 6xl */
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 20px 13px rgba(0,0,0,0.1));
    text-shadow: 0 4px 12px rgba(0,0,0,0.5); /* Added for readability */
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    color: #ffffff;
    font-size: 1.25rem; /* Standardized from 1.35rem */
    font-weight: 300;
    max-width: 42rem;
    margin: 1.5rem auto 3rem;
}



/* Sections General */
.section {
    padding: 6rem 0; /* py-24 */
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-bg-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    text-align: left;
}

.section-title.light { color: var(--color-text-inv); }

.divider {
    height: 6px;
    width: 64px;
    background-color: var(--color-primary);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.divider.centered { margin: 0 auto; }

/* Grid Layouts */
.grid-2 {
    display: grid;
    gap: 4rem;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grid-pricing {
    display: grid;
    gap: 2rem;
}

/* Gallery Section */
.gallery-item {
    aspect-ratio: 1/1;
    background-color: var(--color-surface-dark); /* Color Correction */
    border-radius: 1rem; /* Standardized Radius 0.75 -> 1rem */
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.gallery-item:hover { opacity: 0.9; }

/* Video Teaser */
.video-section {
    height: 500px;
    background-color: var(--color-surface-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-section:hover .video-bg {
    transform: scale(1.05);
    opacity: 0.6;
}

.video-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: all 0.7s;
}

.video-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem; /* gap-8 */
}

.play-btn {
    width: 7rem; /* h-28 w-28 */
    height: 7rem;
    border-radius: 50%;
    border: 3px solid var(--color-primary); /* Color Correction */
    background: rgba(10, 33, 38, 0.3); /* bg-background-dark/30 */
    backdrop-filter: blur(4px); /* backdrop-blur-sm */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
}

.video-section:hover .play-btn {
    transform: scale(1.1); /* group-hover:scale-110 */
    background: rgba(252, 0, 75, 0.9); /* group-hover:bg-primary/90 */
    border-color: transparent; /* group-hover:border-transparent */
    box-shadow: none;
}

.play-btn span { 
    font-size: 4.5rem; /* text-7xl */
    color: white; 
    margin-left: 0.25rem;
}

.video-text {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em; /* tracking-[0.2em] */
    font-size: 0.875rem; /* text-sm */
    padding-bottom: 0.5rem; /* pb-2 */
    border-bottom: 1px solid var(--color-accent-yellow); /* border-b */
    margin-top: 0;
    text-shadow: none;
}

/* Pricing Cards - Style B (Clean + Action) */
.pricing-card {
    background: white;
    padding: 0;
    border: 1px solid transparent; /* Placeholder for layout stability */
    border-radius: 1rem;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    box-shadow: 0 15px 40px -10px rgba(252, 0, 75, 0.2);
}

.pricing-card.featured:hover {
    box-shadow: 0 25px 50px -10px rgba(252, 0, 75, 0.3);
}

/* Featured Badge */
.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.75rem; /* Standardized from 0.7rem */
    font-weight: 800;
    padding: 0.35rem 1rem;
    border-bottom-left-radius: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

.pricing-body {
    padding: 2.5rem 2.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic; /* Match Image B */
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--color-bg-dark);
}

.pricing-specs {
    margin-bottom: 2rem;
    color: #FFBC0A; /* Use accent yellow for specs to match logic of subtitles */
    font-size: 0.875rem; /* Standardized from 0.9rem */
    line-height: 1.6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-desc {
    font-size: 0.875rem; /* Standardized from 0.95rem */
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Footer Row: Swapped Order (Price Left, Button Right) */
.pricing-footer-row {
    padding: 1.5rem 2.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    /* Flex Direction Note: HTML is Button then Price. 
       We want Price Left, Button Right. So we use reverse or valid swapping. */
    flex-direction: row-reverse; 
}

/* Price */
.price-display-row {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-bg-dark);
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.price-display-row .currency {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    margin-right: 0.1rem;
    font-weight: 700;
}

/* Button */
.btn-pill {
    background-color: #FC004B; /* var(--color-primary) */
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: all 0.3s;
    text-decoration: none;
    /* Shadow from Image B */
    box-shadow: 0 10px 20px -5px rgba(252, 0, 75, 0.4); 
}

.btn-pill:hover {
    background-color: #D6003B;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(252, 0, 75, 0.5);
}

/* FAQ Details */
details {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary:hover { color: var(--color-primary); }

details[open] summary .material-symbols-outlined {
    transform: rotate(180deg);
}

details p {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-accent-yellow);
    color: var(--color-text-inv);
    font-size: 1rem;
}

/* Sponsors Marquee - Infinite Scroll */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    margin-bottom: 4rem;
    padding: 2rem 0;
    position: relative;
    /* Fade mask on sides */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 6rem; /* Increased gap for better separation */
    width: max-content;
    animation: scroll 40s linear infinite; /* Slower scroll for elegance */
    padding-left: 3rem; /* Offset start */
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed fixed height container to let image define size within limits */
    flex-shrink: 0;
}

.sponsor-logo img {
    /* OPTICAL BALANCING */
    height: auto;
    width: auto;
    
    /* Constraint 1: Height Limit for Tall/Square logos (e.g. Forest Service) */
    max-height: 4rem; 
    
    /* Constraint 2: Width Limit for Wide logos (e.g. Nick McLean) */
    max-width: 180px;
    
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    
    /* Optional: Slight Grayscale again if user wants "Professional", 
       but user asked to remove filters. Keeping pure. */
}

.sponsor-logo:hover img {
    transform: scale(1.15);
}

/* Button Outline Dark */
.btn-outline-dark {
    background-color: transparent;
    border: 2px solid var(--color-bg-dark);
    color: var(--color-bg-dark);
    font-weight: 700;
}

/* Specific Logo Size Adjustments for "Small" logos */
.sponsor-logo img[src*="Wenatchee"] {
    max-height: 7rem; /* Increased from 4rem */
    max-width: 220px;
}

.sponsor-logo img[src*="Forest"] {
    max-height: 6rem;
}

.sponsor-logo img[src*="Chelan"] {
    max-height: 5.5rem;
}

.btn-outline-dark:hover {
    background-color: var(--color-bg-dark);
    color: white;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: start;
    }
    
    /* Sticky Testimonial to prevent jumping and stay visible */
    .faq-testimonial {
        position: sticky;
        top: 2rem;
        /* Visual alignment correction to match first FAQ item */
        margin-top: 1rem; 
    }
}

/* Accordion */
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none; /* Remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    text-transform: uppercase;
    transition: color 0.2s;
}

/* Hide default marker */
.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover { color: var(--color-primary); }

/* Animated Icon - using after pseudo element since icon span might be missing */
.faq-question::after {
    content: '+';
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

details[open] .faq-question::after {
    transform: rotate(45deg); /* Turn + to x */
}

.faq-answer {
    /* Transitions controlled by JS, but defaults here */
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* Necessary for height anim */
}

details p {
    margin: 0; /* Removing all margins to prevent height collapse issues */
    padding: 1rem; /* Use padding for spacing */
    border-left: 2px solid var(--color-accent-yellow);
    color: var(--color-text-inv);
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding is included in width/height calculations if needed */
}

/* 
   Removed stray brace here. 
*/

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--color-primary-accent);
    text-decoration: underline;
}

/* Icon Color Override if needed */
.text-primary {
    color: var(--color-primary-accent);
}

.faq-question::-webkit-details-marker {
    display: none; /* Chrome/Safari hide marker */
}

/* Custom Chevron */
.faq-question::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-bg-dark);
    border-right: 2px solid var(--color-bg-dark);
    transform: rotate(135deg); /* Down Arrow */
    transition: transform 0.3s;
}

/* Open State */
details[open] .faq-question {
   
}

details[open] .faq-question::after {
    transform: rotate(-45deg); /* Up Arrow */
}

.faq-answer {
    color: var(--color-text-light);
    line-height: 1.6;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    /* Optional: Slide animation would require JS or max-height hacks. Keeping simple HTML/CSS for now. */
}



/* FAQ on Dark Background */
.bg-dark .section-title {
    color: white !important;
}

.bg-dark .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-dark .faq-question {
    color: white;
}

.bg-dark .faq-question::after {
    border-color: white;
}

.bg-dark .faq-answer {
    color: rgba(255, 255, 255, 0.8);
}

/* Testimonial Card */
.testimonial-card {
    background-size: cover;
    background-position: center;
    border-radius: 1rem; /* Standardized to 1rem */
    height: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
}

.testimonial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 33, 38, 0.95), rgba(10, 33, 38, 0)); /* Color Correction */
    padding: 3rem;
    color: white;
    text-align: left;
}

/* Footer Styling */
.site-footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255,255,255,0.05); /* Subtle top border */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem; /* Standardized small text */
}


.testimonial-quote {
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.testimonial-author {
    font-size: 0.875rem; /* Standardized from 0.9rem */
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-primary);
    font-style: normal;
    letter-spacing: 0.1em;
}

/* Forms */
.form-group { margin-bottom: 1rem; }

input, textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    font-family: inherit;
    font-size: 0.875rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(252, 0, 75, 0.1);
}

/* Footer */
.site-footer {
    background-color: var(--color-surface-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0;
    text-align: center;
    color: var(--color-text-muted);
}

/* Responsive styles moved to end of file */

/* Responsive Breakpoints */
@media (min-width: 768px) {
    /* Restore Desktop Header Sizes */
    :root { --header-height: 140px; }
    .logo img { height: 8rem; }
    
    /* Maps Desktop Layout */
    .maps-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    
    .nav-desktop { display: flex; }
    .btn-register-desktop { display: inline-flex !important; } 
    /* .mobile-menu-btn { display: none; } REMOVED to show menu on desktop */
    
    .hero-title { font-size: 6rem; /* 8xl */ }
    
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-gallery { grid-template-columns: repeat(3, 1fr); }
    .grid-pricing { grid-template-columns: repeat(3, 1fr); }
    
    .sponsors-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 6rem; /* 9xl */ }
    .grid-2 { gap: 6rem; }
}
/* Video Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 33, 38, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 101;
    width: 90%;
    max-width: 1000px;
    background: black;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 102;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(252, 0, 75, 0.8);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}



/* Header & Utilities */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-register-desktop {
    display: none; /* Hidden on mobile by default */
    background-color: #FF0055; /* Vibrant Pink */
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4); /* Glow effect */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-register-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.6);
    background-color: #E6004C;
}

.text-center { text-align: center; }

/* Hero */
.bg-hero-main {
    background-image: url('../images/Gallery/IMG_20260204_092112.jpg');
}

.hero-meta {
    margin-bottom: 2rem;
}

/* Course Preview */
.preview-item {
    position: relative;
}

.preview-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.race-overview-text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.75;
    font-weight: 300;
}

.race-overview-text p {
    margin-bottom: 1.5rem;
}

.text-dark {
    color: var(--color-bg-dark);
}

/* Video Section */
.bg-video-main {
    background-image: url('../images/Gallery/IMG_20260204_092004.jpg');
}

/* Info Section */
.info-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-large {
    font-size: 2rem;
}

/* Race Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Timeline */
.details-list {
    display: flex;
    flex-direction: column;
}

.details-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2rem;
}

.details-item:last-child {
    padding-bottom: 0;
}

.details-dot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
}

.details-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid;
    z-index: 2;
    flex-shrink: 0;
}

.dot-hollow-red { border-color: var(--color-primary); }
.dot-hollow-yellow { border-color: var(--color-accent-yellow); }
.dot-hollow-dark { border-color: var(--color-bg-dark); }

.details-line {
    flex-grow: 1;
    width: 2px;
    background-color: #e5e7eb;
    margin-top: 4px;
    margin-bottom: -24px;
}

.details-item:last-child .details-line {
    display: none;
}

.details-content {
    margin-top: -4px;
}

.details-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.details-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.details-sub {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Race Includes Grid */
.includes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .includes-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.feature-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(252, 0, 75, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-circle .material-symbols-outlined {
    font-size: 1.25rem;
}

.feature-title {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-bg-dark);
    font-size: 1rem;
}

.feature-text {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Maps */
/* Maps */
/* Maps Modern Design */
.maps-section-wrapper {
    background-color: #0f2229; /* Dark Teal from screenshot */
    padding: 4rem 0;
    border-radius: 1rem; /* Optional: if it needs to be contained, or applying to section */
}

/* Apply dark bg to the section if it doesn't have it, or wrapped container */
.section-maps-modern {
    background-color: #0f2229 !important;
    color: white;
}

.maps-header-modern {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
}

.section-title.maps-title {
    color: white;
    /* font-size: 2.5rem; Removed to standardize */
    font-weight: 900;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.maps-desc-modern {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.maps-actions-footer {
    display: flex;
    gap: 1rem;
    margin-top: 4rem;
    justify-content: flex-end;
    align-items: center;
}

/* Glowing Pink Button */
.btn-glow-red {
    background: linear-gradient(to right, #ff2060, #ff0045);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem; /* Pill shape */
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 0, 70, 0.6); /* The Glow */
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-glow-red:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(255, 0, 70, 0.8);
}

/* Outline Button */
.btn-outline-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-outline-modern:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Map Image Container */
.map-container {
    width: 100%;
    /* No border radius in screenshot, appears to blend or be full width */
    position: relative;
    margin-top: 2rem;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    /* In case the image doesn't fill perfectly or to blend */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* Sponsors */
.sponsors-cta {
    margin-top: 4rem;
}

/* Contact */
.grid-align-center {
    align-items: center;
}

.contact-info {
    margin: 2rem 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.contact-email {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* Race Overview Slider */
.race-slider-container {
    position: relative;
    min-height: 500px; /* Adjust based on content */
    padding-bottom: 3rem; /* Space for dots */
}

.race-slides {
    position: relative;
    width: 100%;
}

.race-slide {
    display: none; /* Hide all by default */
    animation: fadeEffect 1s; /* Fade in animation */
}

/* Show active slide */
.race-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0.4}
    to {opacity: 1}
}

.slider-dots {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: #d1d5db; /* gray-300 */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--color-primary);
}

/* Key Information Section */
.key-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .key-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.key-info-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.key-info-logo {
    width: 100%;
    max-width: 400px; /* larger size */
    height: auto;
    display: block;
}

.key-info-content {
    display: flex;
    flex-direction: column;
}

.key-info-title {
    color: var(--color-bg-dark); /* Dark text on white bg section */
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    position: relative;
}

.key-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.key-info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.key-info-icon {
    color: var(--color-primary);
    font-size: 2rem;
    margin-top: 0.25rem;
}

.key-info-item-title {
    color: var(--color-primary); /* Red titles */
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.key-info-text {
    color: var(--color-text-muted);
    font-size: 1rem; /* Verified 1rem */
    line-height: 1.5;
}

/* =========================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================= */

/* Base Animation States */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Scale Hover Effect (Micro-interaction) */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Fix Hover Conflicts with Animation */
/* Ensure hover states override the entrance transform */
.pricing-card.animate-on-scroll.is-visible:hover {
    transform: translateY(-8px);
}

/* Generic Hover Float (Like Pricing) */
.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.15);
}

/* Apply to other cards if they have animate-on-scroll */
.feature-card.animate-on-scroll.is-visible:hover,
.testimonial-card.animate-on-scroll.is-visible:hover,
.gallery-item.animate-on-scroll.is-visible:hover {
    transform: translateY(-8px);
}


/* =========================================
   MAPS SLIDER
   ========================================= */

.map-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.map-slides {
    position: relative;
    width: 100%;
}

.map-slide {
    display: none;
    width: 100%;
}

.map-slide.active {
    display: block;
    animation: fadeEffect 0.5s ease-in-out;
}

.map-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    max-height: 500px;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.map-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.map-dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.map-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.map-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

@keyframes fadeEffect {
    from {opacity: 0.4; transform: scale(0.98);} 
    to {opacity: 1; transform: scale(1);}
}

/* =========================================
   SOCIAL FEED SECTION
   ========================================= */

.social-feed-section {
    background-color: #f8fafc;
}

.social-feed-section .section-title {
    text-align: center;
}

.social-feed-container {
    display: block; /* Use block instead of flex to fix FB width calc */
    width: 100%;
    margin-top: 2rem;
    text-align: center; /* Center the inline-block child */
    padding: 0 10px; /* Small padding prevents edge touching */
}



/* =========================================
   RESULTS PAGE STYLES
   ========================================= */

/* Hero Section */
.results-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 2rem) 1rem 4rem;
    background-color: var(--color-bg-dark);
    overflow: hidden;
}

.results-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Gallery/IMG_20260204_092004.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.results-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 33, 38, 0.8), rgba(10, 33, 38, 0.95));
    z-index: 1;
}

.results-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-text-inv);
}

.results-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-yellow);
}

.results-divider {
    opacity: 0.5;
}

.results-hero-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.results-hero-title .highlight {
    color: var(--color-primary);
}

.results-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .results-hero {
        min-height: 500px;
        padding-top: calc(var(--header-height) + 4rem);
    }
    
    .results-hero-title {
        font-size: 4.5rem;
    }
    
    .results-hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Filters Section */
.results-filters-section {
    background-color: #f8fafb;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 40;
}

.results-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}

.filter-select,
.filter-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--color-text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.filter-select:focus,
.filter-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(252, 0, 75, 0.1);
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.25rem;
    pointer-events: none;
}

.filter-search-input {
    padding-left: 2.5rem;
    background-image: none;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .results-filters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-search {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .results-filters {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .filter-search {
        grid-column: span 1;
    }
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.125rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.filter-tag-remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.filter-tag-remove .material-symbols-outlined {
    font-size: 1rem;
}

/* Results Count */
.results-count {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.results-count .count-value {
    font-weight: 700;
    color: var(--color-bg-dark);
}

/* Podium Section */
/* Results Listing Section */
.results-listing-section {
    padding: 2rem 0 4rem;
    background-color: white;
}

/* Table Styles */
.results-table-wrapper {
    display: block;
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.results-table thead {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.results-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: var(--color-text-light);
    white-space: nowrap;
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.results-table tbody tr:hover {
    background-color: #f9fafb;
}

.results-table tbody tr.top-three {
    background-color: rgba(252, 0, 75, 0.03);
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.sort-btn:hover {
    color: var(--color-primary);
}

.sort-icon {
    font-size: 1rem;
    opacity: 0.5;
}

.col-place {
    width: 80px;
    text-align: center;
}

.col-bib {
    width: 80px;
    color: var(--color-text-muted);
}

.col-name {
    min-width: 200px;
}

.col-category {
    width: 150px;
}

.col-time {
    width: 120px;
    font-weight: 600;
    font-family: monospace;
    font-size: 0.9375rem;
}

.col-gap {
    width: 100px;
    color: var(--color-text-muted);
    font-family: monospace;
}

@media (min-width: 768px) {
    .results-table-wrapper {
        display: block;
    }
}

/* Medals */
.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
}

.medal-1 {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #8b6914;
}

.medal-2 {
    background: linear-gradient(135deg, #e8e8e8, #c0c0c0);
    color: #666;
}

.medal-3 {
    background: linear-gradient(135deg, #e6a65c, #cd7f32);
    color: white;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.category-full-pull {
    background-color: rgba(252, 0, 75, 0.1);
    color: var(--color-primary);
}

.category-taste-test {
    background-color: rgba(255, 188, 10, 0.1);
    color: #b38600;
}

.category-taste-test-jr {
    background-color: rgba(10, 33, 38, 0.1);
    color: var(--color-bg-dark);
}

/* Podium Section */
.results-podium-section {
    padding: 4rem 0;
    background-color: white;
}

.podium-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.podium-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.podium-card:hover {
    transform: translateY(-4px);
}

.podium-card.first {
    order: -1;
    border: 2px solid var(--color-accent-yellow);
}

.podium-card.second {
    border: 2px solid #c0c0c0;
}

.podium-card.third {
    border: 2px solid #cd7f32;
}

.podium-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 900;
}

.podium-card.first .podium-rank {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #8b6914;
}

.podium-card.second .podium-rank {
    background: linear-gradient(135deg, #e8e8e8, #c0c0c0);
    color: #666;
}

.podium-card.third .podium-rank {
    background: linear-gradient(135deg, #e6a65c, #cd7f32);
    color: white;
}

.podium-content {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.podium-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    margin-bottom: 0.5rem;
}

.podium-time {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.podium-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
}

.podium-base {
    height: 6px;
    width: 100%;
}

.podium-card.first .podium-base {
    background: linear-gradient(90deg, #ffd700, #ffb800);
}

.podium-card.second .podium-base {
    background: linear-gradient(90deg, #e8e8e8, #c0c0c0);
}

.podium-card.third .podium-base {
    background: linear-gradient(90deg, #e6a65c, #cd7f32);
}

@media (min-width: 768px) {
    .podium-container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-end;
    }
    
    .podium-card {
        max-width: 280px;
    }
    
    .podium-card.first {
        order: 0;
        transform: scale(1.05);
    }
    
    .podium-card.first:hover {
        transform: scale(1.05) translateY(-4px);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    margin-bottom: 1.5rem;
}

.empty-state-icon .material-symbols-outlined {
    font-size: 4rem;
    color: var(--color-text-muted);
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    margin-bottom: 0.5rem;
}

.empty-state-message {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.results-pagination-section {
    padding: 2rem 0;
    background-color: white;
    border-top: 1px solid #e5e7eb;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.pagination-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--color-text-muted);
}

/* Results Actions */
.results-actions-section {
    padding: 2rem 0 4rem;
    background-color: white;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

.share-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close:hover {
    background-color: #f3f4f6;
    color: var(--color-bg-dark);
}

.share-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.share-option:hover {
    transform: translateY(-2px);
}

.share-option svg {
    width: 32px;
    height: 32px;
}

.share-option span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.share-option.facebook {
    background-color: #1877f220;
    color: #1877f2;
}

.share-option.facebook:hover {
    background-color: #1877f2;
    color: white;
}

.share-option.twitter {
    background-color: #00000015;
    color: #000000;
}

.share-option.twitter:hover {
    background-color: #000000;
    color: white;
}

.share-option.linkedin {
    background-color: #0a66c220;
    color: #0a66c2;
}

.share-option.linkedin:hover {
    background-color: #0a66c2;
    color: white;
}

.share-option.email {
    background-color: #ea433520;
    color: #ea4335;
}

.share-option.email:hover {
    background-color: #ea4335;
    color: white;
}

.share-link-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.share-link-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.share-link-wrapper {
    display: flex;
    gap: 0.5rem;
}

.share-link-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    background-color: #f9fafb;
    color: var(--color-text-main);
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.btn-copy .material-symbols-outlined {
    font-size: 1.25rem;
}

@media (max-width: 480px) {
    .share-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .share-option span {
        display: none;
    }
    
    .share-modal-content {
        padding: 1.5rem;
    }
}
