/* ═══════════════════════════════════════════════════════════════════════
   welcome-tour.css  –  In-app onboarding spotlight tour
   ═══════════════════════════════════════════════════════════════════════ */

/* Backdrop overlay */
.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tour-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Spotlight cutout — done via box-shadow on the highlight clone */
.tour-highlight {
  position: fixed;
  z-index: 9999;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
}

/* Tooltip card */
.tour-tooltip {
  position: fixed;
  z-index: 10000;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, rgba(24, 24, 30, 0.98), rgba(15, 15, 18, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tour-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tour-tooltip-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.tour-tooltip h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fafafa;
  margin-bottom: 6px;
  line-height: 1.3;
}

.tour-tooltip p {
  font-size: 14px;
  line-height: 1.65;
  color: #a1a1aa;
  margin-bottom: 20px;
}

/* Progress dots */
.tour-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}
.tour-dot.active {
  background: #818cf8;
}
.tour-dot.done {
  background: #6366f1;
}

/* Buttons */
.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tour-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}
.tour-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.tour-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.tour-btn-ghost {
  background: transparent;
  color: #71717a;
  padding: 10px 12px;
}
.tour-btn-ghost:hover {
  color: #a1a1aa;
}

.tour-step-counter {
  font-size: 12px;
  color: #52525b;
  font-weight: 500;
}

/* Welcome splash (step 0) — centered modal instead of spotlight */
.tour-welcome {
  position: fixed;
  z-index: 10000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 420px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, rgba(24, 24, 30, 0.98), rgba(15, 15, 18, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tour-welcome.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tour-welcome-logo {
  font-size: 56px;
  margin-bottom: 16px;
}

.tour-welcome h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fafafa;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tour-welcome p {
  font-size: 15px;
  line-height: 1.7;
  color: #a1a1aa;
  margin-bottom: 28px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.tour-welcome .tour-btn-primary {
  padding: 14px 32px;
  font-size: 16px;
}

.tour-welcome .tour-btn-ghost {
  display: block;
  margin: 12px auto 0;
}

/* Responsive */
@media (max-width: 600px) {
  .tour-tooltip {
    width: calc(100vw - 24px);
    left: 12px !important;
    right: 12px;
  }
  .tour-welcome {
    width: calc(100vw - 24px);
    padding: 32px 20px;
  }
}
