/*
 * quizlet.css — Build H-6: Quizlet Section
 * Ported from gift.bestyearyet.com hero mechanic.
 * Internal quizlet styles preserved as-is per spec.
 */

/* ── Section wrapper ── */
.section-quizlet {
  background: var(--color-off-white);
  padding: 120px 0;
}

.section-quizlet .section-content {
  max-width: 800px;
}

/* ── Quizlet container — centered ── */
.quizlet-wrap {
  text-align: center;
}

/* ── Ported mechanic tokens (scoped) ── */
.quizlet-wrap {
  --qz-primary: #3C93F2;
  --qz-secondary: #EFA625;
  --qz-energy: #E8625C;
  --qz-text-dark: #1a1a1a;
  --qz-text-light: #484849;
  --qz-border: #e2e8f0;
  --qz-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ── Phase container ── */
.mechanic-phase {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: quizletFadeInUp 0.5s ease;
}

.mechanic-phase.active {
  display: flex;
}

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

/* ── Phase label ("Imagine this." / "Now be honest.") ── */
.mechanic-label {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--qz-secondary);
}

/* ── Phase prompt ── */
.mechanic-prompt {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--qz-text-dark);
  line-height: 1.25;
  max-width: 640px;
}

.mechanic-prompt em {
  font-style: normal;
  color: var(--qz-primary);
}

/* ── Emotion chips ── */
.mechanic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid var(--qz-border);
  background: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  color: var(--qz-text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--qz-shadow-card);
  user-select: none;
  -webkit-user-select: none;
  min-width: 110px;
  text-align: center;
}

.chip:hover {
  border-color: var(--qz-primary);
  color: var(--qz-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(60, 147, 242, 0.15);
}

.chip.selected {
  background: var(--qz-primary);
  border-color: var(--qz-primary);
  color: #ffffff;
  transform: scale(1.05);
}

.chip.chip-negative:hover {
  border-color: var(--qz-energy);
  color: var(--qz-energy);
  box-shadow: 0 8px 20px rgba(232, 98, 92, 0.15);
}

.chip.chip-negative.selected {
  background: var(--qz-energy);
  border-color: var(--qz-energy);
  color: #ffffff;
}

/* ── Hint text ── */
.mechanic-hint {
  font-size: 0.85rem;
  color: var(--color-mid-gray);
  font-style: italic;
}

/* ── Phase 3: Bridge reveal ── */
.hero-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  animation: quizletFadeInUp 0.6s ease;
}

.bridge-statement {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--qz-text-dark);
}

.bridge-highlight {
  color: var(--qz-secondary);
}

.bridge-body {
  font-size: 1.1rem;
  color: var(--qz-text-light);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Replay button ── */
.quizlet-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid rgba(72, 72, 73, 0.15);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quizlet-replay:hover {
  border-color: rgba(72, 72, 73, 0.35);
  color: var(--color-text-primary);
}

/* ── CTA block below quizlet ── */
.quizlet-cta {
  margin-top: 40px;
  text-align: center;
}

.quizlet-cta p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .section-quizlet {
    padding: 80px 0;
  }

  .mechanic-label {
    font-size: 1.6rem;
  }

  .mechanic-chips {
    gap: 10px;
  }

  .chip {
    padding: 10px 14px;
    min-width: 80px;
    font-size: 0.9rem;
  }

  .bridge-statement {
    font-size: 1.5rem;
  }
}
