/* CourseQuiz — shared styles for slides + notes */

.cq-wrap {
  max-width: 46em;
  margin: 0 auto;
  text-align: left;
  font-size: 0.95em;
}

.cq-question {
  background: rgba(30, 42, 58, 0.92);
  border-radius: 0.5em;
  padding: 0.85em 1.05em;
  margin-bottom: 0.7em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cq-prompt {
  margin: 0 0 0.55em;
  color: #e8eef5;
  font-size: 0.92em;
  line-height: 1.35;
}

.cq-btn-row,
.cq-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.cq-btn,
.cq-opt,
.cq-chip,
.cq-btn-reset {
  border: none;
  border-radius: 0.35em;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}

.cq-btn {
  padding: 0.4em 1.15em;
  font-size: 0.85em;
  color: #fff;
}

.cq-btn-true {
  background: #27ae60;
}

.cq-btn-false {
  background: #c0392b;
}

.cq-btn:hover,
.cq-opt:hover,
.cq-chip:hover,
.cq-btn-reset:hover {
  opacity: 0.88;
}

.cq-btn:disabled,
.cq-opt:disabled,
.cq-chip:disabled {
  cursor: default;
  opacity: 0.95;
}

.cq-opt {
  padding: 0.4em 0.85em;
  font-size: 0.82em;
  background: #2a3344;
  color: #e0e6ef;
  border: 1px solid #5a6578;
  text-align: left;
  max-width: 100%;
}

.cq-opt-correct {
  background: #2d6a2d !important;
  border-color: #4caf50 !important;
  color: #c8ffc8 !important;
}

.cq-opt-wrong {
  background: #6a2d2d !important;
  border-color: #f44 !important;
  color: #ffc8c8 !important;
}

.cq-opt-done {
  opacity: 0.55;
  pointer-events: none;
}

.cq-feedback {
  margin-top: 0.45em;
  font-size: 0.8em;
  font-style: italic;
  min-height: 1.1em;
  color: #c5d0dc;
}

.cq-feedback.cq-ok {
  color: #2ecc71;
}

.cq-feedback.cq-bad {
  color: #e74c3c;
}

.cq-score {
  text-align: center;
  font-size: 0.95em;
  color: #2ecc71;
  margin-top: 0.55em;
  font-weight: 700;
}

.cq-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
  margin-bottom: 0.75em;
  min-height: 2.2em;
}

.cq-chip {
  padding: 0.35em 0.75em;
  font-size: 0.8em;
  background: #243044;
  color: #e8eef5;
  border: 1px solid #6a778c;
}

.cq-chip-selected {
  outline: 3px solid #ffd54f;
  outline-offset: 2px;
}

.cq-chip-correct {
  background: #2d6a2d !important;
  border-color: #4caf50 !important;
}

.cq-chip-wrong {
  background: #6a2d2d !important;
  border-color: #f44 !important;
}

.cq-buckets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
  gap: 0.6em;
  margin-bottom: 0.6em;
}

.cq-bucket {
  background: rgba(20, 30, 44, 0.9);
  border: 1px dashed #6a778c;
  border-radius: 0.45em;
  padding: 0.55em;
  min-height: 6em;
  cursor: pointer;
}

.cq-bucket:hover {
  border-color: #ffd54f;
}

.cq-bucket-title {
  margin: 0 0 0.4em;
  font-size: 0.85em;
  color: #ffd54f;
  text-align: center;
}

.cq-bucket-drop {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  min-height: 2.5em;
}

.cq-btn-reset {
  display: block;
  margin: 0.4em auto 0;
  padding: 0.35em 1em;
  font-size: 0.75em;
  background: #3a4658;
  color: #fff;
}

.cq-ask-cue {
  text-align: center;
  font-size: 0.82em;
  color: #ffd54f;
  margin: 0 0 0.65em;
  font-weight: 600;
}

.cq-ask-hint {
  text-align: center;
  font-size: 0.72em;
  color: #b8c4d4;
  margin: -0.35em 0 0.55em;
}

.cq-btn-reveal {
  display: inline-block;
  margin-top: 0.55em;
  padding: 0.4em 1.1em;
  font-size: 0.8em;
  background: #005f9e;
  color: #fff;
  border: 2px solid #ffd54f;
}

.cq-btn-reveal:hover {
  background: #004a7c;
}

.cq-btn-reveal:disabled {
  opacity: 0.55;
  cursor: default;
}

.cq-picked {
  outline: 3px solid #ffd54f !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.cq-mode-ask .cq-question {
  border-color: rgba(255, 213, 79, 0.35);
}

/* Focus rings for classroom / projector accessibility */
.reveal .slides .cq-btn:focus,
.reveal .slides .cq-btn:focus-visible,
.reveal .slides .cq-opt:focus,
.reveal .slides .cq-opt:focus-visible,
.reveal .slides .cq-chip:focus,
.reveal .slides .cq-chip:focus-visible,
.reveal .slides .cq-btn-reset:focus,
.reveal .slides .cq-btn-reset:focus-visible {
  outline: 3px solid #ffd54f !important;
  outline-offset: 2px;
}

/* Light theme for notes (outside Reveal) */
.course-content .cq-note,
.course-note .cq-note {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #c5d0dc;
  background: linear-gradient(180deg, #fff, #f4f7fb);
}

.course-content .cq-note-title,
.course-note .cq-note-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #0a2540;
}

.course-content .cq-note .cq-prompt,
.course-note .cq-note .cq-prompt {
  color: #1a2433;
  font-style: normal;
}

.course-content .cq-note .cq-opt,
.course-note .cq-note .cq-opt {
  background: #fff;
  color: #1a2433;
  border-color: #8a97ab;
}

.course-content .cq-note-feedback,
.course-note .cq-note-feedback {
  margin-top: 0.65rem;
  font-size: 0.95rem;
}

.course-content .cq-note-feedback.cq-ok,
.course-note .cq-note-feedback.cq-ok {
  color: #1e7a3a;
}

.course-content .cq-note-feedback.cq-bad,
.course-note .cq-note-feedback.cq-bad {
  color: #b3261e;
}

.course-content .cq-callout,
.course-note .cq-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border-left: 4px solid #005f9e;
  background: #f0f6fb;
}

.course-content .cq-callout-try-this,
.course-note .cq-callout-try-this {
  border-left-color: #0b7a4b;
  background: #eef8f3;
}

.course-content .cq-callout-checkpoint,
.course-note .cq-callout-checkpoint {
  border-left-color: #c47b00;
  background: #fff8eb;
}

.course-content .cq-callout-warning,
.course-note .cq-callout-warning {
  border-left-color: #b3261e;
  background: #fdf0ef;
}

.course-content .cq-callout h3,
.course-note .cq-callout h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.course-content .cq-reveal-panel,
.course-note .cq-reveal-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
}

.course-content .cq-reveal-btn,
.course-note .cq-reveal-btn {
  margin-top: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #005f9e;
  background: #005f9e;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.course-content .cq-reveal-btn:hover,
.course-note .cq-reveal-btn:hover {
  background: #004a7c;
}

@media (max-width: 640px) {
  .cq-buckets {
    grid-template-columns: 1fr;
  }

  .cq-opt {
    width: 100%;
  }
}
