/* ═══════════════════════════════════════
   QUIZ COMPONENT STYLES
   ═══════════════════════════════════════ */

.quiz-container {
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: 12px;
  padding: 40px;
  margin-top: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-c);
  padding-bottom: 16px;
}

.quiz-progress-bar {
  height: 8px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border-c);
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  width: 0%;
  transition: width 0.3s ease;
}

.question-text {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.6;
  color: var(--text);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-label {
  display: flex;
  align-items: flex-start;
  padding: 18px;
  border: 1.5px solid var(--border-c);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface);
}

.option-label:hover {
  border-color: var(--blue-mid);
  background: var(--surface2);
}

.option-label.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 192, 0.1);
}

.option-input {
  margin-top: 4px;
  margin-right: 12px;
  cursor: pointer;
}

.option-letter {
  font-weight: 700;
  margin-right: 8px;
  color: var(--blue);
  min-width: 24px;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-c);
}

.btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-c);
  color: var(--text-muted);
}

.btn-outline:hover:not(:disabled) {
  background: var(--surface2);
  color: var(--text);
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-mid);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Review Screen styles */
.review-item {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--border-c);
  border-radius: 12px;
  background: var(--surface);
}

.review-item.correct-ans {
  border-left: 6px solid var(--teal);
}

.review-item.incorrect-ans {
  border-left: 6px solid #ef4444; /* red */
}

.explanation-box {
  margin-top: 16px;
  padding: 16px;
  background: var(--surface2);
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  border-left: 4px solid var(--gold);
}

.score-banner {
  background: var(--blue-light);
  color: var(--blue);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 32px;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--blue);
}

/* Standalone Page specific wrappers */
.standalone-wrapper {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.standalone-header {
  text-align: center;
  margin-bottom: 40px;
}

.standalone-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  background: var(--surface);
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-c);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.footer-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-xmuted);
  font-size: 13px;
}
