/* Lumorra – teszt-felület stílusok (a styles.css tokenekre épül) */

.quiz-main { padding-block: clamp(2rem, 5vw, 4rem); min-height: 70vh; }

/* Intro */
.quiz-intro { max-width: 620px; margin: 2rem auto; text-align: center; }
.quiz-intro h1 { color: var(--ink); margin-top: .6rem; }
.quiz-intro p { font-size: 1.1rem; margin-bottom: 1.6rem; }

/* Haladásjelző */
.quiz-flow { max-width: 640px; margin: 0 auto; }
.quiz-progress { height: 8px; background: var(--brand-light); border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .25s ease; }
.quiz-progress-label { text-align: center; color: var(--ink-soft); font-size: .9rem; margin: .6rem 0 1.4rem; font-weight: 600; }

/* Cél-választó */
.quiz-goal { max-width: 640px; margin: 0 auto; text-align: center; }
.quiz-goal h2 { color: var(--ink); margin-top: .5rem; }
.quiz-goal .wv-head { font-size: 1.15rem; margin-top: 1.8rem; }
.goal-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.4rem 0; text-align: left; }
.goal-opt { display: flex; align-items: center; gap: .7rem; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 1rem; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--ink); font-family: inherit; transition: border-color .15s ease, background .15s ease; }
.goal-opt:hover { border-color: var(--brand-mint); background: var(--brand-light); }
.goal-opt.selected { border-color: var(--brand); background: var(--brand-light); }
.goal-opt .go-ic { font-size: 1.5rem; }
@media (max-width: 560px) { .goal-options { grid-template-columns: 1fr; } }

/* Kérdés-kártya */
.quiz-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 2rem 1.8rem; min-height: 220px;
}
.quiz-dim { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--brand-dark); margin: 0 0 .6rem; }
.quiz-question { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--ink); margin: 0 0 1.6rem; line-height: 1.3; }

/* Válaszok */
.quiz-options { display: flex; flex-direction: column; gap: .6rem; }
.opt {
  display: flex; align-items: center; gap: .8rem; width: 100%;
  text-align: left; background: #fff; border: 2px solid var(--line);
  border-radius: 12px; padding: .85rem 1rem; cursor: pointer;
  font-size: 1rem; color: var(--ink); font-weight: 500;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.opt:hover { border-color: var(--brand-mint); background: var(--brand-light); }
.opt:active { transform: scale(.99); }
.opt.selected { border-color: var(--brand); background: var(--brand-light); }
.opt .dot {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center;
}
.opt.selected .dot { border-color: var(--brand); background: var(--brand); }
.opt.selected .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* Likert vízszintes skála nagyobb kijelzőn */
.quiz-options.likert { flex-direction: row; gap: .5rem; }
.quiz-options.likert .opt {
  flex: 1 1 0; flex-direction: column; text-align: center; gap: .5rem;
  padding: .9rem .4rem; font-size: .82rem;
}
.quiz-options.likert .opt .num { font-size: 1.2rem; font-weight: 800; color: var(--brand-dark); }

.quiz-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.quiz-nav .btn { min-width: 120px; }
#backBtn:disabled { opacity: .4; cursor: not-allowed; }
#nextBtn:disabled { opacity: .5; cursor: not-allowed; }

/* Eredmény */
.quiz-result { max-width: 820px; margin: 0 auto; }
.result-head { text-align: center; margin-bottom: 2rem; }
.result-head h2 { color: var(--ink); }
.profile-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 2rem; }
.profile-box h3 { color: var(--ink); margin-top: 0; }
.profile-bars { display: grid; gap: .7rem; }
.pbar { display: grid; grid-template-columns: 160px 1fr 44px; align-items: center; gap: .8rem; font-size: .9rem; }
.pbar .track { height: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pbar .fill { height: 100%; background: var(--brand); border-radius: 999px; }
.pbar .val { text-align: right; font-weight: 700; color: var(--brand-dark); }

.result-matches h3 { color: var(--ink); text-align: center; margin-bottom: 1.2rem; }
.match-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 1.3rem; }
.mcard .mtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.mcard .mname { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.mcard .mname small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .85rem; }
.mcard .mscore { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; text-align: center; line-height: 1; color: #fff; font-weight: 800; flex: 0 0 auto; }
.mcard .mscore small { display: block; font-size: .5rem; font-weight: 600; opacity: .9; }
.mcard .mexplain { font-size: .92rem; color: var(--ink); background: var(--brand-light); border-radius: 10px; padding: .7rem .8rem; margin: 0 0 .6rem; }
.mcard .mblock { margin-top: .7rem; }
.mcard .mblock h4 { margin: 0 0 .3rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.mcard .mwhy h4 { color: var(--brand-dark); }
.mcard .mwatch h4 { color: #b8862b; }
.mcard .mblock ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--ink-soft); }
.mcard .mcap { margin-top: .7rem; font-size: .82rem; color: #b8862b; background: #fdf6e9; border-radius: 8px; padding: .5rem .7rem; }
.result-actions { text-align: center; margin-top: 2rem; }

@media (max-width: 560px) {
  .quiz-options.likert { flex-direction: column; }
  .quiz-options.likert .opt { flex-direction: row; text-align: left; font-size: 1rem; }
  .pbar { grid-template-columns: 110px 1fr 40px; font-size: .82rem; }
}
