/* ── SKELETON: Global Nav + Sponsor Carousel ──
   Self-contained styles for the persistent site shell.
   Loaded on every page via skeleton.js.
──────────────────────────────────────────────── */

/* ── HEADER / NAV ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #0a0602;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 16px 20px;
}

.nav-inner .nav-link {
    padding: 0 14px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-inner .nav-link:last-of-type {
    border-right: none;
}

.nav-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--court-wood);
}

.nav-link.active {
    color: var(--court-wood);
}

/* ── SPONSORS CAROUSEL ── */
.sponsors-section {
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    z-index: 99;
    background: #0a0602;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    padding: 8px 0;
}

.sponsors-track-wrapper {
    overflow: hidden;
}

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

.sponsor-slot {
    flex-shrink: 0;
    width: 110px;
    height: 70px;
    margin-right: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.sponsor-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-slot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

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

/* ── MOBILE MENU ── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #0a0602;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.open {
    display: flex;
}

/* ── OUR SPONSORS GRID (injected before footer) ── */
.skeleton-sponsors-section {
    padding: 60px 20px;
    background: #111;
    text-align: center;
}

.sponsor-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: border-color 0.2s;
    min-height: 100px;
}

.sponsor-logo-card:hover {
    border-color: var(--court-wood);
}

.sponsor-logo-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.sponsor-logo-card.sponsor-logo-fill {
    display: grid;
    padding: 0;
    overflow: hidden;
}

.sponsor-logo-card.sponsor-logo-fill img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: fill;
}

.sponsor-logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ── SKELETON RESPONSIVE ── */
@media (max-width: 600px) {
    .nav-secondary {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-inner {
        justify-content: space-between;
    }
}
