/* ============================================================
   VERITAS Onboarding Tour — Overlay & Tooltip System
   Brand: WPP Media  |  Navy #000050  |  Lime #B0F467
   ============================================================ */

/* ── Overlay (dim everything behind the spotlight) ─────────── */
#vt-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    pointer-events: all;
    background: transparent; /* spotlight div handles the shade */
}

/* ── Spotlight (box-shadow creates the cutout effect) ───────── */
#vt-spotlight {
    position: fixed;
    z-index: 9996;
    border-radius: 10px;
    pointer-events: none;
    transition: top 0.35s cubic-bezier(.4,0,.2,1),
                left 0.35s cubic-bezier(.4,0,.2,1),
                width 0.35s cubic-bezier(.4,0,.2,1),
                height 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 0 9999px rgba(0, 0, 50, 0.72);
    outline: 3px solid #B0F467;
    outline-offset: 3px;
}

/* Center-screen variant (no spotlight, just dark backdrop) */
#vt-overlay.vt-center-mode {
    background: rgba(0, 0, 50, 0.72);
}

/* ── Tooltip card ────────────────────────────────────────────── */
#vt-tooltip {
    position: fixed;
    z-index: 9997;
    background: #000050;
    color: #fff;
    border-radius: 14px;
    padding: 24px 28px 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 20px 60px rgba(0,0,80,.45), 0 4px 16px rgba(0,0,0,.25);
    transition: top 0.35s cubic-bezier(.4,0,.2,1),
                left 0.35s cubic-bezier(.4,0,.2,1),
                opacity 0.2s ease;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 1.5px solid rgba(176,244,103,0.35);
}

/* Arrow pointer (bottom of tooltip pointing down to element) */
#vt-tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    pointer-events: none;
}

#vt-tooltip.vt-arrow-bottom::after {
    border-top-color: #000050;
    top: 100%;
    left: 28px;
}

#vt-tooltip.vt-arrow-top::after {
    border-bottom-color: #000050;
    bottom: 100%;
    left: 28px;
}

#vt-tooltip.vt-arrow-right::after {
    border-left-color: #000050;
    left: 100%;
    top: 24px;
}

#vt-tooltip.vt-arrow-left::after {
    border-right-color: #000050;
    right: 100%;
    top: 24px;
}

/* ── Progress bar ────────────────────────────────────────────── */
.vt-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.vt-progress-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    color: #B0F467;
    text-transform: uppercase;
    white-space: nowrap;
}

.vt-progress-track {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    overflow: hidden;
}

.vt-progress-fill {
    height: 100%;
    background: #B0F467;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ── Content ─────────────────────────────────────────────────── */
.vt-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.vt-message {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin: 0 0 20px;
}

.vt-message strong {
    color: #B0F467;
    font-weight: 600;
}

/* ── Action buttons ──────────────────────────────────────────── */
.vt-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vt-btn-skip {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 0;
    font-family: inherit;
    transition: color 0.15s;
    margin-right: auto;
}

.vt-btn-skip:hover {
    color: rgba(255,255,255,0.75);
}

.vt-btn-back {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.vt-btn-back:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.vt-btn-next {
    background: #B0F467;
    border: none;
    color: #000050;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s;
}

.vt-btn-next:hover {
    background: #9FE050;
    transform: translateY(-1px);
}

.vt-btn-next:active {
    transform: translateY(0);
}

/* ── Finish state ─────────────────────────────────────────────── */
.vt-btn-next.vt-finish {
    background: #B0F467;
    padding: 9px 24px;
}

/* ── Nav trigger button ──────────────────────────────────────── */
#vt-nav-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(176,244,103,0.12);
    border: 1px solid rgba(176,244,103,0.3);
    color: #B0F467;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    white-space: nowrap;
    margin-top: 8px;
}

#vt-nav-trigger:hover {
    background: rgba(176,244,103,0.22);
}

/* ── Animated entrance ───────────────────────────────────────── */
@keyframes vt-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#vt-tooltip.vt-entering {
    animation: vt-fade-in 0.25s ease forwards;
}
