/* ==========================================
   SHARED NAVIGATION, TICKER & MOBILE MENU
   Included on all pages
   ========================================== */

/* @font-face declarations live in base.css (single source) */

/* ---- Announcement Ticker ---- */
.ticker-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--tm-ticker-height) + env(safe-area-inset-top, 0px));
    background: var(--dark);
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
}

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

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0 3rem;
    font-family: var(--tech);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
}

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

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .ticker-item:not(:first-of-type) {
        display: none;
    }
}

@media (max-width: 768px) {
    .ticker-item {
        font-size: 0.6rem;
        padding: 0 2rem;
    }
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: calc(var(--tm-ticker-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 44, 0.2);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.nav-logo img {
    height: 52px;
    width: auto;
}

/* Hide hamburger on desktop */
.nav-menu-btn {
    display: none;
}

/* Show hamburger at same breakpoint where nav-links are hidden */
@media (max-width: 1024px) {
    .nav-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        background: transparent;
        border: none;
        color: var(--white);
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }

    .nav-menu-btn .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 24px;
    }

    .nav-menu-btn .hamburger span {
        width: 100%;
        height: 2px;
        background: var(--white);
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    .nav-menu-btn.active .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-menu-btn.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .nav-menu-btn.active .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ---- Full-screen Mobile Menu ---- */
.mobile-menu {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background: var(--black);
        padding:
            calc(100px + env(safe-area-inset-top, 0px))
            calc(1.5rem + env(safe-area-inset-right, 0px))
            calc(2rem + env(safe-area-inset-bottom, 0px))
            calc(1.5rem + env(safe-area-inset-left, 0px));
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        overflow-y: auto;
    }

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

    /* Move nav to top when mobile menu is open */
    .nav.menu-open {
        top: env(safe-area-inset-top, 0px);
    }

    /* Hide ticker when mobile menu is open */
    .ticker-bar.menu-hidden {
        display: none;
    }

    /* Hide tickets when mobile menu is open */
    .nav.menu-open .btn-tickets {
        display: none;
    }

    /* Show city name next to pin when menu is open */
    .nav.menu-open .location-btn {
        display: flex;
    }

    .nav.menu-open .location-btn #locationText {
        display: inline !important;
    }

    .mobile-menu-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-menu-links a {
        display: block;
        padding: 1.1rem 0;
        color: var(--white);
        text-decoration: none;
        font-family: var(--tech);
        font-size: 1rem;
        font-weight: 400;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        transition: color 0.2s ease;
    }

    .mobile-menu-links a:hover,
    .mobile-menu-links a:active {
        color: var(--orange);
    }

    .mobile-menu-socials {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        padding-top: 2rem;
    }

    .mobile-menu-socials a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: var(--white);
        transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    }

    .mobile-menu-socials a:hover {
        border-color: var(--orange);
        color: var(--orange);
        transform: translateY(-2px);
    }

    .mobile-menu-socials svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-cta {
        padding-top: 1.5rem;
    }

    .mobile-menu-cta a {
        display: block;
        width: 100%;
        padding: 1rem;
        background: var(--gradient-primary);
        color: var(--white);
        text-align: center;
        text-decoration: none;
        font-family: var(--tech);
        font-size: 0.85rem;
        font-weight: 400;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        border-radius: 100px;
        box-shadow: 0 4px 20px rgba(239, 75, 35, 0.4);
    }
}

/* ---- Desktop Nav Links ---- */
.nav-center {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
    flex: 2;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white-soft, #E5E5E5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--orange);
    text-shadow: 0 0 10px rgba(249, 164, 26, 0.4);
}

.nav-links a.active {
    color: var(--orange);
}

/* ---- Nav Right (Location + Tickets) ---- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
    flex: 1;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.location-btn:hover {
    transform: translateY(-2px);
}

.location-btn svg {
    width: 16px;
    height: 16px;
    color: var(--orange);
    transition: filter 0.3s ease;
}

.location-btn:hover svg:first-of-type {
    filter: drop-shadow(0 4px 12px rgba(239, 75, 35, 0.5));
}

/* ---- Full-screen Location Overlay ---- */
.location-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    background: var(--dark);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding:
        calc(52px + env(safe-area-inset-top, 0px))
        calc(4rem + env(safe-area-inset-right, 0px))
        calc(2rem + env(safe-area-inset-bottom, 0px))
        calc(4rem + env(safe-area-inset-left, 0px));
    overflow-y: auto;
}

.location-dropdown.open {
    display: flex;
}

/* Location overlay header (logo + close) */
.location-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.5rem;
}

.location-dropdown a.location-dropdown-logo {
    display: none;
    padding: 0;
    border-radius: 0;
}

.location-dropdown-logo img {
    height: 36px;
    width: auto;
}

@media (max-width: 768px) {
    .location-dropdown a.location-dropdown-logo {
        display: block;
    }
}

.location-dropdown-close {
    position: absolute;
    top: calc(52px + env(safe-area-inset-top, 0px));
    right: calc(2rem + env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--gray);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-size: 1.1rem;
    line-height: 1;
}

.location-dropdown-close:hover {
    background: rgba(255, 107, 44, 0.2);
    border-color: rgba(255, 107, 44, 0.4);
    color: var(--white);
}


/* Overlay body: two-column on desktop */
.location-overlay-body {
    display: flex;
    gap: 4rem;
    width: 100%;
    align-items: flex-start;
}

.location-overlay-left {
    flex: 0 0 auto;
    width: 360px;
}

.location-overlay-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
}

.location-overlay-right {
    flex: 1;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Map square */
.location-map {
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: none;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(0.7) contrast(1.1);
}

.location-info-content {
    flex: 1;
    min-width: 0;
}

/* Page title — sits above the two-column body */
.location-dropdown-title {
    font-family: var(--tech);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* ---- Location Info Panel ---- */
.location-info-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
    color: var(--gray);
}

.location-info-empty svg {
    opacity: 0.3;
}

.location-info-empty p {
    font-family: var(--body);
    font-size: 0.85rem;
    margin: 0;
}

.location-info-name {
    font-family: var(--body);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.location-info-address,
.location-info-phone {
    font-family: var(--body);
    font-size: 0.9rem;
    color: var(--white-soft, #ccc);
    line-height: 1.6;
}

.location-dropdown a.location-info-address {
    display: block;
    padding: 0;
    text-decoration: none;
    color: var(--white-soft, #ccc);
    transition: color 0.2s;
    border-radius: 0;
    background: none;
}

.location-dropdown a.location-info-address:hover {
    color: var(--cyan, #00e5ff);
    background: none;
}

.location-dropdown a.location-info-address::after {
    content: 'Get Directions \2197';
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--cyan, #00e5ff);
    opacity: 0.8;
}

/* Coming Soon locations — visually de-emphasized, link to sign-up landing page */
.location-dropdown a.location-coming-soon {
    color: var(--gray, #999);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
}

.location-dropdown a.location-coming-soon .coming-soon-tag {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 107, 44, 0.15);
    color: var(--orange, #ff6b2c);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    white-space: nowrap;
}

.location-dropdown a.location-info-address:hover::after {
    opacity: 1;
}

.location-info-phone {
    margin-top: 0.4rem;
    color: var(--cyan, #00e5ff);
}

.location-info-section {
    margin-top: 1.25rem;
}

.location-info-section h4 {
    font-family: var(--tech);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 0.5rem;
}

.location-info-hours {
    font-family: var(--body);
    font-size: 0.85rem;
    color: var(--white-soft, #ccc);
    line-height: 1.7;
}

.location-info-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.location-dropdown a.location-info-book {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    font-family: 'Monument Extended', 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(239, 75, 35, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-dropdown a.location-info-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(199, 69, 30, 0.6);
    background: var(--gradient-primary);
    color: var(--white);
}

.location-dropdown a.location-info-contact {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-family: 'Monument Extended', 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.location-dropdown a.location-info-contact:hover {
    transform: translateY(-2px);
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 107, 44, 0.08);
}

.location-dropdown .location-info-page {
    display: inline-flex;
    margin-top: 0.85rem;
    font-family: var(--body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--cyan, #00e5ff);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.location-dropdown .location-info-page:hover {
    text-decoration: underline;
    opacity: 0.95;
}

/* Location overlay footer */
.location-overlay-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.location-overlay-social {
    display: flex;
    gap: 1rem;
}

.location-dropdown .location-overlay-social a {
    color: var(--gray);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.location-overlay-social a:hover {
    color: var(--orange);
    transform: translateY(-2px);
}

.location-overlay-copyright {
    font-family: var(--body);
    font-size: 0.7rem;
    color: var(--gray);
    margin: 0;
}

@media (max-width: 768px) {
    .location-overlay-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

.location-group {
    padding: 0.25rem 0;
    width: 100%;
}

.location-group-title {
    font-family: var(--tech);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    padding: 0.5rem 0;
}

.location-dropdown a {
    display: block;
    padding: 0.65rem 0.75rem;
    color: var(--white-soft);
    text-decoration: none;
    font-family: var(--body);
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.location-dropdown a:hover {
    background: rgba(255, 107, 44, 0.1);
    color: var(--white);
}

.location-dropdown a.active {
    background: rgba(255, 107, 44, 0.18);
    color: var(--orange);
    font-weight: 600;
}


/* ---- Tablet Location Overlay ---- */
@media (max-width: 1024px) {
    .location-overlay-body {
        flex-direction: column;
        gap: 2rem;
    }

    .location-overlay-left {
        width: 100%;
        max-width: 100%;
    }

    .location-overlay-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
    }

    .location-overlay-right {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .location-map {
        flex: 0 0 200px;
        width: 200px;
        height: 200px;
    }
}

/* ---- Mobile Location Overlay ---- */
@media (max-width: 768px) {
    .location-dropdown {
        z-index: 10001;
        padding:
            calc(2rem + env(safe-area-inset-top, 0px))
            calc(1.25rem + env(safe-area-inset-right, 0px))
            calc(2rem + env(safe-area-inset-bottom, 0px))
            calc(1.25rem + env(safe-area-inset-left, 0px));
        align-items: flex-start;
    }

    .location-dropdown-close {
        position: static;
        margin-left: auto;
    }

    .location-overlay-left .location-group a {
        font-size: 0.95rem;
        padding: 0.85rem 1.25rem;
        margin: 0 -1.25rem;
        border-radius: 0;
        display: block;
    }

    /* Coming Soon links stack on their own line on mobile */
    .location-dropdown a.location-coming-soon {
        display: flex;
        justify-content: flex-start;
    }

    /* Hide nav items when location overlay is open (keep logo visible) */
    .nav.location-open .btn-tickets,
    .nav.location-open .location-btn,
    .nav.location-open .nav-menu-btn {
        display: none;
    }

    .location-overlay-left {
        max-width: 100%;
    }

    /*
     * Keep list + venue details discoverable on small screens:
     * stack the divider and info column under the picker (do not collapse them).
     */
    #locationInfo {
        scroll-margin-top: 0.75rem;
    }

    .location-overlay-divider {
        display: block;
    }

    .location-overlay-right {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }

    .location-map:not(:empty) {
        width: min(280px, 100%);
        height: 180px;
        flex: 0 0 auto;
        align-self: center;
        margin-inline: auto;
    }

    .location-info-actions {
        flex-wrap: wrap;
        row-gap: 0.65rem;
    }
}

.btn-tickets {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-family: 'Monument Extended', 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(239, 75, 35, 0.4);
}

.btn-tickets:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(199, 69, 30, 0.6);
}

/* ---- Mobile Nav Overrides ---- */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    /* Icon only on tablet — hide text and chevron */
    .location-btn #locationText,
    .location-btn svg:last-of-type {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-left {
        gap: 0.75rem;
    }

    .nav-logo img {
        height: 36px;
        min-width: 100px;
    }

    .nav-right {
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .nav-center {
        display: none;
    }

    .location-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
    }

    .location-btn svg:first-of-type {
        width: 20px;
        height: 20px;
    }


    /* Compact tickets button — min touch target */
    .btn-tickets {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* ---- Keyboard focus (visible only for keyboard / AT) ---- */
.nav-menu-btn:focus-visible,
.location-btn:focus-visible,
.location-dropdown-close:focus-visible,
.nav-links a:focus-visible,
.btn-tickets:focus-visible,
.mobile-menu-links a:focus-visible,
.mobile-menu-socials a:focus-visible,
.mobile-menu-cta a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .location-btn:hover,
    .btn-tickets:hover,
    .mobile-menu-socials a:hover,
    .location-dropdown a.location-info-book:hover,
    .location-dropdown a.location-info-contact:hover,
    .location-overlay-social a:hover {
        transform: none;
    }
}
