/* Tour Overlay Styles */

.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9997;
  pointer-events: none;
}

.tour-overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 9998;
}

.tour-highlight {
  position: fixed;
  border: 2px solid #6366f1;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.6);
  pointer-events: none;
  z-index: 9999;
  animation: tourPulse 2s infinite;
}

@keyframes tourPulse {
  0%, 100% {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.6);
  }
  50% {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.8);
  }
}

/* Tooltip */
.tour-tooltip {
  position: fixed;
  z-index: 10000;
  animation: tourFadeIn 0.3s ease-out;
}

@keyframes tourFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tour-tooltip-content {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tour-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.tour-tooltip-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  flex: 1;
}

.tour-step-counter {
  font-size: 12px;
  color: #6366f1;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.tour-tooltip-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 16px;
}

.tour-tooltip-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.tour-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.01em;
}

.tour-btn-primary {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.tour-btn-primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.tour-btn-primary:active {
  transform: scale(0.98);
}

.tour-btn-secondary {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

.tour-btn-secondary:hover {
  background: #334155;
  border-color: #475569;
  transform: translateY(-1px);
}

.tour-btn-secondary:active {
  transform: scale(0.98);
}

/* Welcome splash screen */
.tour-splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: tourFadeIn 0.4s ease-out;
}

.tour-splash-content {
  text-align: center;
  color: #e2e8f0;
}

.tour-splash-logo {
  font-size: 48px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.tour-splash-title {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.tour-splash-subtitle {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 32px;
}

.tour-splash-description {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 400px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.tour-splash-btn {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  font-family: inherit;
  letter-spacing: 0.01em;
}

.tour-splash-btn:hover {
  background: #4f46e5;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.tour-splash-btn:active {
  transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tour-tooltip-content {
    width: 280px;
  }

  .tour-tooltip-actions {
    flex-direction: column;
  }

  .tour-btn {
    width: 100%;
    justify-content: center;
  }

  .tour-splash-title {
    font-size: 24px;
  }

  .tour-splash-subtitle {
    font-size: 14px;
  }
}
