/* Walkthrough overlay */
.walkthrough-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.walkthrough-overlay.walkthrough-active {
  opacity: 1;
  pointer-events: auto;
}

/* Spotlight cutout */
.walkthrough-spotlight {
  position: fixed;
  z-index: 9998;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  pointer-events: none;
}

[data-color-scheme="dark"] .walkthrough-spotlight {
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
}

/* Popover */
.walkthrough-popover {
  z-index: 9999;
  width: 340px;
  max-width: calc(100vw - 2rem);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  pointer-events: auto;
}

[data-color-scheme="dark"] .walkthrough-popover {
  background: #1f2937;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.walkthrough-popover-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

[data-color-scheme="dark"] .walkthrough-popover-title {
  color: #f3f4f6;
}

.walkthrough-popover-body {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 1rem;
}

[data-color-scheme="dark"] .walkthrough-popover-body {
  color: #9ca3af;
}

.walkthrough-popover-body strong {
  color: #111827;
  font-weight: 600;
}

[data-color-scheme="dark"] .walkthrough-popover-body strong {
  color: #f3f4f6;
}

.walkthrough-popover-body kbd {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #374151;
}

[data-color-scheme="dark"] .walkthrough-popover-body kbd {
  background: #374151;
  border-color: #4b5563;
  color: #d1d5db;
}

/* Wider popover for video content */
.walkthrough-popover:has(iframe) {
  width: 640px;
}

/* Footer with buttons and progress */
.walkthrough-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.walkthrough-step-counter {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
}

.walkthrough-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.walkthrough-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.walkthrough-btn-primary {
  background: #dc2626;
  color: white;
}

.walkthrough-btn-primary:hover {
  background: #b91c1c;
}

.walkthrough-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.walkthrough-btn-secondary:hover {
  background: #e5e7eb;
}

[data-color-scheme="dark"] .walkthrough-btn-secondary {
  background: #374151;
  color: #d1d5db;
  border-color: #4b5563;
}

[data-color-scheme="dark"] .walkthrough-btn-secondary:hover {
  background: #4b5563;
}

.walkthrough-btn-skip {
  background: transparent;
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.375rem 0.25rem;
}

.walkthrough-btn-skip:hover {
  color: #6b7280;
}

/* Progress dots */
.walkthrough-progress {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.walkthrough-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.2s ease;
}

[data-color-scheme="dark"] .walkthrough-dot {
  background: #4b5563;
}

.walkthrough-dot-active {
  background: #dc2626;
  transform: scale(1.3);
}

.walkthrough-dot-completed {
  background: #6b7280;
}

/* Resume banner */
.walkthrough-resume-banner {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-bottom: 1rem;
  max-height: 100px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.walkthrough-resume-banner.walkthrough-banner-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

[data-color-scheme="dark"] .walkthrough-resume-banner {
  background: #172554;
  border-left-color: #3b82f6;
}

.walkthrough-resume-banner-text {
  font-size: 0.875rem;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-color-scheme="dark"] .walkthrough-resume-banner-text {
  color: #93c5fd;
}

.walkthrough-resume-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
