/* ============================================================
   welcome-onboarding.css
   Post-login welcome flow: one-time beta-tester greeting shown on
   first login. Covers WelcomeOnboarding.razor.

   wl- prefix: the new split-panel/single-column shell (steps live
   inside a full-bleed layout whose accent color changes per step).
   wc- prefix: reused leaf-level pieces whose layout context didn't
   change (loading/error fallback card, benefit-list mustard items,
   nav buttons, CTA actions).
   ============================================================ */

/* ── Fallback shell (loading / error states only) ──────────── */
.wc-shell-container {
    max-width: 100vw !important;
    width: 100%;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1.5rem !important;
    background-color: var(--antologa-white);
}

.wc-card {
    width: 100%;
    max-width: 34rem;
    padding: 2.5rem;
    border-radius: 1rem;
    background-color: var(--antologa-pure-white);
    border: 1px solid var(--antologa-border);
}

/* ── Full-bleed page shell ─────────────────────────────────── */
.wl-page {
    max-width: 100vw !important;
    width: 100%;
    min-height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
    background-color: var(--antologa-white);
    overflow: hidden;
}

.wl-flow.mud-stepper,
.wl-flow .mud-paper {
    box-shadow: none !important;
    background: transparent !important;
}

.wl-flow .mud-stepper-nav {
    display: none !important;
}

.wl-flow .mud-stepper-content {
    padding: 0 !important;
}

/* ── Split-panel steps (Welcome / Beta Meaning / Ready) ────── */
.wl-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.wl-split__hero {
    position: relative;
    flex: 1 1 45%;
    overflow: hidden;
    /* Brand-color placeholder shown only while the photo loads (or if the slot is
       empty); the opaque cover image sits on top. No overlay tints the image. */
    background-color: var(--wl-accent, var(--antologa-primary));
}

/* Admin-uploaded background image (Site Images → "Welcome" group). Fills the hero,
   shown clean with no overlay. */
.wl-split__bg {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    pointer-events: none;
}

.wl-split__content {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: 3rem clamp(2rem, 6vw, 4.5rem);
    text-align: left;
    background-color: var(--antologa-pure-white);
}

/* Brand mark on the content (right) panel — dark logo on the white background. */
.wl-content-logo {
    width: 9rem !important;
    max-width: 60%;
    height: auto;
    margin-bottom: 0.25rem;
}

/* ── Accent modifier — sets --wl-accent once on the wrapper; cascades to the
   hero placeholder + active progress segment automatically. ──────────────── */
.wl-accent--primary   { --wl-accent: var(--antologa-primary); }
.wl-accent--secondary { --wl-accent: var(--antologa-secondary); }

/* ── Headline / subcopy ─────────────────────────────────────── */
.wl-headline {
    font-family: Inter, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--antologa-primary);
}

.wl-subcopy {
    font-family: Nunito, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--antologa-gray-700);
    max-width: 28rem;
}

/* ── Segmented progress bar ──────────────────────────────────── */
.wl-progress {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.wl-progress__segment {
    height: 4px;
    width: 8px;
    border-radius: 9999px;
    background-color: var(--antologa-light-gray);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.wl-progress__segment--active {
    width: 18px;
    background-color: var(--wl-accent, var(--antologa-primary));
}

/* ── Entrance animation (reuses app.css's fadeUp) ───────────── */
.wl-fade {
    animation: fadeUp var(--timing-standard, 0.5s) var(--ease-smooth, ease) both;
}

/* ── Benefits / meaning list (step 2, plain — no accent) ────── */
.wc-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wc-list-item {
    /* MudBlazor's own .mud-list-item-gutters class zeroes left/right padding at
       higher specificity (two classes vs. one) — !important is required to win. */
    padding: 0.875rem 1rem !important;
    border-radius: 0.625rem;
    background-color: var(--antologa-surface);
    border-left: 3px solid var(--antologa-border);
    gap: 0.75rem;
}

.wc-list-item .mud-list-item-icon {
    margin: 0 !important;
    min-width: 0 !important;
}

.wc-list-item .mud-typography {
    font-family: Nunito, sans-serif;
    font-size: 0.875rem;
    color: var(--text-body);
}

.wc-list-item--accent {
    border-left-color: var(--antologa-contrast);
    background-color: color-mix(in srgb, var(--antologa-contrast) 8%, var(--antologa-surface));
}

.wc-list-item--accent .mud-list-item-icon,
.wc-list-item--accent .mud-icon-root {
    color: var(--antologa-contrast) !important;
}

/* ── Step navigation row ─────────────────────────────────────── */
.wc-nav-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
}

.wc-nav-btn {
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    height: auto;
}

/* ── Actions / CTA row ───────────────────────────────────────── */
.wc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.5rem;
}

.wc-actions .mud-button-root {
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    height: auto;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wc-actions .mud-button-filled.mud-button-filled-primary:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--antologa-primary) 22%, transparent);
}

/* ── Accessibility: reduced motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .wl-fade {
        animation: none;
    }

    .wl-progress__segment {
        transition: none;
    }

    .wc-actions .mud-button-root {
        transition: none;
    }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .wc-shell-container {
        padding: 1rem !important;
    }

    .wc-card {
        padding: 1.75rem 1.25rem;
        border-radius: 0.75rem;
    }

    .wl-split {
        flex-direction: column;
        min-height: auto;
    }

    .wl-split__hero {
        flex: 0 0 auto;
        min-height: 180px;
    }

    .wl-split__content {
        padding: 2rem 1.5rem;
    }

    .wl-headline {
        font-size: 1.25rem;
    }
}
