/* ═══════════════════════════════════════
   FOOTER v3.0 — Premium, LNB.fr-inspired
   Dark default + light theme
   Design System tokens used throughout
   ═══════════════════════════════════════ */

/* ── Base ── */
.site-footer {
    background: var(--bg-1, #111111);
    color: var(--t3, rgba(255,255,255,.4));
    font-family: var(--font, 'Plus Jakarta Sans', sans-serif);
}

/* ── Shared container ── */
.footer-container {
    max-width: var(--max-content, 1280px);
    margin: 0 auto;
    padding-left: var(--space-xl, 20px);
    padding-right: var(--space-xl, 20px);
}

/* ═══════════════════════════════════════
   FOOTER TOP — Logo + Tagline + Social
   ═══════════════════════════════════════ */
.footer-top {
    border-bottom: 1px solid var(--brd, rgba(255,255,255,.06));
    padding: var(--space-3xl, 32px) 0;
}
.footer-top .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl, 20px);
    flex-wrap: wrap;
}

/* Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm, 8px);
}
.footer-logo-link {
    display: inline-flex;
    align-items: center;
}
.footer-logo {
    height: 36px;
    width: auto;
}
.footer-logo-light { display: none; }
.footer-logo-dark  { display: block; }

.footer-tagline {
    font-size: .8rem;
    color: var(--t3, rgba(255,255,255,.5));
    margin: 0;
    line-height: 1.4;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: var(--space-sm, 8px);
}
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-3, rgba(255,255,255,.06));
    color: var(--t3, rgba(255,255,255,.4));
    transition: background .2s, color .2s, transform .2s;
}
.footer-social-link:hover {
    background: var(--accent, #BFF932);
    color: var(--bg-0, #0a0a0a);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   FOOTER NAV — Link Grid
   ═══════════════════════════════════════ */
.footer-nav {
    padding: var(--space-4xl, 48px) 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3xl, 32px);
}

/* Column titles */
.footer-col-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--t2, rgba(255,255,255,.6));
    margin: 0 0 var(--space-lg, 16px);
    padding-bottom: var(--space-sm, 8px);
    border-bottom: 1px solid var(--brd, rgba(255,255,255,.06));
}

/* Links */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin: 0;
}
.footer-links a {
    display: block;
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    padding: 5px 0;
    transition: color .15s;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--accent, #BFF932);
}

/* Sports: two-column */
.footer-links--sports {
    columns: 2;
    column-gap: var(--space-lg, 16px);
}

/* ═══════════════════════════════════════
   LEAGUE LOGOS CAROUSEL
   Pure CSS infinite scroll animation
   ═══════════════════════════════════════ */
.footer-carousel {
    border-top: 1px solid var(--brd, rgba(255,255,255,.06));
    padding: var(--space-2xl, 24px) 0 var(--space-xl, 20px);
    overflow: hidden;
}
.footer-carousel-label {
    display: block;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--t4, rgba(255,255,255,.25));
    margin-bottom: var(--space-lg, 16px);
}
.footer-carousel-track-wrapper {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.footer-carousel-track {
    display: flex;
    gap: var(--space-2xl, 24px);
    width: max-content;
    animation: footerCarouselScroll 60s linear infinite;
}
.footer-carousel-track:hover {
    animation-play-state: paused;
}
.footer-carousel-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm, 6px);
    background: var(--bg-3, rgba(255,255,255,.06));
    padding: 6px;
    transition: background .2s, transform .2s;
}
.footer-carousel-item:hover {
    background: var(--bg-4, rgba(255,255,255,.1));
    transform: scale(1.1);
}
.footer-carousel-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(1);
    transition: filter .2s;
}

@keyframes footerCarouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   COPYRIGHT BAR
   ═══════════════════════════════════════ */
.footer-bottom {
    border-top: 1px solid var(--brd, rgba(255,255,255,.06));
    padding: var(--space-lg, 16px) 0;
}
.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg, 16px);
    flex-wrap: wrap;
}
.footer-copy {
    font-size: .72rem;
    color: rgba(255,255,255,.4);
}
.footer-bottom-links {
    display: flex;
    gap: var(--space-lg, 16px);
}
.footer-bottom-links a {
    font-size: .72rem;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    transition: color .15s;
}
.footer-bottom-links a:hover {
    color: var(--t2, rgba(255,255,255,.6));
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .footer-top .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl, 24px);
    }
    .footer-links--sports {
        columns: 2;
    }
    .footer-bottom .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════ */

[data-theme="light"] .site-footer {
    background: #f5f5f7;
    color: rgba(0,0,0,.4);
}

/* Top */
[data-theme="light"] .footer-top {
    border-bottom-color: rgba(0,0,0,.06);
}
[data-theme="light"] .footer-logo-light { display: block; }
[data-theme="light"] .footer-logo-dark  { display: none; }
[data-theme="light"] .footer-tagline {
    color: rgba(0,0,0,.35);
}

/* Social */
[data-theme="light"] .footer-social-link {
    background: rgba(0,0,0,.05);
    color: rgba(0,0,0,.4);
}
[data-theme="light"] .footer-social-link:hover {
    background: #854DFF;
    color: #fff;
}

/* Nav */
[data-theme="light"] .footer-col-title {
    color: rgba(0,0,0,.5);
    border-bottom-color: rgba(0,0,0,.08);
}
[data-theme="light"] .footer-links a {
    color: rgba(0,0,0,.45);
}
[data-theme="light"] .footer-links a:hover {
    color: #854DFF;
}

/* Carousel */
[data-theme="light"] .footer-carousel {
    border-top-color: rgba(0,0,0,.06);
}
[data-theme="light"] .footer-carousel-label {
    color: rgba(0,0,0,.3);
}
[data-theme="light"] .footer-carousel-track-wrapper {
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
[data-theme="light"] .footer-carousel-item {
    background: rgba(0,0,0,.04);
}
[data-theme="light"] .footer-carousel-item:hover {
    background: rgba(0,0,0,.08);
}

/* Bottom */
[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0,0,0,.06);
}
[data-theme="light"] .footer-copy {
    color: rgba(0,0,0,.3);
}
[data-theme="light"] .footer-bottom-links a {
    color: rgba(0,0,0,.3);
}
[data-theme="light"] .footer-bottom-links a:hover {
    color: rgba(0,0,0,.6);
}
