/* ===================================================
   FitnessKiezen — Keuzehulp wizard (modal)
   =================================================== */

/* ===== MODAL OVERLAY ===== */
.wizard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 24px;
  overflow-y: auto;
}
.wizard-overlay.open {
  display: flex;
}
.wizard-modal {
  background: var(--bg);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  padding: 24px 32px 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wizard-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.wizard-close:hover { color: var(--dark); }

/* ===== PROGRESS BAR ===== */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 0 8px;
}
.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
}
.wizard-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all 0.3s;
}
.wizard-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.wizard-dot.done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wizard-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.wizard-line.done {
  background: var(--accent);
}
.wizard-labels {
  display: flex;
  justify-content: center;
  gap: 52px;
  padding: 8px 0 0;
}
.wizard-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  font-weight: 500;
}
.wizard-label.active {
  color: var(--primary);
  font-weight: 600;
}

.wizard-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.wizard-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.wizard-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* ===== STEP 1: CATEGORY PICKER ===== */
.wizard-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.wizard-cat-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.wizard-cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}
.wizard-cat-card.selected {
  border-color: var(--primary);
  background: rgba(37,99,235,0.04);
}
.wizard-cat-emoji {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.wizard-cat-emoji img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.wizard-cat-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.wizard-cat-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== STEP 2: PREFERENCES ===== */
.wizard-prefs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.pref-group label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.pref-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pref-chip {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.pref-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pref-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== STEP 3: RESULTS ===== */
.wizard-results-intro {
  text-align: center;
  margin-bottom: 24px;
}
.wizard-results-intro p {
  color: var(--text-light);
  font-size: 0.92rem;
}
.wizard-result-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s;
}
.wizard-result-card:first-child {
  border-color: var(--primary);
  background: rgba(37,99,235,0.02);
}
.wizard-result-rank {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.rank-1 { background: var(--primary); color: #fff; }
.rank-2 { background: var(--bg-light); color: var(--primary); border: 2px solid var(--border); }
.rank-3 { background: var(--bg-light); color: var(--text-light); border: 2px solid var(--border); }
.wizard-result-info {
  flex: 1;
}
.wizard-result-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.wizard-result-info .result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.result-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(34,197,94,0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
}
.wizard-result-price {
  text-align: right;
  flex-shrink: 0;
}
.wizard-result-price .price-main {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
}
.wizard-result-price .price-old {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.wizard-result-price .btn-sm {
  margin-top: 8px;
  display: inline-block;
}

/* ===== WIZARD BUTTONS ===== */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.wizard-btn-back {
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  background: none;
  border: 2px solid var(--border);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.wizard-btn-back:hover {
  border-color: var(--text-light);
  color: var(--dark);
}
.wizard-btn-next {
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--primary);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.wizard-btn-next:hover {
  background: var(--primary-dark);
}
.wizard-btn-next:disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
}
.wizard-restart {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.wizard-restart:hover {
  text-decoration: underline;
}

/* ===== EMPTY STATE ===== */
.wizard-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}
.wizard-empty p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .wizard-overlay { padding: 16px; align-items: flex-start; }
  .wizard-modal { padding: 20px; border-radius: 12px; }
  .wizard-categories { grid-template-columns: 1fr; }
  .wizard-cat-card { padding: 16px; }
  .wizard-result-card { flex-direction: column; text-align: center; gap: 12px; }
  .wizard-result-price { text-align: center; }
  .wizard-labels { gap: 32px; }
  .wizard-line { width: 40px; }
}
@media (max-width: 480px) {
  .wizard-overlay { padding: 8px; }
  .wizard-modal { padding: 16px; }
  .wizard-title { font-size: 1.1rem; }
  .pref-chip { padding: 8px 16px; font-size: 0.82rem; }
  .wizard-actions { flex-direction: column; gap: 12px; }
  .wizard-btn-back, .wizard-btn-next { width: 100%; text-align: center; }
}
