/* ================================================================
   Walkthrough.css - Standalone styles for walkthrough.js
   Zero dependencies. Adapts to any dark/light theme via CSS vars.
   Override `--wt-*` variables to re-skin for your app.
   ================================================================ */

/* ------------------------------------------------------------------ */
/*  Theme tokens (override these in your app)                          */
/* ------------------------------------------------------------------ */
:root {
    --wt-bg:            var(--bg-raised,  #1e1e28);
    --wt-bg-surface:    var(--bg-surface, #16161d);
    --wt-text:          var(--text,       #e8e8ed);
    --wt-text-muted:    var(--text-muted, #8888a0);
    --wt-accent:        var(--accent,     #e94560);
    --wt-accent-hover:  var(--accent-hover, #ff5a78);
    --wt-border:        var(--border,     #2a2a38);
    --wt-radius:        var(--radius,     8px);
    --wt-shadow:        var(--shadow-lg,  0 12px 48px rgba(0,0,0,.5));
    --wt-font:          var(--font,       'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif);
    --wt-z:             999990;
    --wt-overlay-color: rgba(0, 0, 0, 0.65);
    --wt-transition:    280ms cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------------------------------------------ */
/*  Overlay                                                            */
/* ------------------------------------------------------------------ */
.wt-overlay {
    position: fixed;
    inset: 0;
    pointer-events: auto;
}

.wt-overlay-svg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wt-animate .wt-mask-hole {
    transition: x var(--wt-transition), y var(--wt-transition),
                width var(--wt-transition), height var(--wt-transition);
}

/* ------------------------------------------------------------------ */
/*  Highlight ring                                                     */
/* ------------------------------------------------------------------ */
.wt-highlight {
    position: absolute;
    border: 2px solid var(--wt-accent);
    border-radius: var(--wt-radius);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.18);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wt-highlight.wt-visible {
    opacity: 1;
}

.wt-animate.wt-highlight {
    transition: top var(--wt-transition), left var(--wt-transition),
                width var(--wt-transition), height var(--wt-transition),
                opacity 0.2s ease;
}

/* ------------------------------------------------------------------ */
/*  Tooltip                                                            */
/* ------------------------------------------------------------------ */
.wt-tooltip {
    position: fixed;
    width: 380px;
    max-width: calc(100vw - 24px);
    background: var(--wt-bg);
    border: 1px solid var(--wt-border);
    border-radius: calc(var(--wt-radius) + 4px);
    box-shadow: var(--wt-shadow);
    font-family: var(--wt-font);
    color: var(--wt-text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.wt-tooltip.wt-visible {
    opacity: 1;
    pointer-events: auto;
}

.wt-animate.wt-tooltip {
    transition: top var(--wt-transition), left var(--wt-transition),
                opacity 0.18s ease, transform 0.18s ease;
}

/* ------------------------------------------------------------------ */
/*  Close button                                                       */
/* ------------------------------------------------------------------ */
.wt-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--wt-text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.wt-close:hover {
    color: var(--wt-text);
    background: rgba(255,255,255,0.06);
}

/* ------------------------------------------------------------------ */
/*  Header                                                             */
/* ------------------------------------------------------------------ */
.wt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 0;
}

.wt-step-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--wt-accent);
    background: rgba(233, 69, 96, 0.12);
    padding: 2px 9px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.wt-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--wt-text);
    line-height: 1.3;
}

/* ------------------------------------------------------------------ */
/*  Body                                                               */
/* ------------------------------------------------------------------ */
.wt-body {
    padding: 10px 20px 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--wt-text-muted);
}

.wt-body p { margin: 0 0 8px; }
.wt-body p:last-child { margin-bottom: 0; }
.wt-body ul { margin: 4px 0 8px 18px; padding: 0; }
.wt-body li { margin-bottom: 2px; }

/* ------------------------------------------------------------------ */
/*  Footer                                                             */
/* ------------------------------------------------------------------ */
.wt-footer {
    padding: 12px 20px 16px;
}

.wt-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.wt-actions-right {
    display: flex;
    gap: 8px;
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                            */
/* ------------------------------------------------------------------ */
.wt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    background: transparent;
    color: var(--wt-text-muted);
    font-family: var(--wt-font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.wt-btn:hover {
    color: var(--wt-text);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}

.wt-btn-primary {
    background: var(--wt-accent);
    color: #fff;
    border-color: var(--wt-accent);
}

.wt-btn-primary:hover {
    background: var(--wt-accent-hover);
    border-color: var(--wt-accent-hover);
    color: #fff;
}

.wt-btn-skip {
    border: none;
    padding: 7px 12px;
    color: var(--wt-text-muted);
    font-size: 12px;
}

.wt-btn-skip:hover {
    color: var(--wt-text);
    background: rgba(255,255,255,0.04);
}

/* ------------------------------------------------------------------ */
/*  Progress bar                                                       */
/* ------------------------------------------------------------------ */
.wt-progress {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.wt-progress-bar {
    height: 100%;
    background: var(--wt-accent);
    border-radius: 3px;
    transition: width var(--wt-transition);
}

/* ------------------------------------------------------------------ */
/*  Arrow                                                              */
/* ------------------------------------------------------------------ */
.wt-tooltip-arrow {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--wt-bg);
    border: 1px solid var(--wt-border);
    transform: rotate(45deg);
    pointer-events: none;
}

.wt-arrow-bottom {
    /* arrow points UP (tooltip is below target) */
    top: -8px;
    border-right: none;
    border-bottom: none;
}

.wt-arrow-top {
    /* arrow points DOWN (tooltip is above target) */
    bottom: -8px;
    border-left: none;
    border-top: none;
}

.wt-arrow-right {
    /* arrow points LEFT (tooltip is right of target) */
    left: -8px;
    border-right: none;
    border-top: none;
}

.wt-arrow-left {
    /* arrow points RIGHT (tooltip is left of target) */
    right: -8px;
    border-left: none;
    border-bottom: none;
}

.wt-arrow-hidden {
    display: none;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 480px) {
    .wt-tooltip {
        width: calc(100vw - 24px);
    }

    .wt-header { padding: 14px 16px 0; }
    .wt-body   { padding: 8px 16px 4px; }
    .wt-footer { padding: 10px 16px 14px; }
}
