/* public/ui/tutorial-wizard.css */

.tour-overlay-mask {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
  z-index: 200000;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--accent, #7c4dff);
}

.tour-tooltip {
  position: absolute;
  z-index: 200001;
  background: var(--card, #1e1e24);
  border: 1px solid var(--border, #333);
  border-radius: 14px;
  padding: 18px;
  width: 330px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  font-family: inherit;
  line-height: 1.5;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  color: var(--text, #f3f4f6);
}

.tour-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted, #9ca3af);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tour-close-x {
  position: relative;
  z-index: 200005 !important;
  pointer-events: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted, #d1d5db);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  margin: -2px 0 0 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tour-close-x:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.08);
}

.tour-close-x:active {
  transform: scale(0.95);
}

.tour-tooltip-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text, #ffffff);
}

.tour-tooltip-body {
  font-size: 13.5px;
  color: var(--muted, #d1d5db);
  margin-bottom: 16px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.tour-tooltip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tour-tooltip-footer button {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border, #333);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  transition: all 0.15s ease;
}

.tour-tooltip-footer button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tour-tooltip-footer button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tour-tooltip-footer .tour-next-btn {
  background: var(--accent, #7c4dff);
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(124, 77, 255, 0.3);
}

.tour-tooltip-footer .tour-next-btn:hover {
  background: #6200ea;
  box-shadow: 0 2px 10px rgba(124, 77, 255, 0.5);
}

.tour-jump-select {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--border, #333);
  background: var(--surface, #151518);
  color: inherit;
  cursor: pointer;
  max-width: 140px;
}

/* Shadow cues spotlight target animation */
@keyframes tour-pulse {
  0% { box-shadow: 0 0 0 3px var(--accent, #7c4dff) !important; }
  50% { box-shadow: 0 0 0 10px rgba(124, 77, 255, 0.45) !important; }
  100% { box-shadow: 0 0 0 3px var(--accent, #7c4dff) !important; }
}

.tour-highlighted-element {
  position: relative !important;
  z-index: 199999 !important;
  border-radius: 6px;
  pointer-events: auto !important;
  animation: tour-pulse 2.2s infinite ease-in-out !important;
}

/* Success celebration toast card */
.tour-success-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200002;
  background: var(--card, #1e1e24);
  border: 1px solid var(--accent, #7c4dff);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: slideInUp 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  backdrop-filter: blur(8px);
}

@keyframes slideInUp {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Compulsory step styles */
.tour-highlighted-compulsory {
  position: relative !important;
  z-index: 200002 !important;
  pointer-events: auto !important;
  outline: 3px solid #f59e0b !important;
  outline-offset: 2px !important;
  animation: tour-pulse-compulsory 1.5s infinite ease-in-out !important;
}

@keyframes tour-pulse-compulsory {
  0% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.4), 0 0 0 0px rgba(245, 158, 11, 0.4) !important; }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 0 8px rgba(245, 158, 11, 0) !important; }
  100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.4), 0 0 0 0px rgba(245, 158, 11, 0.4) !important; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0px rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0px rgba(245, 158, 11, 0); }
}

/* ==========================================================================
   Light Mode Overrides for Tutorial Wizard
   ========================================================================== */
:root[data-theme="light"] .tour-tooltip {
  background: var(--card, #ffffff);
  border-color: var(--border, #d1d1d1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .tour-tooltip-footer button:not(.tour-next-btn) {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text, #0f172a);
  border-color: var(--border, #d1d1d1);
}

:root[data-theme="light"] .tour-tooltip-footer button:not(.tour-next-btn):hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.09);
}

:root[data-theme="light"] .tour-tooltip-footer button:disabled {
  background: rgba(0, 0, 0, 0.02);
  color: var(--muted, #94a3b8);
  border-color: rgba(0, 0, 0, 0.05);
  cursor: not-allowed;
  opacity: 0.6;
}

:root[data-theme="light"] .tour-jump-select {
  background: var(--card, #ffffff);
  color: var(--text, #0f172a);
  border-color: var(--border, #d1d1d1);
}

:root[data-theme="light"] .tour-back-btn {
  color: #000000 !important;
}

.tour-overlay-mask.centered-mask {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(4px) !important;
}


