/* Tour bar -- only visible when ?clientId=demo-jane */

.tour-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  bottom: 20px;
  top: auto;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  min-width: 380px;
  max-width: 92vw;
  transition: transform 0.3s ease;
}

.tour-bar-visible {
  transform: translateX(-50%) translateY(0);
}

/* Adjust scroll margin for bottom-docked bar */
.tour-highlight {
  scroll-margin-bottom: 100px;
}

.tour-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tour-scrubber-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-scrubber-row input[type="range"] {
  flex: 1;
  accent-color: #7c3aed;
  height: 4px;
}

.tour-time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}

.tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #7c3aed;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.tour-btn:hover { background: #6d28d9; }
.tour-icon { font-size: 13px; line-height: 1; }
.tour-btn-label { white-space: nowrap; }

.tour-status {
  flex: 1 1 auto;
  color: #cbd5e1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-volume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.tour-volume input[type="range"] {
  width: 80px;
  accent-color: #7c3aed;
}

/* Highlight ring on tour-targeted elements */
.tour-highlight {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 0 3px #7c3aed, 0 0 0 8px rgba(124, 58, 237, 0.25);
  animation: tour-pulse 2s ease-in-out infinite;
  scroll-margin-top: 120px;
}

@keyframes tour-pulse {
  0%,  100% { box-shadow: 0 0 0 3px #7c3aed, 0 0 0 8px rgba(124, 58, 237, 0.25); }
  50%       { box-shadow: 0 0 0 3px #7c3aed, 0 0 0 16px rgba(124, 58, 237, 0); }
}

/* First-visit pulse on the bar itself */
@keyframes tour-bar-pulse {
  0%,  100% { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
  50%       { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.6), 0 12px 32px rgba(0, 0, 0, 0.45); }
}

.tour-bar-first-pulse {
  animation: tour-bar-pulse 1.4s ease-in-out 3;
}

/* On mobile, collapse below fold if screen is narrow */
@media (max-width: 500px) {
  .tour-bar { min-width: 0; width: calc(100vw - 24px); }
  .tour-status { display: none; }
  .tour-volume { display: none; }
}
