/*!
 * Stinger Dashboard Tour — self-contained styles.
 * Palette: teal #0e2a32, Stinger orange #f08c1f, white.
 */

:root {
    --stinger-teal: #0e2a32;
    --stinger-orange: #f08c1f;
    --stinger-orange-hover: #d97706;
    --stinger-body: #374151;
    --stinger-border: #e5e7eb;
    --stinger-shadow: 0 10px 30px rgba(14, 42, 50, 0.18);
}

/* ── Root container ───────────────────────────────────────────────────────── */
.stinger-tour-root {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.stinger-tour-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: auto;
}

/* ── Step card ────────────────────────────────────────────────────────────── */
.stinger-tour-step {
    position: fixed;
    background: #ffffff;
    border: 1px solid var(--stinger-border);
    border-radius: 12px;
    box-shadow: var(--stinger-shadow);
    width: 360px;
    max-width: calc(100vw - 24px);
    padding: 18px 20px 16px 20px;
    font-family: 'Plus Jakarta Sans', 'Rajdhani', system-ui, sans-serif;
    color: var(--stinger-body);
    pointer-events: auto;
    z-index: 10001;
    box-sizing: border-box;
}

.stinger-tour-step--centered {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
}

.stinger-tour-title {
    margin: 0 0 8px 0;
    color: var(--stinger-teal);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
}

.stinger-tour-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--stinger-body);
}

.stinger-tour-text strong {
    color: var(--stinger-teal);
}

.stinger-tour-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* ── Close (×) ────────────────────────────────────────────────────────────── */
.stinger-tour-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: var(--stinger-teal);
    opacity: 0.55;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.stinger-tour-close:hover { opacity: 1; }

/* ── Arrow ────────────────────────────────────────────────────────────────── */
.stinger-tour-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 1px solid var(--stinger-border);
    transform: rotate(45deg);
}

.stinger-tour-step[data-placement="top"] .stinger-tour-arrow {
    bottom: -7px;
    margin-left: -6px;
    border-top: none;
    border-left: none;
}

.stinger-tour-step[data-placement="bottom"] .stinger-tour-arrow {
    top: -7px;
    margin-left: -6px;
    border-bottom: none;
    border-right: none;
}

.stinger-tour-step[data-placement="left"] .stinger-tour-arrow {
    right: -7px;
    margin-top: -6px;
    border-bottom: none;
    border-left: none;
}

.stinger-tour-step[data-placement="right"] .stinger-tour-arrow {
    left: -7px;
    margin-top: -6px;
    border-top: none;
    border-right: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.stinger-tour-btn {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.stinger-tour-btn:focus-visible {
    outline: 2px solid var(--stinger-orange);
    outline-offset: 2px;
}

.stinger-tour-btn--primary {
    background: var(--stinger-orange);
    color: #ffffff;
    border: 1px solid var(--stinger-orange);
}

.stinger-tour-btn--primary:hover {
    background: var(--stinger-orange-hover);
    border-color: var(--stinger-orange-hover);
}

.stinger-tour-btn--secondary {
    background: transparent;
    color: var(--stinger-teal);
    border: 1px solid var(--stinger-teal);
}

.stinger-tour-btn--secondary:hover {
    background: rgba(14, 42, 50, 0.06);
}

/* ── Mobile — anchor to bottom of screen ──────────────────────────────────── */
.stinger-tour-step--mobile {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    width: auto;
    max-width: none;
    transform: none !important;
}

.stinger-tour-step--mobile .stinger-tour-arrow { display: none; }

@media (max-width: 767px) {
    .stinger-tour-step {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        top: auto !important;
        width: auto;
        max-width: none;
        transform: none !important;
    }

    .stinger-tour-step .stinger-tour-arrow { display: none; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .stinger-tour-root * {
        transition: none !important;
        animation: none !important;
    }
}
