/* Velocity Talent — Guided Tour
   Spotlight walkthrough with dark overlay
   ================================================================ */

/* ── Overlay (4 boxes around the spotlight hole) ─────────────── */
.vt-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.vt-tour-overlay.is-active { pointer-events: auto; }
.vt-tour-overlay.is-hidden { opacity: 0; }

.vt-tour-overlay__bg {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.82);
  z-index: 1;
  transition: clip-path 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Spotlight ring around target ────────────────────────────── */
.vt-tour-spotlight {
  position: fixed;
  z-index: 2;
  border-radius: 12px;
  box-shadow:
    0 0 0 4px rgba(77, 142, 255, 0.5),
    0 0 24px 4px rgba(77, 142, 255, 0.18);
  pointer-events: none;
  transition:
    top 350ms cubic-bezier(0.4, 0, 0.2, 1),
    left 350ms cubic-bezier(0.4, 0, 0.2, 1),
    width 350ms cubic-bezier(0.4, 0, 0.2, 1),
    height 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse animation on the spotlight */
.vt-tour-spotlight::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  border: 2px solid rgba(77, 142, 255, 0.35);
  animation: vtTourPulse 2s ease-in-out infinite;
}
@keyframes vtTourPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.03); }
}

/* ── Tooltip ─────────────────────────────────────────────────── */
.vt-tour-tooltip {
  position: fixed;
  z-index: 99999;
  width: min(380px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(23, 31, 51, 0.97), rgba(11, 19, 38, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 24px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.50),
    0 0 0 1px rgba(173, 198, 255, 0.08) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: 'Inter', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  color: #dae2fd;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: auto;
}
.vt-tour-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[dir="rtl"] .vt-tour-tooltip {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Step counter badge */
.vt-tour-tooltip__step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4cd7f6;
  background: rgba(76, 215, 246, 0.10);
  border: 1px solid rgba(76, 215, 246, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Icon circle */
.vt-tour-tooltip__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(77, 142, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.vt-tour-tooltip__icon .material-symbols-outlined {
  font-size: 22px;
  color: #adc6ff;
}

.vt-tour-tooltip__title {
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #dae2fd;
  margin: 0 0 6px;
  line-height: 1.3;
}
[dir="rtl"] .vt-tour-tooltip__title {
  font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
}

.vt-tour-tooltip__text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #c2c6d6;
  margin: 0 0 20px;
}

/* ── Buttons row ─────────────────────────────────────────────── */
.vt-tour-tooltip__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 8px;
}
/* When the action row wraps, "Don't show this again" was getting clipped
   past the 380px tooltip width. Wrap puts it on its own line if needed;
   the dashed-border styling keeps it visually distinct from primary CTAs. */
.vt-tour-tooltip__btn--dontshow {
  flex: 0 0 auto;
}

.vt-tour-tooltip__btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 180ms ease, transform 120ms ease, color 180ms ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vt-tour-tooltip__btn:hover { transform: translateY(-1px); }
.vt-tour-tooltip__btn:active { transform: translateY(0); }

/* Next / Finish */
.vt-tour-tooltip__btn--next {
  background: #adc6ff;
  color: #000;
  margin-inline-start: auto;
}
.vt-tour-tooltip__btn--next:hover { background: #c1d3ff; }

/* Previous */
.vt-tour-tooltip__btn--prev {
  background: rgba(255, 255, 255, 0.06);
  color: #dae2fd;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.vt-tour-tooltip__btn--prev:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

/* Skip */
.vt-tour-tooltip__btn--skip {
  background: transparent;
  color: #8c909f;
  padding: 9px 10px;
  font-weight: 500;
}
.vt-tour-tooltip__btn--skip:hover { color: #f87171; }

/* Don't show this again — persistent opt-out. Sits between Skip and the
   primary Next/Finish. Subtle by default so it doesn't compete with the
   primary CTA, but hover gives it a clear destructive accent. */
.vt-tour-tooltip__btn--dontshow {
  background: transparent;
  color: #8c909f;
  padding: 9px 12px;
  font-weight: 500;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}
.vt-tour-tooltip__btn--dontshow:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}
@media (max-width: 540px) {
  .vt-tour-tooltip__btn--dontshow {
    padding: 7px 10px;
    font-size: 11px;
  }
}

/* ── Progress dots ───────────────────────────────────────────── */
.vt-tour-tooltip__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.vt-tour-tooltip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 200ms ease, transform 200ms ease;
}
.vt-tour-tooltip__dot.is-active {
  background: #4d8eff;
  transform: scale(1.3);
}
.vt-tour-tooltip__dot.is-done {
  background: rgba(77, 142, 255, 0.4);
}

/* ── Welcome / Finish centered card (no target element) ──────── */
.vt-tour-tooltip--center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(8px);
}
.vt-tour-tooltip--center.is-visible {
  transform: translate(-50%, -50%) translateY(0);
}
.vt-tour-tooltip--center .vt-tour-tooltip__title {
  font-size: 22px;
  text-align: center;
}
.vt-tour-tooltip--center .vt-tour-tooltip__text {
  text-align: center;
}
.vt-tour-tooltip--center .vt-tour-tooltip__icon {
  margin: 0 auto 12px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.vt-tour-tooltip--center .vt-tour-tooltip__icon .material-symbols-outlined {
  font-size: 28px;
}
.vt-tour-tooltip--center .vt-tour-tooltip__actions {
  justify-content: center;
}
.vt-tour-tooltip--center .vt-tour-tooltip__step {
  display: none;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .vt-tour-tooltip {
    width: calc(100vw - 24px);
    padding: 18px;
    border-radius: 14px;
  }
  .vt-tour-tooltip__title { font-size: 15px; }
  .vt-tour-tooltip__text { font-size: 13px; }
  .vt-tour-tooltip__btn { padding: 8px 14px; font-size: 12px; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vt-tour-spotlight,
  .vt-tour-tooltip,
  .vt-tour-overlay__bg {
    transition: none;
  }
  .vt-tour-spotlight::after { animation: none; }
}

/* ── Header tour button ──────────────────────────────────────── */
.vt-nav__tour {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease, transform 120ms ease;
  color: #c2c6d6;
}
.vt-nav__tour:hover {
  background: rgba(77, 142, 255, 0.12);
  border-color: rgba(173, 198, 255, 0.30);
  color: #adc6ff;
  transform: translateY(-1px);
}
.vt-nav__tour .material-symbols-outlined {
  font-size: 20px;
}

/* ── Replay button (footer) ──────────────────────────────────── */
.vt-tour-replay {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vt-tour-replay .material-symbols-outlined {
  font-size: 16px;
}
