/* ============================================================
   RAN UNIVERSE — tour.css
   Guided tour overlay component styles
   ============================================================ */

/* ── Tour overlay wrapper ─────────────────────────────────── */
#tour-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-tour);
  pointer-events: none;
  display: none;
}
#tour-overlay.active { display: block; }

/* ── SVG spotlight backdrop ───────────────────────────────── */
#tour-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: all;
}

/* ── Tour tooltip ─────────────────────────────────────────── */
#tour-tooltip {
  position: fixed;
  width: 310px;
  background: var(--bg-card);
  border: 1px solid rgba(232, 197, 71, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,197,71,0.08);
  padding: 20px 20px 16px;
  z-index: calc(var(--z-tour) + 1);
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.2s ease;
  user-select: none;
}

[data-theme="light"] #tour-tooltip {
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(100,60,0,0.2), 0 0 0 1px rgba(200,131,10,0.12);
}

#tour-tooltip.visible { opacity: 1; }

/* Close button */
.tour-close-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  border-radius: var(--radius-circle);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.tour-close-btn:hover {
  background: rgba(229,115,115,0.15);
  border-color: rgba(229,115,115,0.4);
  color: var(--error);
}
.tour-close-btn svg { width: 12px; height: 12px; }

/* Step counter */
.tour-counter {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

/* Title */
.tour-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  padding-right: 22px;
  line-height: 1.3;
}

/* Content */
.tour-content {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

/* Progress dots */
.tour-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 14px;
}
.tour-dot {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
[data-theme="light"] .tour-dot { background: rgba(0,0,0,0.08); }
.tour-dot.active {
  width: 18px;
  background: var(--gold-accent);
}
.tour-dot.inactive { width: 5px; }

/* Navigation buttons */
.tour-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tour-btn-prev {
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: all var(--trans-fast);
}
.tour-btn-prev:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.tour-btn-prev svg { width: 12px; height: 12px; }

.tour-btn-next {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--grad-gold);
  color: #1a1410;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: all var(--trans-fast);
}
.tour-btn-next:hover {
  filter: brightness(1.05);
  box-shadow: var(--shadow-gold);
}
.tour-btn-next svg { width: 12px; height: 12px; }

/* Footer row */
.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-dismiss-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--text-faint);
  user-select: none;
  transition: color var(--trans-fast);
}
.tour-dismiss-label:hover { color: var(--text-muted); }
.tour-dismiss-label input {
  width: 11px; height: 11px;
  accent-color: var(--gold-accent);
  cursor: pointer;
}

.tour-skip-btn {
  font-size: 0.7rem;
  color: var(--text-faint);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--trans-fast);
}
.tour-skip-btn:hover { color: var(--text-secondary); }

/* ── Tour trigger button (? help button) ──────────────────── */
#tour-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: calc(var(--z-tour) - 1);
  width: 44px; height: 44px;
  border-radius: var(--radius-circle);
  background: var(--grad-gold);
  color: #1a1410;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold-lg);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  transition: all var(--trans-med);
  animation: pulse-gold 3s ease-in-out infinite;
}
#tour-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(232,197,71,0.5);
}
#tour-trigger::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 197, 71, 0.35);
  animation: pulse-ring 2.5s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.15); opacity: 0; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  #tour-tooltip { width: calc(100vw - 32px); }
  #tour-trigger { bottom: 16px; left: 16px; width: 40px; height: 40px; }
}
