/* ================================================================== */
/*  public/assets/css/portal.css                                       */
/*                                                                     */
/*  Public booking portal — customer-facing layout styles.             */
/*  Consumed only by layouts/portal.html.twig; sibling bundles         */
/*  (dashboard.css, auth.css) own their own chrome.                    */
/*                                                                     */
/*  Design brief:                                                      */
/*    - Dark theme matching SPS platform aesthetic                     */
/*    - Mobile-first single-column hero, no nav, minimal chrome         */
/*    - Inline SPS bolt as the only brand glyph (no icon font)         */
/*    - Three-state hero (coming_soon / paused / live) sharing the    */
/*      same structural skeleton with state-driven accent colour       */
/*    - `portal-body--embed` strips chrome so the hero sits flush      */
/*      inside an iframe                                               */
/* ================================================================== */

/* ── SPS design tokens (portal-scoped copy) ─────────────────────── */
/*    Mirrors the :root tokens in dashboard.css. Duplicated so the   */
/*    portal bundle is self-contained (no cross-bundle dep).         */
:root {
    --sps-main-bg:          #0f1623;
    --sps-surface-1:        #141d2e;
    --sps-surface-2:        #1b2638;
    --sps-border:           rgba(148,163,184,0.14);
    --sps-text-primary:     #e2e8f0;
    --sps-text-secondary:   #94a3b8;
    --sps-text-muted:       #64748b;
    --sps-accent:           #388bfd;
    --sps-accent-hover:     #2d77e0;
    --sps-accent-dim:       rgba(56,139,253,0.12);
    --sps-accent-glow-soft:  rgba(56,139,253,0.55);
    --sps-accent-glow-strong:rgba(56,139,253,0.95);
    --sps-success:          #2ecc71;
    --sps-warning:          #f5a524;
    --sps-danger:           #f85149;
}

/* ── Base ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

.portal-body {
    min-height: 100vh;
    background: var(--sps-main-bg);
    color: var(--sps-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

a {
    color: var(--sps-accent);
    text-decoration: none;
}

a:hover {
    color: var(--sps-accent-hover);
    text-decoration: underline;
}

/* ── Header ─────────────────────────────────────────────────────── */
.portal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--sps-border);
    background: var(--sps-main-bg);
}

.portal-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sps-text-primary);
    text-decoration: none;
}

.portal-header__brand:hover {
    text-decoration: none;
    color: var(--sps-text-primary);
}

.portal-header__bolt {
    width: 22px;
    height: 22px;
    color: var(--sps-accent);
}

.portal-header__wordmark {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

/* ── Main ───────────────────────────────────────────────────────── */
.portal-main {
    flex: 1;
    padding: 48px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Hero card ──────────────────────────────────────────────────── */
.portal-hero {
    width: 100%;
    max-width: 540px;
}

.portal-hero__card {
    background: var(--sps-surface-1);
    border: 1px solid var(--sps-border);
    border-radius: 18px;
    padding: 40px 28px 36px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.portal-hero__bolt-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: var(--sps-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sps-accent);
}

.portal-hero__bolt {
    width: 38px;
    height: 38px;
}

.portal-hero__bolt--muted {
    color: var(--sps-text-muted);
}

.portal-hero__state-pill {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--sps-accent-dim);
    color: var(--sps-accent);
}

.portal-hero__state-pill--paused {
    background: rgba(245,165,36,0.14);
    color: var(--sps-warning);
}

.portal-hero__state-pill--live {
    background: rgba(46,204,113,0.14);
    color: var(--sps-success);
}

.portal-hero__title {
    margin: 0 0 6px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.portal-hero__location {
    margin: 0 0 18px;
    color: var(--sps-text-secondary);
    font-size: 0.95rem;
}

.portal-hero__lede {
    margin: 0 auto 26px;
    color: var(--sps-text-secondary);
    max-width: 420px;
    font-size: 1rem;
    line-height: 1.55;
}

.portal-hero__contact-line {
    margin: 20px 0 0;
    color: var(--sps-text-muted);
    font-size: 0.9rem;
}

/* ── CTA buttons ────────────────────────────────────────────────── */
.portal-hero__cta {
    display: inline-block;
    min-width: 220px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    text-decoration: none;
}

.portal-hero__cta--primary {
    background: var(--sps-accent);
    color: #ffffff;
    border-color: var(--sps-accent);
}

.portal-hero__cta--primary:hover {
    background: var(--sps-accent-hover);
    color: #ffffff;
    text-decoration: none;
}

.portal-hero__cta--secondary {
    background: transparent;
    color: var(--sps-text-primary);
    border-color: var(--sps-border);
}

.portal-hero__cta--secondary:hover {
    background: var(--sps-surface-2);
    text-decoration: none;
}

.portal-hero__cta:active {
    transform: translateY(1px);
}

.portal-hero__cta-note {
    margin: 14px auto 0;
    max-width: 360px;
    color: var(--sps-text-muted);
    font-size: 0.88rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.portal-footer {
    padding: 20px 20px 28px;
    text-align: center;
    color: var(--sps-text-muted);
}

.portal-footer__legal {
    font-size: 0.82rem;
}

.portal-footer__link {
    color: var(--sps-text-secondary);
}

.portal-footer__link:hover {
    color: var(--sps-text-primary);
}

/* ── Embed mode ─────────────────────────────────────────────────── */
/*  When the portal renders inside an iframe, strip the header and    */
/*  footer so the hero sits flush against the host page's layout.     */
.portal-body--embed .portal-header,
.portal-body--embed .portal-footer {
    display: none;
}

.portal-body--embed .portal-main {
    padding: 20px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
/*  On phones we drop the header + footer entirely so the booking form */
/*  gets the full viewport. Applies to every tenant, white-label or    */
/*  not — pure goodwill for screen space.                              */
@media (max-width: 719px) {
    .portal-header,
    .portal-footer {
        display: none;
    }
}

@media (min-width: 720px) {
    .portal-hero__title {
        font-size: 2.1rem;
    }
    .portal-hero__card {
        padding: 48px 40px 44px;
    }
}

/* Utility (keeps .d-none semantics consistent across layouts — the   */
/* page-loader component's hide flow adds this class when detaching). */
.d-none {
    display: none !important;
}

/* ── Demo mode: persistent banner + one-time opening modal ────────── */
/*    Rendered only for is_demo locations (marketing demo funnel).     */
/*    Banner is always visible; modal is revealed once per session by  */
/*    portal.js and dismissed via the acknowledge button.             */
.portal-demo-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 16px;
    max-width: 560px;
    padding: 10px 16px;
    border: 1px solid var(--sps-warning);
    border-radius: 10px;
    background: rgba(245, 165, 36, 0.10);
    color: var(--sps-text-primary);
    font-size: 0.85rem;
    line-height: 1.4;
}
.portal-demo-banner__dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--sps-warning);
    box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.18);
}
.portal-demo-banner__text {
    flex: 1 1 auto;
}

.portal-demo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.portal-demo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 18, 0.72);
    backdrop-filter: blur(2px);
}
.portal-demo-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 28px 26px 24px;
    border: 1px solid var(--sps-border);
    border-radius: 16px;
    background: var(--sps-surface-1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
}
.portal-demo-modal__title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    color: var(--sps-text-primary);
}
.portal-demo-modal__body {
    margin: 0 0 22px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--sps-text-secondary);
}
