/* ── Quiz Finder ─────────────────────────────────── */
.quiz-finder {
  --_primary: var(--qf-primary, #ee88a4);
  --_primary-light: var(--qf-primary-light, #fdf0f3);
  --_bg: var(--qf-bg, #fff);
  --_text: var(--qf-text, #2d2d2d);
  --_muted: var(--qf-muted, #8a8a8a);

  background: var(--_bg);
  border-radius: 2.5rem;
  padding: 2.5rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.07);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Progress Dots ──────────────────────────────── */
.qf-progress {
  display: flex;
  gap: .4rem;
  margin-bottom: 2rem;
}
.qf-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--_primary-light);
  transition: background .4s;
  cursor: pointer;
}
.qf-dot--done {
  background: var(--_primary);
}
.qf-dot--active {
  background: color-mix(in srgb, var(--_primary) 60%, var(--_primary-light));
}

/* ── Step Container ─────────────────────────────── */
.qf-body {
  position: relative;
}
.qf-step {
  animation: qfSlideIn .4s ease both;
}
@keyframes qfSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Question ───────────────────────────────────── */
.qf-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--_text);
  margin-bottom: .5rem;
  text-transform: uppercase;
}
.qf-subtitle {
  font-size: .85rem;
  color: var(--_muted);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

/* ── Choice Grid ────────────────────────────────── */
.qf-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}
@media (max-width: 480px) {
  .qf-choices { grid-template-columns: 1fr; }
}
.qf-choice {
  background: var(--_primary-light);
  border: 2px solid transparent;
  border-radius: 1.2rem;
  padding: .9rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  user-select: none;
}
.qf-choice:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--_primary) 20%, transparent);
}
.qf-choice--selected {
  background: var(--_primary);
  border-color: var(--_primary);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--_primary) 35%, transparent);
}
.qf-choice-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: .4rem;
  line-height: 1;
}
.qf-choice-label {
  font-weight: 700;
  font-size: .76rem;
  color: var(--_text);
}
.qf-choice--selected .qf-choice-label {
  color: #fff;
}

/* ── Navigation ─────────────────────────────────── */
.qf-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: .8rem;
}
.qf-btn {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  border: none;
  border-radius: 50px;
  padding: .62rem 1.5rem;
  cursor: pointer;
  transition: all .22s;
  font-family: inherit;
}
.qf-btn--next {
  background: var(--_primary);
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--_primary) 35%, transparent);
}
.qf-btn--next:hover {
  filter: brightness(.9);
  transform: translateY(-2px);
}
.qf-btn--back {
  background: var(--_primary-light);
  color: var(--_muted);
}
.qf-btn--back:hover {
  background: var(--_primary);
  color: #fff;
}

/* ── Shake animation ────────────────────────────── */
@keyframes qfShake {
  0%,100% { transform: translateX(0) }
  20%,60% { transform: translateX(-6px) }
  40%,80% { transform: translateX(6px) }
}
.qf-shake {
  animation: qfShake .4s ease;
}

/* ── Result ─────────────────────────────────────── */
.qf-result {
  text-align: center;
  animation: qfResultIn .6s ease both;
}
@keyframes qfResultIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes qfFloat {
  0%,100% { transform: translateY(0) }
  50%     { transform: translateY(-8px) }
}
.qf-result-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 1rem;
  padding-top: 10px;
  animation: qfFloat 3s ease-in-out infinite;
  line-height: 1;
}
.qf-result-image {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 10px auto 1rem;
  display: block;
  animation: qfFloat 3s ease-in-out infinite;
}
.qf-result-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--_text);
  margin-bottom: .5rem;
  text-transform: uppercase;
}
.qf-result-desc {
  font-size: .9rem;
  color: var(--_muted);
  line-height: 1.78;
  margin-bottom: .5rem;
}
.qf-result-price {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--_primary);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.qf-result-tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}
.qf-result-tag {
  background: var(--_primary-light);
  border-radius: 50px;
  padding: .25rem .75rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--_muted);
}
.qf-btn--restart {
  background: var(--_primary-light);
  color: var(--_muted);
  margin-top: 1rem;
  width: 100%;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  border: none;
  border-radius: 50px;
  padding: .62rem 1.5rem;
  cursor: pointer;
  transition: all .22s;
  font-family: inherit;
}
.qf-btn--restart:hover {
  background: var(--_primary);
  color: #fff;
}

/* ── Empty state (editor placeholder) ───────────── */
.qf-empty {
  text-align: center;
  padding: 2rem;
  color: var(--_muted);
  font-size: .9rem;
}
