/* COMP09031 — companion site styles. */

/* --- Lecture page header pills --- */

.lecture-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9em;
  color: #4b5563;
}

.lecture-meta-item {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85em;
}

/* --- MCQ widget --- */

.mcq-header h3 {
  margin: 1.5rem 0 0.25rem;
  color: #0a2540;
}

.mcq-meta {
  font-size: 0.9em;
  color: #6b7280;
  margin: 0 0 1rem;
}

.mcq-score {
  background: #f5f7fa;
  border-left: 3px solid #00b8d4;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  font-weight: 500;
  font-size: 0.95em;
  color: #1f2937;
}

.mcq-score-complete {
  background: #ecfdf5;
  border-left-color: #16a34a;
  color: #14532d;
}

.mcq-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mcq-qnum {
  font-size: 0.8em;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.mcq-question {
  font-weight: 500;
  margin-bottom: 0.85rem;
  color: #111827;
  font-size: 1.05em;
}

.mcq-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mcq-option {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font: inherit;
  color: #1f2937;
  transition: background 100ms ease, border-color 100ms ease;
}

.mcq-option:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #00b8d4;
}

.mcq-option:disabled {
  cursor: default;
}

.mcq-option.mcq-correct {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
  font-weight: 500;
}

.mcq-option.mcq-incorrect {
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
}

.mcq-feedback {
  margin-top: 0.8rem;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.95em;
  line-height: 1.5;
}

.mcq-feedback-correct {
  background: #ecfdf5;
  border-left: 3px solid #16a34a;
  color: #14532d;
}

.mcq-feedback-incorrect {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  color: #7f1d1d;
}

.mcq-righttext {
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #f9fafb;
  border-left: 2px solid #d1d5db;
  font-size: 0.9em;
  color: #4b5563;
}

/* --- Dark theme overrides --- */

[data-bs-theme="dark"] .mcq-card,
[data-bs-theme="dark"] .mcq-option {
  background: #1f2937;
  color: #e5e7eb;
  border-color: #374151;
}

[data-bs-theme="dark"] .mcq-question {
  color: #f9fafb;
}

[data-bs-theme="dark"] .mcq-score {
  background: #1f2937;
  color: #e5e7eb;
}

[data-bs-theme="dark"] .lecture-meta-item {
  background: #1f2937;
  border-color: #374151;
  color: #d1d5db;
}
