/* ──────────────────────────────────────────────────────────────────────────
   MAIN MENU THEME
   Shared by every inner page (crew, episodes, tickets, sponsors, dashboard)
   so they match the bubble hub at "/": the dark blue backdrop with outlined
   rings and drifting logos, a glass top bar, and the menu's footer with its
   mini-bubble icons. Each page keeps its own content styles inline and links
   this file right after them.
   ────────────────────────────────────────────────────────────────────────── */

html { background: #0a1233; }
body { background: transparent; }

/* ── BACKDROP ─────────────────────────────────────────────────────────────── */
.page-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(69, 96, 208, 0.38), rgba(69, 96, 208, 0) 72%),
        linear-gradient(160deg, #1a2c78 0%, #111e55 55%, #0a1233 100%);
}

/* outlined circles, same motif as the menu */
.decor-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.10);
}
.decor-ring.r1 { width: 380px; height: 380px; top: -130px; left: -120px; }
.decor-ring.r2 { width: 260px; height: 260px; bottom: -80px; right: -60px; border-color: rgba(255, 255, 255, 0.13); }
.decor-ring.r3 { width: 86px;  height: 86px;  top: 14%; right: 8%; border-color: rgba(255, 255, 255, 0.16); }
.decor-ring.r4 { width: 120px; height: 120px; bottom: 12%; left: 6%; }

/* logos drifting around behind the content */
.decor-float {
    position: absolute;
    opacity: 0.08;
    user-select: none;
    animation: decorDrift linear infinite;
    will-change: transform;
}
@keyframes decorDrift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(18px, -24px) rotate(6deg); }
    50%  { transform: translate(-14px, -38px) rotate(-5deg); }
    75%  { transform: translate(-22px, -16px) rotate(4deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.decor-float.f1 { top: 16%; left: 7%;  width: 120px; animation-duration: 13s; }
.decor-float.f2 { top: 62%; right: 9%; width: 150px; animation-duration: 17s; animation-delay: -4s; opacity: 0.06; }
.decor-float.f3 { top: 84%; left: 30%; width: 90px;  animation-duration: 19s; animation-delay: -7s; }

/* ── TOP BAR ──────────────────────────────────────────────────────────────── */
.topbar {
    position: relative;
    z-index: 10;
    background: rgba(8, 12, 32, 0.32);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    min-width: 0;
}

/* the logo as a mini bubble */
.brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    overflow: hidden;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
    font-family: 'Caveat Brush', 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.topbar-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.15s;
    white-space: nowrap;
}
button.topbar-link { cursor: pointer; background: none; border: none; }
.topbar-link:hover { color: var(--white); }
.topbar-link.active { color: var(--white); font-weight: 600; }

/* which main-menu section this page belongs to */
.topbar-section {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 6px 11px;
    white-space: nowrap;
}

/* back to the bubble hub — a mini version of the menu's white pearl */
.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-ink);
    background: radial-gradient(circle at 30% 25%, #ffffff 0%, var(--paper) 50%, #dfe5f8 100%);
    border: 2px solid var(--blue);
    border-radius: 999px;
    padding: 7px 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(255, 255, 255, 0.14), 0 10px 26px rgba(0, 0, 0, 0.4);
}
.menu-btn:active { transform: scale(0.98); }
.menu-btn svg { width: 13px; height: 13px; fill: currentColor; }

/* ── FOOTER — same as the menu's ──────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(8, 12, 32, 0.28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 32px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.footer-right { display: flex; align-items: center; gap: 20px; }

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s;
}
.footer a:hover { color: var(--white); }

/* each icon sits in a mini bubble */
.footer a svg {
    width: 28px;
    height: 28px;
    padding: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 60%);
    transition: border-color 0.15s, transform 0.15s;
}
.footer a:hover svg { border-color: var(--white); transform: scale(1.08); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .topbar { padding: 0 18px; height: 60px; }
    .topbar-right { gap: 16px; }
    .brand-name { font-size: 22px; }
    .brand-mark { width: 36px; height: 36px; }

    /* footer keeps one row with icon-only bubbles (labels stay readable to
       screen readers) */
    .footer { padding-left: 20px; padding-right: 20px; }
    .footer-right { gap: 10px; }
    .footer-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .footer a svg { width: 34px; height: 34px; padding: 9px; }
}

/* phones: the top bar stacks into two rows */
@media (max-width: 560px) {
    .topbar {
        flex-direction: column;
        height: auto;
        padding: 12px 14px;
        gap: 11px;
    }
    .topbar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 9px 14px;
    }
    .brand-name { font-size: 20px; }
    .brand-mark { width: 34px; height: 34px; }
    .topbar-link { font-size: 10px; }

    .decor-ring.r1 { width: 240px; height: 240px; top: -90px; left: -90px; }
    .decor-ring.r2 { width: 180px; height: 180px; }

    .footer { padding: 12px 14px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .decor-float { animation: none; }
}
