/* quizLinks/bookQuiz.css */

:root{
  --card-bg: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 16px 34px rgba(45,39,28,0.055);
  --green: #4f6f52;
  --green-soft: rgba(79,111,82,0.10);
  --danger: #ef4444;
}

body{
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top left, #fffaf0 0, #f7f3ea 38%, #f5f1e8 100%);
  color: var(--text);
}

.quiz-shell{
  padding: 18px 12px 36px;
  display: grid;
  place-items: start center;
}

.quiz-card{
  width: min(980px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quiz-top{
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #fbfcf8, #ffffff);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.quiz-title{
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.quiz-subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.35;
}

.bars{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.bar-row{
  display: grid;
  gap: 8px;
}

.bar-label{
  font-size: 13px;
  color: #415063;
  font-weight: 800;
}

.bar{
  height: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.07);
  overflow: hidden;
}

.bar-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--green);
  transition: width 280ms ease;
}

.dots{
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.10);
}

.dot.on{
  background: var(--green);
  border-color: rgba(79,111,82,0.22);
  box-shadow: 0 10px 18px rgba(79,111,82,0.16);
}

.quiz-body{
  padding: 18px;
}

.hidden{ display: none; }

.question{
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
}

.choices{
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.choice{
  text-align: left;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 750;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.choice:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0,0,0,0.08);
  border-color: rgba(79,111,82,0.22);
}

.choice:disabled{
  cursor: default;
  opacity: 0.95;
}

.choice.correct{
  border-color: rgba(79,111,82,0.55);
  background: rgba(79,111,82,0.08);
}

.choice.wrong{
  border-color: rgba(239,68,68,0.7);
  background: rgba(239,68,68,0.06);
}

.feedback{
  min-height: 22px;
  font-weight: 800;
  color: #3b4a5b;
  margin: 8px 0 10px;
}

.feedback.good{ color: #1f7a46; }
.feedback.bad{ color: #b91c1c; }

.actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.right-actions{
  display: flex;
  gap: 10px;
}

.btn{
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  background: var(--green);
  color: white;
  box-shadow: 0 14px 24px rgba(79,111,82,0.16);
}

.btn:disabled{
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.btn.ghost{
  background: transparent;
  color: #274155;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: none;
}

.results-title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 950;
}

.results-score{
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 8px;
}

.results-msg{
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 14px;
}
