/* Onboarding Page Styles */
.onboarding-page {
  min-height: 100vh;
  max-height: 100vh;
  background: #0a0a0f;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow: hidden;
}

.onboarding-container {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.onboarding-card {
  background: #1a1a24;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Home Button */
.home-button {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.home-button:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.home-button svg {
  width: 18px;
  height: 18px;
}

/* Progress Indicator */
.progress-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
  flex-shrink: 0;
}

.progress-dash {
  width: 48px;
  height: 3px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.progress-dash.active {
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

/* Step Content */
.onboarding-step {
  display: none;
  animation: fadeIn 0.3s ease;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.onboarding-step.active {
  display: flex;
  flex-direction: column;
}

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

.step-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  text-align: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.step-subtitle {
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.8);
  margin: 0 0 20px 0;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Form Options */
.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.form-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #151520;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.experience-card {
  padding: 20px;
}

.option-card:hover {
  background: #1a1a28;
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-radius: 50%;
  margin-right: 16px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-card input[type="radio"]:checked + .radio-custom {
  border-color: #3b82f6;
  background: #3b82f6;
}

.option-card input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}

.option-card input[type="radio"]:checked ~ .option-text {
  color: #ffffff;
}

.option-card input[type="radio"]:checked ~ .option-text {
  color: #ffffff;
  font-weight: 600;
}

.option-card:has(input[type="radio"]:checked) {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
}

.option-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Buttons */
.btn-continue,
.btn-back {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  width: 100%;
}

.btn-continue {
  background: #151520;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-continue:hover:not(:disabled) {
  background: #1a1a28;
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

.btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-back {
  background: transparent;
  color: rgba(148, 163, 184, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-back:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #ffffff;
}

.step-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  flex-shrink: 0;
}

.step-actions .btn-back {
  flex: 0 0 auto;
  min-width: 80px;
  width: auto;
  padding: 12px 20px;
}

.step-actions .btn-continue,
.step-actions .btn-next {
  flex: 1;
}

/* Experience Level Options */
.experience-options {
  margin-bottom: 20px;
}

.experience-card {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  gap: 14px;
}

.experience-card .radio-custom {
  display: none;
}

.experience-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.beginner-icon {
  background: #22c55e;
  color: #ffffff;
}

.intermediate-icon {
  background: #3b82f6;
  color: #ffffff;
}

.advanced-icon {
  background: #f97316;
  color: #ffffff;
}

.experience-icon svg {
  width: 24px;
  height: 24px;
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.experience-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.experience-description {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.4;
}

.experience-card input[type="radio"]:checked ~ .experience-content .experience-name {
  color: #ffffff;
}

.experience-card:has(input[type="radio"]:checked) {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

.experience-card:has(input[type="radio"]:checked).beginner-card {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.4);
}

.experience-card:has(input[type="radio"]:checked).advanced-card {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.4);
}

.experience-card:has(input[type="radio"]:checked) .beginner-icon {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.experience-card:has(input[type="radio"]:checked) .intermediate-icon {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.experience-card:has(input[type="radio"]:checked) .advanced-icon {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Back button with icon */
.step-actions .btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.step-actions .btn-back svg {
  width: 18px;
  height: 18px;
}

/* Next button styling */
.btn-next {
  background: #3b82f6;
  color: #ffffff;
  border: none;
}

.btn-next:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.interest-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #151520;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.interest-chip:hover {
  background: #1a1a28;
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

.interest-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interest-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(148, 163, 184, 0.8);
  transition: color 0.2s ease;
}

.interest-chip input[type="checkbox"]:checked ~ .interest-icon {
  color: #a855f7;
}

.interest-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.interest-chip input[type="checkbox"]:checked ~ .interest-text {
  color: #ffffff;
  font-weight: 600;
}

.interest-chip:has(input[type="checkbox"]:checked) {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}

/* Goal Options */
.goal-options {
  margin-bottom: 20px;
}

.goal-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.goal-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.discipline-icon {
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #ffffff;
}

.reduce-time-icon {
  background: #3b82f6;
  color: #ffffff;
}

.avoid-quality-icon {
  background: #a855f7;
  color: #ffffff;
}

.control-risk-icon {
  background: #22c55e;
  color: #ffffff;
}

.exploring-icon {
  background: #4b5563;
  color: #ffffff;
}

.goal-icon svg {
  width: 20px;
  height: 20px;
}

.goal-card input[type="radio"]:checked ~ .option-text {
  color: #ffffff;
  font-weight: 600;
}

.goal-card:has(input[type="radio"]:checked) {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

.goal-card:has(input[type="radio"]:checked) .discipline-icon {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.goal-card:has(input[type="radio"]:checked) .reduce-time-icon {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.goal-card:has(input[type="radio"]:checked) .avoid-quality-icon {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.goal-card:has(input[type="radio"]:checked) .control-risk-icon {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.goal-card:has(input[type="radio"]:checked) .exploring-icon {
  box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.2);
}

.goal-card .radio-custom {
  display: none;
}

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

.modal-overlay.show {
  display: flex;
}

.modal-container {
  background: #1a1a24;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  max-width: 400px;
  width: 90%;
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

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

.modal-content {
  padding: 32px 28px;
  text-align: center;
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  color: #3b82f6;
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.modal-message {
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.9);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.modal-button {
  width: 100%;
  padding: 14px 24px;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.modal-button:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
  .onboarding-card {
    padding: 32px 24px;
  }

  .step-title {
    font-size: 1.75rem;
  }

  .step-subtitle {
    font-size: 0.9rem;
  }

  .option-card {
    padding: 14px 16px;
  }

  .option-text {
    font-size: 0.95rem;
  }

  .interests-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .interest-chip {
    padding: 14px 16px;
  }

  .interest-text {
    font-size: 0.9rem;
  }

  .modal-container {
    max-width: 90%;
    margin: 20px;
  }

  .modal-content {
    padding: 24px 20px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-message {
    font-size: 0.9rem;
  }
}
