/**
 * Public invitation page (/e/{slug}). Depends on global.css.
 */

/* Host / promo bar */
.evt-host-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: linear-gradient(90deg, #0f0f0f 0%, #1c1c2e 100%);
    font-family: 'DM Sans', sans-serif;
}
.evt-host-bar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.evt-host-bar-logo span {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}
.evt-host-bar-tagline {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.evt-host-bar-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 7px 16px;
    background: #fff;
    color: #0f0f0f;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.evt-host-bar-cta:hover {
    background: #e8e8e8;
}
@media (max-width: 600px) {
    .evt-host-bar-tagline { display: none; }
    .evt-host-bar { justify-content: space-between; }
}

/* Host preview bar (/events/{event}/preview) — chrome around the real
   invitation while the host is reviewing it, never shown to guests. */
.evt-preview-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    height: 52px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'DM Sans', sans-serif;
}
.evt-preview-bar-back {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s;
    flex-shrink: 0;
}
.evt-preview-bar-back:hover {
    color: #fff;
}
.evt-preview-bar-name {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
}
.evt-preview-bar-note {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}
.evt-preview-bar-publish {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 7px 16px;
    background: #fff;
    color: #0f0f0f;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.evt-preview-bar-publish:hover {
    background: #e8e8e8;
}
/* Strip under the preview bar while ?palette= recolours the render. */
.evt-preview-palette {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    padding: 9px 20px;
    background: #fef3c7;
    color: #78350f;
    border-bottom: 1px solid #fcd34d;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    text-align: center;
}
.evt-preview-palette-reset {
    color: #78350f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.evt-preview-palette-reset:hover {
    color: #451a03;
}
@media (max-width: 540px) {
    .evt-preview-bar-name,
    .evt-preview-bar-note {
        display: none;
    }
}

.evt-public-hero {
    position: relative;
    margin-bottom: 28px;
}

.evt-public-cover {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--card-shadow, 0 4px 24px rgba(0, 0, 0, 0.1));
    border: 1px solid var(--line, #e0e0e8);
}

.evt-public-inner {
    max-width: 720px;
    margin: 0 auto;
}

.evt-public-page {
    padding: 48px 40px 72px;
}

@media (max-width: 768px) {
    .evt-public-page { padding: 32px 20px 48px; }
}

.evt-session-banner {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(39, 174, 96, 0.1);
    color: var(--green, #27ae60);
}
.evt-session-banner--info {
    background: rgba(30, 71, 187, 0.08);
    color: var(--accent, #1e47bb);
}

.evt-public-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 26px;
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 800;
    color: var(--navy, #1a2a4a);
    margin: 0 0 10px;
}

.evt-public-type {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 5px 12px;
    border-radius: 50px;
    background: transparent;
    background: color-mix(in srgb, var(--accent, #1e47bb) 12%, transparent);
    border: 1px solid rgba(128, 128, 128, 0.25);
    border: 1px solid color-mix(in srgb, var(--accent, #1e47bb) 22%, transparent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent, #1e47bb);
}

.evt-public-desc {
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray-mid, #64748b);
    margin-bottom: 24px;
}

.evt-desc-body {
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray-mid, #64748b);
    margin-bottom: 24px;
    white-space: pre-wrap;
}

.evt-detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 12px;
}

.evt-detail-list--after-cover {
    margin-top: 20px;
}

.evt-detail-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 15px;
    color: var(--navy-muted, #334155);
    background: var(--white, #fff);
    border: 1px solid var(--line, #e0e0e8);
    border-radius: var(--radius-sm, 6px);
    padding: 11px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.evt-detail-list i {
    margin-top: 3px;
    color: var(--accent, #1e47bb);
    width: 18px;
}

/* Google Maps embed + Directions links — shared by every invitation layout's Location
   section and the ticket landing page via events.invitations.partials.map-link. */
.evt-map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    margin: 4px 0 16px;
    border: 1px solid var(--line, #e0e0e8);
    background: var(--gray-light, #f1f5f9);
}

@supports not (aspect-ratio: 1) {
    .evt-map-embed {
        min-height: 113px;
    }
}

.evt-map-embed iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.evt-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.evt-rsvp-banner {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.evt-rsvp-banner--open {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green, #27ae60);
}

.evt-rsvp-banner--closed {
    background: rgba(243, 156, 18, 0.12);
    color: var(--orange, #d68910);
}

.evt-public-url {
    word-break: break-all;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent, #1e47bb);
    text-decoration: none;
}

.evt-public-url:hover {
    text-decoration: underline;
}

/* Lifecycle status pages (ended / unavailable / cancelled / gone) */
.evt-status-page {
    min-height: calc(100vh - 52px);
    min-height: calc(100svh - 52px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: #f7f7fb;
    font-family: 'DM Sans', sans-serif;
}
.evt-status-card {
    width: 100%;
    max-width: 440px;
    text-align: center;
    padding: 40px 32px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8e8f0;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.evt-status-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
}
.evt-status-card--ended .evt-status-icon {
    background: #ecfdf5;
    color: #059669;
}
.evt-status-card--cancelled .evt-status-icon {
    background: #fef2f2;
    color: #dc2626;
}
.evt-status-card--unavailable .evt-status-icon {
    background: #fff7ed;
    color: #ea580c;
}
.evt-status-card--gone .evt-status-icon {
    background: #f1f5f9;
    color: #64748b;
}
/* The logo file is a square canvas with the artwork in a band across the middle, so cover-fitting it
   into a short box crops the empty space above and below without touching the file. */
.evt-status-logo {
    display: block;
    width: 200px;
    height: 56px;
    margin: 0 auto 22px;
    object-fit: cover;
}
.evt-status-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.evt-status-message {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
}
.evt-status-event {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}
.evt-status-date {
    margin: 0 0 24px;
    font-size: 14px;
    color: #94a3b8;
}
.evt-status-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}
.evt-status-home:hover {
    text-decoration: underline;
}



/* Long names and venues (up to 255 characters, possibly one word) must wrap on the status page and the generic public shell. */
.evt-status-page,
.evt-public-inner {
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
}

.evt-detail-list li {
    min-width: 0;
}
