/* _tour/tour.css — shared styles for the BYOC tour engine. */

.byoc-tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Above the shared #byoc-topbar (z-index 1000) so the spotlight + dim cover
     the topbar too during a tour. */
  z-index: 1010;
  pointer-events: auto;
  display: none;
}
.byoc-tour-overlay.active { display: block; }
/* Modal step (target covers most of the viewport): no spotlight window,
   so the overlay alone must reach the same darkness the spotlight shadow
   normally adds outside the window (0.5 + 0.5 stacked ≈ 0.75). */
.byoc-tour-overlay.modal-step { background: rgba(0, 0, 0, 0.75); }

.byoc-tour-spotlight {
  position: absolute;
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(34, 197, 94, 0.45),
    0 0 24px 4px rgba(34, 197, 94, 0.18);
  pointer-events: none;
  transition: top 240ms ease, left 240ms ease, width 240ms ease, height 240ms ease;
}

.byoc-tour-card {
  /* Viewport-fixed (was absolute). The spotlight is inside the fixed overlay
     so it lives in viewport coordinates already — the card needs to match
     so they stay aligned on scroll. */
  position: fixed;
  width: 320px;
  background: #111118;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 12px;
  padding: 18px 20px;
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  /* Just above the overlay so the tooltip card stays clickable. */
  z-index: 1011;
  display: none;
  transition: top 240ms ease, left 240ms ease;
}
.byoc-tour-card.active { display: block; }

.byoc-tour-counter {
  color: #22c55e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.byoc-tour-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}
.byoc-tour-body {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px 0;
}
.byoc-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.byoc-tour-skip {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
}
.byoc-tour-skip:hover { color: #e2e8f0; }
.byoc-tour-next {
  background: #22c55e;
  color: #0a0a0b;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.byoc-tour-next:hover { filter: brightness(1.05); }

/* ── What's-new dot ──────────────────────────────────────────────── */

.byoc-tour-newdot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  pointer-events: none;
  animation: byoc-tour-pulse 2.4s ease-out infinite;
  z-index: 5;
}
@keyframes byoc-tour-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.byoc-tour-newtip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #111118;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  width: 240px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease, visibility 120ms;
  z-index: 10;
  pointer-events: none;
}
.byoc-tour-newdot-host:hover .byoc-tour-newtip,
.byoc-tour-newdot-host:focus-within .byoc-tour-newtip {
  opacity: 1;
  visibility: visible;
}
.byoc-tour-newtip-title {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 4px;
  color: #f59e0b;
}
.byoc-tour-newtip-body { display: block; }

/* ── What's-new pill ─────────────────────────────────────────────── */
/* Inline badge variant of the dot. Use byocTour.markNewPill() to
   render a small "NEW" pill next to a title, instead of an absolute
   dot in the corner. Two-channel motion: halo box-shadow expanding
   on the cadence + a subtle scale on the pill body. */

.byoc-tour-newpill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #0a0a0b;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  animation: byoc-tour-pillpulse 2s ease-in-out infinite;
}
@keyframes byoc-tour-pillpulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    transform: scale(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .byoc-tour-newpill { animation: none; }
}
