/* ═══════════════════════════════════════════════════════════════════════════
   GENDERME — quiz.css
   Styles specific to quiz.html:
   quiz selection cards, progress bar, question card, answer options.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── PAGE WRAPPER ─── */
.quiz-page-wrap {
  padding-top: 80px;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── QUIZ PICK CARDS ─── */
#quiz-select {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.quiz-pick-card {
  background: white;
  border: 2px solid rgba(100,160,220,0.18);
  border-radius: 24px;
  padding: 36px 28px;
  width: 260px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 20px rgba(100,160,220,0.1);
  position: relative;
  overflow: hidden;
}

.quiz-pick-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--pick-color, var(--accent));
  border-radius: 5px 5px 0 0;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.quiz-pick-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(100,160,220,0.2);
  border-color: var(--pick-color, var(--accent));
  background: var(--pick-bg, rgba(91,168,212,0.06));
}

.quiz-pick-card:hover::before { opacity: 1; }

.quiz-pick-featured {
  border-color: var(--pick-color, var(--lavender2));
  background: var(--pick-bg, rgba(152,120,204,0.06));
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(152,120,204,0.2);
}

.quiz-pick-featured:hover { transform: translateY(-12px); }

.pick-popular {
  position: absolute;
  top: 14px; right: -1px;
  background: var(--pick-color, var(--lavender2));
  color: white;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px 4px 10px;
  border-radius: 20px 0 0 20px;
}

.pick-emoji {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.pick-number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--pick-color, var(--accent));
  margin-bottom: 2px;
}

.pick-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.pick-time {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  background: rgba(100,160,220,0.08);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pick-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.pick-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--pick-color, var(--accent));
  color: white;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.quiz-pick-card:hover .pick-btn {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* ─── ACTIVE QUIZ ─── */
#quiz-active {
  display: none;
  padding-top: 100px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.quiz-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 48px 100px;
}

.quiz-progress { margin-bottom: 40px; }

.quiz-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text3);
  text-transform: uppercase;
}

.progress-count {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
}

.progress-bar {
  height: 8px;
  background: rgba(100,160,220,0.12);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--mint), var(--lavender));
  transition: width 0.5s ease;
  border-radius: 8px;
}

/* ─── QUESTION CARD ─── */
.question-card {
  background: white;
  border: 2px solid rgba(100,160,220,0.14);
  border-radius: var(--radius);
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.question-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--mint), var(--lavender), var(--rose));
  border-radius: 4px 4px 0 0;
}

.question-axis {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.question-axis::before {
  content: '';
  width: 16px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 32px;
  color: var(--text);
}

.answer-scale {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-option {
  padding: 16px 20px;
  border: 2px solid rgba(100,160,220,0.18);
  border-radius: var(--radius2);
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(240,247,255,0.5);
  color: var(--text2);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  text-align: left;
}

.answer-option:hover {
  border-color: var(--accent);
  background: var(--accent3);
  color: var(--text);
  transform: translateX(4px);
}

.answer-option.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(91,168,212,0.1), rgba(184,160,224,0.1));
  color: var(--accent2);
  font-weight: 600;
}

.answer-option .opt-indicator {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(100,160,220,0.3);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.25s;
  background: white;
}

.answer-option.selected .opt-indicator {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,168,212,0.2);
}

.answer-option.selected .opt-indicator::after {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  height: 100%;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .quiz-container { padding: 0 20px 72px; }
  .quiz-pick-card { width: 100%; max-width: 340px; }
}
