/* ============================================================================
   DÜXAR — cinematic dark "red ember" theme layered on top of Tailwind CDN
   Animated aurora · film grain · glow accents · spotlight & tilt cards
   ========================================================================== */

/* ---- Film grain overlay ---------------------------------------------------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---- Animated aurora blobs --------------------------------------------------- */
.aurora {
    position: absolute;
    border-radius: 9999px;
    filter: blur(110px);
    opacity: 0.5;
    pointer-events: none;
    animation: aurora-drift 16s ease-in-out infinite alternate;
}

.aurora-1 {
    top: -15%;
    left: -12%;
    width: 42rem;
    height: 42rem;
    background: radial-gradient(circle at 30% 30%, rgba(255, 45, 63, 0.38), transparent 65%);
}

.aurora-2 {
    bottom: -20%;
    right: -12%;
    width: 46rem;
    height: 46rem;
    background: radial-gradient(circle at 70% 70%, rgba(255, 122, 61, 0.20), transparent 65%);
    animation-delay: -8s;
}

.aurora-3 {
    top: 30%;
    left: 45%;
    width: 30rem;
    height: 30rem;
    background: radial-gradient(circle, rgba(185, 28, 60, 0.22), transparent 70%);
    animation-delay: -4s;
    animation-duration: 22s;
}

.aurora-footer {
    bottom: -40%;
    left: 50%;
    width: 50rem;
    height: 30rem;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 45, 63, 0.20), transparent 70%);
    animation: none;
}

@keyframes aurora-drift {
    from { transform: translate(0, 0) scale(1) rotate(0deg); }
    to   { transform: translate(4rem, -2.5rem) scale(1.2) rotate(8deg); }
}

/* ---- Cards ---------------------------------------------------------------------- */
.neo-card {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    will-change: transform;
}

.neo-card:hover {
    border-color: rgba(255, 45, 63, 0.45);
    box-shadow: 0 16px 60px -16px rgba(255, 45, 63, 0.35);
}

/* ---- Cursor spotlight (JS sets --mx / --my per element) ---------------------------- */
.spot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 45, 63, 0.10), transparent 55%);
}

.spot:hover::after {
    opacity: 1;
}

/* ---- Gradient & glow text ------------------------------------------------------------ */
.grad-text {
    background: linear-gradient(92deg, #ff4d5e 0%, #ff2d3f 45%, #ff9e6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glow-text {
    filter: drop-shadow(0 0 22px rgba(255, 45, 63, 0.45));
}

/* ---- Ghost section numbers -------------------------------------------------------------- */
.ghost-num {
    position: absolute;
    top: -2.5rem;
    left: -0.5rem;
    z-index: -1;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(6rem, 14vw, 11rem);
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
}

/* ---- Marquee ticker --------------------------------------------------------------------- */
.marquee {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 34s linear infinite;
}

@keyframes marquee-scroll {
    to { transform: translateX(-50%); }
}

/* ---- Filter pills -------------------------------------------------------------------------- */
.year-pill,
.status-pill {
    color: rgb(156, 163, 175);
    background: rgba(255, 255, 255, 0.04);
}

.year-pill:hover,
.status-pill:hover {
    color: #fff;
    border-color: rgba(255, 45, 63, 0.5);
}

.year-pill.is-active,
.status-pill.is-active {
    color: #fff;
    background: linear-gradient(92deg, #e11d2e, #ff2d3f);
    border-color: transparent;
    box-shadow: 0 4px 24px -6px rgba(255, 45, 63, 0.5);
}

/* ---- Paper rows -------------------------------------------------------------------------------- */
.paper-card {
    position: relative;
}

.paper-card:hover {
    background: rgba(255, 45, 63, 0.045);
    box-shadow: inset 4px 0 0 0 #ff2d3f;
}

/* ---- Sponsor logos: monochrome until hovered, so any brand fits the theme ------ */
.sponsor-logo {
    filter: grayscale(1) brightness(1.6) opacity(0.65);
    transition: filter 0.35s ease, opacity 0.35s ease;
}

.group:hover .sponsor-logo {
    filter: none;
    opacity: 1;
}

/* ---- Team avatar rings ---------------------------------------------------------------------------- */
.avatar-ring {
    background:
        linear-gradient(#16090d, #16090d) padding-box,
        linear-gradient(135deg, #ff2d3f, #ff9e6b) border-box;
    border: 2px solid transparent;
    color: #fff;
}

/* ---- Scroll-reveal animation ------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Navbar scrolled state ------------------------------------------------------------------------------ */
#navbar.is-scrolled {
    background: rgba(10, 7, 9, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Footer watermark ---------------------------------------------------------------------------------------- */
.watermark {
    font-size: clamp(5rem, 20vw, 18rem);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    letter-spacing: 0.02em;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 45, 63, 0.35);
    border-radius: 9999px;
    border: 2px solid #0a0709;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 45, 63, 0.6);
}

/* ---- Reduced motion: disable decorative animation ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .aurora,
    .marquee-track {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .tilt,
    .neo-card {
        transform: none !important;
    }
}
