/* ============================================================
   Onboarding Wizard — Full-screen overlay with 4 interactive steps
   ============================================================ */

.onboarding-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.onboarding-wizard-overlay.active {
  opacity: 1;
}

.wizard-container {
  background: white;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2rem 1.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: wizardSlideUp 0.4s ease;
}

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

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

.wizard-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0e0e0;
  transition: all 0.3s ease;
}

.wizard-progress-dot.active {
  background: var(--primary-green, #006a4e);
  width: 24px;
  border-radius: 4px;
}

.wizard-progress-dot.completed {
  background: var(--primary-green, #006a4e);
}

/* Steps */
.wizard-step {
  display: none;
  text-align: center;
  animation: wizardFadeIn 0.3s ease;
}

.wizard-step.active {
  display: block;
}

.wizard-step.exit {
  animation: wizardFadeOut 0.2s ease;
}

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

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

.wizard-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green, #006a4e), #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: white;
}

.wizard-step h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.wizard-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Step 1: Features */
.wizard-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.wizard-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  text-align: left;
}

.wizard-feature i {
  color: var(--primary-green, #006a4e);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.wizard-feature span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

/* Step 2: Preference Questions */
.wizard-question {
  margin-bottom: 1.25rem;
  text-align: left;
}

.wizard-question h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.wizard-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.wizard-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.wizard-option-card i {
  font-size: 1.25rem;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.wizard-option-card:hover {
  border-color: var(--primary-green, #006a4e);
  background: #f0fdf4;
}

.wizard-option-card.selected {
  border-color: var(--primary-green, #006a4e);
  background: #ecfdf5;
  color: var(--primary-green, #006a4e);
}

.wizard-option-card.selected i {
  color: var(--primary-green, #006a4e);
}

/* Step 3: League Cards */
.wizard-leagues-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.wizard-league-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.wizard-league-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.wizard-league-header {
  padding: 0.75rem;
  min-height: 40px;
  display: flex;
  align-items: flex-start;
}

.wizard-league-body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wizard-league-body h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.wizard-league-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.wizard-league-meta i {
  margin-right: 0.25rem;
}

.wizard-league-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}

.wizard-league-fee {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-green, #006a4e);
}

.wizard-league-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b82f6;
}

.wizard-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
}

.wizard-loading i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.wizard-empty-leagues {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
}

.wizard-empty-leagues i {
  font-size: 2rem;
  color: #d1d5db;
  margin-bottom: 0.75rem;
  display: block;
}

.wizard-browse-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary-green, #006a4e);
  font-weight: 600;
  text-decoration: none;
}

.wizard-browse-link:hover {
  text-decoration: underline;
}

/* Step 4: Extras */
.wizard-extras {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  text-align: left;
}

.wizard-extra-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  align-items: flex-start;
}

.wizard-extra-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-green, #006a4e), #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.wizard-extra-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.wizard-extra-content p {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.wizard-extra-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-green, #006a4e);
  text-decoration: none;
}

.wizard-extra-link:hover {
  text-decoration: underline;
}

/* Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.wizard-skip-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0;
  font-family: inherit;
  transition: color 0.2s;
}

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

.wizard-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.wizard-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.wizard-back-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.wizard-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-green, #006a4e), #10b981);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.wizard-next-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .wizard-container {
    padding: 1.5rem 1.25rem 1rem;
    border-radius: 16px;
    max-height: 95vh;
  }

  .wizard-step h2 {
    font-size: 1.25rem;
  }

  .wizard-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .wizard-option-card {
    padding: 0.75rem 0.25rem;
    font-size: 0.75rem;
  }

  .wizard-option-card i {
    font-size: 1.1rem;
  }

  .wizard-leagues-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .wizard-league-card {
    flex-direction: row;
  }

  .wizard-league-header {
    min-height: unset;
    width: 80px;
    min-height: 100%;
  }

  .wizard-nav {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .wizard-nav-buttons {
    width: 100%;
  }

  .wizard-next-btn {
    flex: 1;
    justify-content: center;
  }

  .wizard-back-btn {
    flex: 0;
  }
}

@media (max-width: 400px) {
  .wizard-container {
    padding: 1.25rem 1rem 0.75rem;
  }

  .wizard-icon {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
}
