/* ═══════════════════════════════════════════════════════════
   First-time onboarding tour — overlay + tooltip styling.
   The engine in /js/tour.js decides when to show these.
   ═══════════════════════════════════════════════════════════ */

.tour-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.tour-overlay__mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  pointer-events: auto;
  transition: opacity 180ms ease-out;
}

/* The "hole" that reveals the highlighted element underneath. JS positions
   it via inline top/left/width/height. box-shadow fills everything outside
   the hole so we don't need SVG masks. */
.tour-overlay__hole {
  position: fixed;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.55);
  outline: 3px solid #10b981;
  outline-offset: 2px;
  pointer-events: none;
  transition: all 200ms ease-out;
}

.tour-overlay__mask--no-target {
  /* When a step has no target, blur the whole screen evenly. */
}

.tour-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 360px;
  min-width: 280px;
  background: #fff;
  color: var(--text-primary, #0f172a);
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.4);
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
  pointer-events: auto;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.tour-tooltip__progress {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 6px;
}

.tour-tooltip__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.tour-tooltip__body {
  margin: 0 0 16px 0;
  color: #475569;
}

.tour-tooltip__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tour-tooltip__left {
  display: flex;
  gap: 8px;
}

.tour-tooltip__btn {
  font: inherit;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #64748b;
  font-weight: 500;
}

.tour-tooltip__btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.tour-tooltip__btn--primary {
  background: #10b981;
  color: #fff;
}

.tour-tooltip__btn--primary:hover {
  background: #059669;
  color: #fff;
}

.tour-tooltip__wait {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #10b981;
  font-weight: 600;
  padding: 6px 10px;
}

.tour-tooltip__arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px -2px rgba(15, 23, 42, 0.1);
}

/* Help entry point — a subtle question-mark button in the header that
   re-launches the tour. */
.tour-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
}

.tour-launcher:hover {
  background: rgba(255, 255, 255, 0.15);
}
