/* /Shared/OnboardingTour.razor.rz.scp.css */
/* OnboardingTour — scoped styles. Reuses the app's paper/pitch/accent palette and
   radius/shadow tokens from theme.css; introduces no new visual language. */

.tour-overlay[b-h0c7xaj9es] {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 24, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: tour-fade-in-b-h0c7xaj9es 180ms ease;
}

@keyframes tour-fade-in-b-h0c7xaj9es {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tour-modal[b-h0c7xaj9es] {
    position: relative;
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    width: min(560px, 100%);
    max-height: min(92vh, 720px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: tour-pop-in-b-h0c7xaj9es 220ms ease;
}

@keyframes tour-pop-in-b-h0c7xaj9es {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Top progress bar (time until next slide) ---------- */

.tour-progress-track[b-h0c7xaj9es] {
    height: 3px;
    background: var(--line);
    flex-shrink: 0;
}

.tour-progress-fill[b-h0c7xaj9es] {
    height: 100%;
    background: var(--accent);
    transition: width 100ms linear;
}

/* ---------- Close button ---------- */

.tour-close[b-h0c7xaj9es] {
    position: absolute;
    top: 0.6rem;
    right: 0.7rem;
    z-index: 2;
    background: transparent;
    box-shadow: none;
    border: none;
    color: var(--ink-soft);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-pill);
}

.tour-close:hover[b-h0c7xaj9es] {
    background: var(--mint);
    color: var(--ink);
}

.tour-autoplay-toggle[b-h0c7xaj9es] {
    position: absolute;
    top: 0.7rem;
    right: 3.2rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--mint);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.8rem;
    white-space: nowrap;
}

.tour-autoplay-toggle:hover[b-h0c7xaj9es] {
    background: color-mix(in srgb, var(--mint) 58%, var(--paper));
}

/* ---------- Slide viewport ---------- */

.tour-slide-viewport[b-h0c7xaj9es] {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.tour-slide[b-h0c7xaj9es] {
    position: absolute;
    inset: 0;
    padding: 2.4rem 1.75rem 1rem;
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 240ms ease, transform 240ms ease;
    overflow-y: auto;
}

.tour-slide.is-active[b-h0c7xaj9es] {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.tour-slide.is-leaving[b-h0c7xaj9es] {
    transform: translateX(-12px);
}

@media (prefers-reduced-motion: reduce) {
    .tour-slide[b-h0c7xaj9es] {
        transition: opacity 1ms linear;
        transform: none;
    }
}

.tour-slide-inner h2[b-h0c7xaj9es] {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.tour-body-text[b-h0c7xaj9es] {
    color: var(--ink-soft);
    margin: 0;
}

.tour-slide--welcome[b-h0c7xaj9es],
.tour-slide--closing[b-h0c7xaj9es] {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.4rem;
}

.tour-hero-icon[b-h0c7xaj9es] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: var(--pitch-soft);
    margin-bottom: 1rem;
}

/* ---------- Mocked mini UI panels (fake, non-interactive) ---------- */

.tour-mock-panel[b-h0c7xaj9es] {
    background: var(--mint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.tour-mock-field[b-h0c7xaj9es] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tour-mock-field-row[b-h0c7xaj9es] {
    display: flex;
    gap: 0.7rem;
}

.tour-mock-field-row .tour-mock-field[b-h0c7xaj9es] {
    flex: 1 1 0;
}

.tour-mock-field label[b-h0c7xaj9es] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
}

.tour-mock-field input[b-h0c7xaj9es] {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    font: inherit;
    color: var(--ink);
}

.tour-mock-slot-row[b-h0c7xaj9es] {
    display: flex;
    gap: 0.5rem;
}

.tour-mock-slot-row input[b-h0c7xaj9es] {
    flex: 1 1 auto;
}

.tour-mock-btn[b-h0c7xaj9es] {
    align-self: flex-start;
    cursor: default;
}

/* Fake filter rail mimicking .filter-rail from theme.css but static/read-only */

.tour-mock-filter-rail[b-h0c7xaj9es] {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: var(--paper);
    border-radius: var(--radius-pill);
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.85rem;
}

.tour-mock-pill[b-h0c7xaj9es] {
    background: var(--mint);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.75rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}

.tour-mock-tiles[b-h0c7xaj9es] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tour-mock-tile[b-h0c7xaj9es] {
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tour-mock-tile-top[b-h0c7xaj9es] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.tour-mock-tile-title[b-h0c7xaj9es] {
    font-weight: 700;
    font-size: 0.92rem;
}

.tour-mock-tile-sub[b-h0c7xaj9es] {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.tour-mock-tile-meta[b-h0c7xaj9es] {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.tour-mock-tile-footer[b-h0c7xaj9es] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Speech-bubble callouts ---------- */

.tour-callout-anchor[b-h0c7xaj9es] {
    position: relative;
}

.tour-callout[b-h0c7xaj9es] {
    position: relative;
    display: inline-block;
    max-width: 260px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-1);
    margin-top: 0.5rem;
    z-index: 1;
}

.tour-callout--below[b-h0c7xaj9es]::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 22px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--accent);
}

.tour-callout--right[b-h0c7xaj9es] {
    margin-top: 0;
    margin-left: 0.75rem;
}

.tour-callout--right[b-h0c7xaj9es]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid var(--accent);
}

/* ---------- Footer: dots + nav buttons ---------- */

.tour-footer[b-h0c7xaj9es] {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    padding: 0.9rem 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tour-dots[b-h0c7xaj9es] {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.tour-dot[b-h0c7xaj9es] {
    position: relative;
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    background: var(--line);
    box-shadow: none;
    flex-shrink: 0;
}

.tour-dot:hover[b-h0c7xaj9es] {
    background: var(--pitch-soft);
}

.tour-dot.is-active[b-h0c7xaj9es] {
    background: var(--pitch);
}

.tour-dot-ring[b-h0c7xaj9es] {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    --tour-ring-progress: 0;
    background: conic-gradient(var(--accent) calc(var(--tour-ring-progress) * 360deg), transparent 0deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.tour-dot-ring.is-paused[b-h0c7xaj9es] {
    opacity: 0.55;
}

.tour-actions[b-h0c7xaj9es] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tour-link[b-h0c7xaj9es] {
    background: transparent;
    box-shadow: none;
    border: none;
    color: var(--ink-soft);
    text-decoration: underline;
    padding: 0.3rem 0.2rem;
}

.tour-link:hover[b-h0c7xaj9es] {
    color: var(--ink);
}

.tour-nav-buttons[b-h0c7xaj9es] {
    display: flex;
    gap: 0.6rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.tour-nav-btn[b-h0c7xaj9es] {
    text-decoration: none;
    text-align: center;
}

.tour-nav-btn:disabled[b-h0c7xaj9es] {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---------- Mobile: near-fullscreen, scrollable ---------- */

@media (max-width: 560px) {
    .tour-overlay[b-h0c7xaj9es] {
        padding: 0;
        align-items: stretch;
    }

    .tour-modal[b-h0c7xaj9es] {
        width: 100%;
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }

    .tour-slide[b-h0c7xaj9es] {
        padding: 4.1rem 1.15rem 1rem;
    }

    .tour-footer[b-h0c7xaj9es] {
        padding: 0.8rem 1.1rem 1rem;
    }

    .tour-actions[b-h0c7xaj9es] {
        justify-content: center;
    }

    .tour-nav-buttons[b-h0c7xaj9es] {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .tour-nav-btn[b-h0c7xaj9es] {
        flex: 1 1 auto;
    }

    .tour-callout[b-h0c7xaj9es] {
        max-width: 100%;
    }

    .tour-autoplay-toggle[b-h0c7xaj9es] {
        top: 0.8rem;
        left: 1rem;
        right: auto;
    }
}
