/* home_tour.css — styles for the homepage welcome tour (Task #74).
 * Reuses the global color tokens on :root from base.css
 * (--mint, --ink-950..600, --line, --muted, --text). */

.nbt-tour {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nbt-tour.is-open { opacity: 1; }

.nbt-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

/* Transparent "hole" over the highlighted element; the huge box-shadow dims
   everything around it. Clicks are absorbed (no pass-through to the page). */
.nbt-tour-spot {
  position: absolute;
  border-radius: 12px;
  pointer-events: auto;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72),
    0 0 0 2px var(--mint, #00d4a8),
    0 0 22px rgba(0, 212, 168, 0.35);
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.nbt-tour-card {
  position: absolute;
  width: min(340px, calc(100vw - 28px));
  padding: 18px 18px 16px;
  border: 1px solid var(--line, #1f2937);
  border-radius: 16px;
  background: var(--ink-900, #0a0e1a);
  color: var(--text, #e5e7eb);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  transition: top 0.2s ease, left 0.2s ease;
}

/* Mobile: a fixed bottom-sheet that clears the bottom tab bar + safe area. */
.nbt-tour-card.is-sheet {
  position: fixed;
  left: 12px;
  right: 12px;
  top: auto;
  width: auto;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
}

.nbt-tour-x {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--muted, #9ca3af);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.nbt-tour-x:hover { color: var(--text, #e5e7eb); }

.nbt-tour-step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint, #00d4a8);
}
.nbt-tour-title {
  margin: 6px 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.nbt-tour-body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #9ca3af);
}

.nbt-tour-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.nbt-tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink-700, #1a1f2e);
  transition: background 0.15s ease;
}
.nbt-tour-dot.is-on { background: var(--mint, #00d4a8); }

.nbt-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nbt-tour-nav { display: flex; gap: 8px; }

.nbt-tour-btn {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nbt-tour-skip {
  padding-left: 4px;
  background: none;
  color: var(--muted, #9ca3af);
}
.nbt-tour-skip:hover { color: var(--text, #e5e7eb); }
.nbt-tour-back {
  background: var(--ink-800, #10141e);
  border-color: var(--line, #1f2937);
  color: var(--text, #e5e7eb);
}
.nbt-tour-back:hover { border-color: var(--mint-500, #00b893); }
.nbt-tour-next {
  background: var(--mint, #00d4a8);
  color: var(--ink-950, #05070c);
}
.nbt-tour-next:hover { background: var(--mint-500, #00b893); }

@media (prefers-reduced-motion: reduce) {
  .nbt-tour,
  .nbt-tour-card,
  .nbt-tour-spot { transition: none; }
}
