/* =========================================
   ONBOARDING & TUTORIAL SYSTEM
   ========================================= */

/* Overlay for modals */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  animation: fadeIn 0.3s ease;
}

.onboarding-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Welcome Modal */
.welcome-modal {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(249, 115, 22, 0.3);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: slideUp 0.4s ease;
}

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

.welcome-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f97316, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.welcome-features {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 0.75rem;
}

.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.6);
  line-height: 1.4;
}

.welcome-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.onboarding-btn {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.onboarding-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.onboarding-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

.onboarding-btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.onboarding-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #f9fafb;
}

/* Tutorial Steps */
.tutorial-step {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(249, 115, 22, 0.3);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tutorial-progress {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.6);
  font-weight: 500;
}

.tutorial-close {
  background: none;
  border: none;
  color: rgba(248, 250, 252, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.tutorial-close:hover {
  color: #f97316;
}

.tutorial-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tutorial-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 1rem;
  text-align: center;
}

.tutorial-description {
  font-size: 1rem;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

.tutorial-image {
  width: 100%;
  height: 180px;
  background: rgba(249, 115, 22, 0.1);
  border: 2px dashed rgba(249, 115, 22, 0.3);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 3rem;
}

.tutorial-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.tutorial-skip {
  background: none;
  border: none;
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.tutorial-skip:hover {
  color: #f9fafb;
  text-decoration: underline;
}

.tutorial-nav {
  display: flex;
  gap: 0.75rem;
}

.tutorial-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tutorial-btn-back {
  background: rgba(148, 163, 184, 0.1);
  color: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.tutorial-btn-back:hover {
  background: rgba(148, 163, 184, 0.2);
}

.tutorial-btn-next {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.tutorial-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

/* Progress dots */
.tutorial-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tutorial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
  transition: all 0.3s ease;
}

.tutorial-dot.active {
  width: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Tooltips */
.tooltip {
  position: absolute;
  z-index: 9999;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid rgba(249, 115, 22, 0.4);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: tooltipFadeIn 0.3s ease;
  pointer-events: none;
}

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

.tooltip::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(249, 115, 22, 0.4);
}

.tooltip-content {
  color: #f9fafb;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tooltip-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f97316;
}

/* Highlight effect for tutorial targets */
.tutorial-highlight {
  position: relative;
  z-index: 9997;
}

.tutorial-highlight::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 3px solid #f97316;
  border-radius: 0.75rem;
  animation: pulse 2s infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(249, 115, 22, 0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .welcome-modal,
  .tutorial-step {
    padding: 2rem 1.5rem;
    max-width: 95%;
  }
  
  .welcome-title {
    font-size: 1.6rem;
  }
  
  .welcome-subtitle {
    font-size: 1rem;
  }
  
  .welcome-features {
    gap: 0.75rem;
  }
  
  .welcome-feature {
    padding: 0.75rem;
  }
  
  .feature-icon {
    font-size: 1.5rem;
  }
  
  .welcome-actions {
    flex-direction: column;
  }
  
  .onboarding-btn {
    width: 100%;
  }
  
  .tutorial-title {
    font-size: 1.3rem;
  }
  
  .tutorial-image {
    height: 140px;
  }
  
  .tutorial-actions {
    flex-direction: column;
  }
  
  .tutorial-nav {
    width: 100%;
  }
  
  .tutorial-btn {
    flex: 1;
  }
  
  .tutorial-skip {
    order: -1;
    margin-bottom: 0.5rem;
  }
}




