/* ===== ONBOARDING FLOW STYLES ===== */

/* Onboarding Overlay */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.onboarding-overlay.active {
  display: flex;
}

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

/* Onboarding Modal */
.onboarding-modal {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s ease;
}

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

/* Close Button */
.onboarding-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #9ca3af;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10;
}

.onboarding-close:hover {
  background: #f3f4f6;
  color: #374151;
  transform: rotate(90deg);
}

/* Onboarding Header */
.onboarding-header {
  padding: 40px 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 20px 20px 0 0;
}

.onboarding-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px 0;
}

.onboarding-header p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

/* Progress Indicator */
.onboarding-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 30px 40px 20px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: all 0.3s;
}

.progress-dot.active {
  background: #667eea;
  width: 32px;
  border-radius: 6px;
}

.progress-dot.completed {
  background: #10b981;
}

.progress-line {
  width: 40px;
  height: 2px;
  background: #e5e7eb;
}

/* Onboarding Content */
.onboarding-content {
  padding: 20px 40px 40px;
}

.onboarding-step {
  display: none;
}

.onboarding-step.active {
  display: block;
  animation: fadeInStep 0.3s ease;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Step Icon */
.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin: 0 0 12px 0;
}

.step-description {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

/* Step Actions */
.step-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-action-btn {
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.step-action-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.step-action-btn.secondary {
  background: #f3f4f6;
  color: #374151;
}

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

/* Benefits List */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.benefits-list li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #374151;
}

.benefits-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

/* Navigation Buttons */
.onboarding-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px 30px;
  border-top: 1px solid #e5e7eb;
}

.btn-onboarding-nav {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-onboarding-back {
  background: transparent;
  color: #6b7280;
}

.btn-onboarding-back:hover {
  background: #f3f4f6;
  color: #374151;
}

.btn-onboarding-next {
  background: #667eea;
  color: white;
  padding: 10px 24px;
}

.btn-onboarding-next:hover {
  background: #5568d3;
  transform: translateY(-1px);
}

.btn-onboarding-skip {
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  padding: 8px 16px;
}

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

/* Completion Confetti */
.completion-confetti {
  font-size: 60px;
  text-align: center;
  margin: 20px 0;
  animation: bounce 0.6s ease;
}

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

/* Mobile Responsive */
@media (max-width: 640px) {
  .onboarding-modal {
    width: 95%;
    max-height: 95vh;
  }

  .onboarding-header,
  .onboarding-content,
  .onboarding-nav {
    padding-left: 24px;
    padding-right: 24px;
  }

  .onboarding-header h2 {
    font-size: 24px;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .step-title {
    font-size: 20px;
  }

  .onboarding-progress {
    padding: 20px 24px 15px;
  }

  .progress-line {
    width: 20px;
  }
}

/* ===== IN-CONTEXT UPGRADE PROMPTS ===== */

/* Inline Upgrade Prompt */
.inline-upgrade-prompt {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideInPrompt 0.4s ease;
}

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

.inline-upgrade-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.inline-upgrade-content {
  flex: 1;
}

.inline-upgrade-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.inline-upgrade-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.inline-upgrade-action {
  flex-shrink: 0;
}

.btn-inline-upgrade {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-inline-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Feature Lock Overlay */
.feature-lock-overlay {
  position: relative;
}

.feature-lock-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.95) 60%);
  border-radius: 12px;
  pointer-events: none;
}

.feature-lock-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.feature-lock-badge:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

/* Tooltip Upgrade Prompt */
.upgrade-tooltip {
  position: absolute;
  background: #1f2937;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: tooltipFadeIn 0.2s ease;
}

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

.upgrade-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
}

.upgrade-tooltip .pro-badge {
  display: inline-block;
  background: #fbbf24;
  color: #1f2937;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .inline-upgrade-prompt {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .inline-upgrade-action {
    width: 100%;
  }

  .btn-inline-upgrade {
    width: 100%;
  }
}
