/* Empire Event Center - PWA/mobile refinements */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

.offline-banner {
    position: sticky;
    top: 72px;
    z-index: 1040;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #78350f;
    background: #fef3c7;
    border-bottom: 1px solid #fcd34d;
}

.pwa-install-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
    color: #fff;
    background: rgba(255,255,255,.10);
}

.pwa-install-button:hover {
    color: #fff;
    background: rgba(255,255,255,.17);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 12px;
        padding: 14px;
        border-radius: 16px;
        background: rgba(7,17,31,.98);
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .nav-link,
    .nav-register {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 14px !important;
        border-radius: 12px;
    }

    .hero {
        padding-top: 64px !important;
        padding-bottom: 58px !important;
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 56px) !important;
        line-height: 1.05 !important;
    }

    .hero p {
        font-size: 16px !important;
    }

    .hero-actions > * {
        flex: 1 1 220px;
        text-align: center;
    }

    .stat-strip {
        margin-top: -22px !important;
    }

    .calendar-panel {
        overflow: hidden;
    }

    .fc {
        font-size: 14px;
    }

    .fc .fc-toolbar {
        align-items: stretch;
        gap: 10px;
    }

    .fc .fc-toolbar-title {
        font-size: 20px !important;
    }

    .fc .fc-button {
        min-height: 42px;
        padding: .5em .7em;
    }

    .booking-cta .btn-gold {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar-brand {
        font-size: 15px;
    }

    .brand-mark {
        width: 36px !important;
        height: 36px !important;
    }

    .section-heading p,
    .hero p {
        line-height: 1.6;
    }

    .calendar-shell {
        margin-left: -6px;
        margin-right: -6px;
    }

    .calendar-panel {
        min-height: 610px !important;
        padding: 10px !important;
    }

    .fc .fc-header-toolbar {
        margin-bottom: 1em;
    }

    .fc .fc-toolbar {
        display: flex;
        flex-direction: column;
    }

    .fc .fc-toolbar-chunk {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .fc .fc-button-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fc .fc-daygrid-day-number {
        padding: 5px;
        font-size: 12px;
    }

    .fc .fc-daygrid-event {
        font-size: 11px;
        white-space: normal;
    }

    .event-card-body {
        padding: 18px !important;
    }

    .footer {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
    }

    .navbar {
        padding-top: max(.5rem, env(safe-area-inset-top));
    }
}


/* Install prompt / mobile Add-to-Home-Screen card */
.empire-install-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 1090;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.empire-install-panel[hidden] {
    display: none !important;
}

.empire-install-card {
    position: relative;
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 52px 16px 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: #07111f;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
    pointer-events: auto;
}

.empire-install-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #312e81;
    border: 2px solid #fbbf24;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
}

.empire-install-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.empire-install-copy strong {
    font-size: 15px;
}

.empire-install-copy span {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
}

.empire-install-now {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fbbf24;
    color: #111827;
    font-weight: 900;
}

.empire-install-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #cbd5e1;
    font-size: 25px;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .empire-install-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .empire-install-now {
        grid-column: 1 / -1;
        width: 100%;
    }
}
