/*
 * NSC1501 Bioscience - TEACHING MODE STYLES
 * Interactive, conversational learning experience
 */

/* ============================================
   CSS RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a2e;
  background: #fafafa;
  min-height: 100vh;
}

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --teach-primary: #0066cc;
  --teach-secondary: #00aa55;
  --teach-accent: #ff6b35;
  --teach-bg: #fafafa;
  --teach-card-bg: #ffffff;
  --teach-text: #1a1a2e;
  --teach-text-light: #4a4a6a;
  --teach-border: #e0e0e0;
  --teach-success: #28a745;
  --teach-error: #dc3545;
  --teach-warning: #ffc107;
  --teach-radius: 12px;
  --teach-radius-sm: 8px;
  --teach-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --teach-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   BASE STYLES
   ============================================ */
.teach-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--teach-bg);
  color: var(--teach-text);
  line-height: 1.7;
  min-height: 100vh;
}

.teach-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ============================================
   TEACHING HEADER
   ============================================ */
.teach-header {
  background: var(--teach-card-bg);
  border-bottom: 1px solid var(--teach-border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.teach-header-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.teach-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teach-primary);
  margin: 0;
}

.teach-header-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.teach-nav-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--teach-radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
}

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

.teach-nav-btn--primary:hover {
  background: #0052a3;
}

.teach-nav-btn--secondary {
  background: transparent;
  color: var(--teach-text-light);
  border: 1px solid var(--teach-border);
}

.teach-nav-btn--secondary:hover {
  background: var(--teach-bg);
}

/* ============================================
   LESSON NAVIGATION BAR
   ============================================ */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--teach-card-bg);
  border-radius: var(--teach-radius);
  box-shadow: var(--teach-shadow);
}

.lesson-nav-info {
  display: flex;
  flex-direction: column;
}

.lesson-nav-week {
  font-size: 0.75rem;
  color: var(--teach-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lesson-nav-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.lesson-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.lesson-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--teach-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.lesson-nav-btn--prev {
  background: var(--teach-bg);
  color: var(--teach-text);
  border: 1px solid var(--teach-border);
}

.lesson-nav-btn--prev:hover {
  background: var(--teach-border);
}

.lesson-nav-btn--next {
  background: var(--teach-primary);
  color: white;
}

.lesson-nav-btn--next:hover {
  background: #0052a3;
}

.lesson-nav-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   LESSON TITLE SECTION
   ============================================ */
.lesson-title-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lesson-breadcrumb {
  font-size: 0.875rem;
  color: var(--teach-text-light);
  margin-bottom: 0.5rem;
}

.lesson-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teach-text);
  margin: 0 0 1rem 0;
}

.lesson-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--teach-text-light);
}

.lesson-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   LEARNING GOALS
   ============================================ */
.learning-goals {
  background: linear-gradient(135deg, var(--teach-primary), #0080ff);
  color: white;
  padding: 1.5rem;
  border-radius: var(--teach-radius);
  margin-bottom: 2rem;
}

.learning-goals h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.learning-goals ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-goals li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.learning-goals li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ============================================
   TEACHING CHUNK
   ============================================ */
.teaching-chunk {
  background: var(--teach-card-bg);
  border-radius: var(--teach-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--teach-shadow);
}

.teaching-chunk-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.teaching-chunk-icon {
  font-size: 1.5rem;
}

.teaching-chunk-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teach-text);
  margin: 0;
}

.teaching-chunk-time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--teach-text-light);
  background: var(--teach-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.teaching-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--teach-text);
}

.teaching-content p {
  margin: 0 0 1rem 0;
}

.teaching-content p:last-child {
  margin-bottom: 0;
}

.teaching-content strong {
  color: var(--teach-primary);
  font-weight: 600;
}

.teaching-content em {
  font-style: italic;
  color: var(--teach-text-light);
}

/* Expandable sections */
.expandable-section {
  border: 1px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  margin-top: 1rem;
  overflow: hidden;
}

.expandable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--teach-bg);
  cursor: pointer;
  transition: background 0.2s;
}

.expandable-header:hover {
  background: var(--teach-border);
}

.expandable-title {
  font-weight: 600;
  color: var(--teach-text);
}

.expandable-icon {
  transition: transform 0.3s;
  color: var(--teach-text-light);
}

.expandable-section.open .expandable-icon {
  transform: rotate(180deg);
}

.expandable-content {
  padding: 1.25rem;
  border-top: 1px solid var(--teach-border);
  display: none;
}

.expandable-section.open .expandable-content {
  display: block;
}

/* ============================================
   MICRO-GAMES
   ============================================ */
.micro-game {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.micro-game-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.micro-game-icon {
  font-size: 1.5rem;
}

.micro-game-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--teach-text);
  margin: 0;
}

.micro-game-time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--teach-accent);
  background: #fff3e0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.micro-game-content {
  /* Game-specific content styles */
}

/* Quiz Game */
.quiz-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--teach-text);
  margin-bottom: 1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--teach-card-bg);
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-option:hover {
  border-color: var(--teach-primary);
  background: #f0f7ff;
}

.quiz-option.selected {
  border-color: var(--teach-primary);
  background: #e6f2ff;
}

.quiz-option.correct {
  border-color: var(--teach-success);
  background: #e8f5e9;
}

.quiz-option.incorrect {
  border-color: var(--teach-error);
  background: #ffebee;
}

.quiz-option-letter {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teach-bg);
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.875rem;
}

.quiz-option-text {
  flex: 1;
}

.quiz-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--teach-radius-sm);
  display: none;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback.correct {
  background: #e8f5e9;
  color: #2e7d32;
}

.quiz-feedback.incorrect {
  background: #ffebee;
  color: #c62828;
}

/* Drag Sort Game */
.drag-sort-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.drag-sort-category {
  background: var(--teach-card-bg);
  border: 2px dashed var(--teach-border);
  border-radius: var(--teach-radius-sm);
  padding: 1rem;
  min-height: 150px;
}

.drag-sort-category-title {
  font-weight: 600;
  text-align: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--teach-border);
  color: var(--teach-primary);
}

.drag-sort-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.drag-sort-item {
  padding: 0.5rem 1rem;
  background: var(--teach-card-bg);
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  cursor: grab;
  transition: all 0.2s;
  user-select: none;
}

.drag-sort-item:hover {
  border-color: var(--teach-primary);
  transform: translateY(-2px);
}

.drag-sort-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.drag-sort-item.placed {
  margin: 0.25rem;
}

.drag-sort-item.correct {
  border-color: var(--teach-success);
  background: #e8f5e9;
}

.drag-sort-item.incorrect {
  border-color: var(--teach-error);
  background: #ffebee;
}

/* Match Pairs Game */
.match-pairs-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

.match-pairs-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-pairs-item {
  padding: 1rem;
  background: var(--teach-card-bg);
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.match-pairs-item:hover {
  border-color: var(--teach-primary);
}

.match-pairs-item.selected {
  border-color: var(--teach-primary);
  background: #e6f2ff;
}

.match-pairs-item.matched {
  border-color: var(--teach-success);
  background: #e8f5e9;
}

.match-pairs-connector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.match-pairs-line {
  width: 40px;
  height: 2px;
  background: var(--teach-border);
  margin: 0.875rem 0;
}

/* True/False Game */
.true-false-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.true-false-btn {
  flex: 1;
  max-width: 150px;
  padding: 1rem 2rem;
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  background: var(--teach-card-bg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.true-false-btn:hover {
  border-color: var(--teach-primary);
}

.true-false-btn.selected {
  border-color: var(--teach-primary);
  background: #e6f2ff;
}

.true-false-btn.correct {
  border-color: var(--teach-success);
  background: #e8f5e9;
  color: var(--teach-success);
}

.true-false-btn.incorrect {
  border-color: var(--teach-error);
  background: #ffebee;
  color: var(--teach-error);
}

/* Fill Blank Game */
.fill-blank-sentence {
  font-size: 1.125rem;
  line-height: 2;
  margin-bottom: 1.5rem;
}

.fill-blank-slot {
  display: inline-block;
  min-width: 100px;
  height: 36px;
  border-bottom: 2px solid var(--teach-primary);
  margin: 0 0.25rem;
  vertical-align: bottom;
  text-align: center;
  font-weight: 600;
  color: var(--teach-primary);
}

.fill-blank-slot.filled {
  border-bottom-style: solid;
}

.fill-blank-slot.correct {
  border-color: var(--teach-success);
  color: var(--teach-success);
}

.fill-blank-slot.incorrect {
  border-color: var(--teach-error);
  color: var(--teach-error);
}

.fill-blank-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.fill-blank-word {
  padding: 0.5rem 1rem;
  background: var(--teach-bg);
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.fill-blank-word:hover {
  border-color: var(--teach-primary);
}

.fill-blank-word.used {
  opacity: 0.4;
  pointer-events: none;
}

/* Sequence Game */
.sequence-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sequence-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--teach-card-bg);
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  cursor: grab;
  transition: all 0.2s;
}

.sequence-item:hover {
  border-color: var(--teach-primary);
}

.sequence-item.dragging {
  opacity: 0.5;
}

.sequence-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teach-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Spot Error Game */
.spot-error-statement {
  font-size: 1.125rem;
  padding: 1.25rem;
  background: var(--teach-card-bg);
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.spot-error-statement .error-word {
  position: relative;
  cursor: pointer;
  border-bottom: 2px dashed transparent;
  transition: all 0.2s;
}

.spot-error-statement .error-word:hover {
  background: #fff3e0;
  border-color: var(--teach-accent);
}

.spot-error-statement .error-word.found {
  background: #ffebee;
  border-color: var(--teach-error);
  text-decoration: line-through;
}

/* Game Controls */
.game-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.game-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--teach-radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.game-btn--primary:hover {
  background: #0052a3;
}

.game-btn--secondary {
  background: var(--teach-bg);
  color: var(--teach-text);
  border: 1px solid var(--teach-border);
}

.game-btn--secondary:hover {
  background: var(--teach-border);
}

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

/* Game Results */
.game-result {
  text-align: center;
  padding: 1.5rem;
  background: var(--teach-card-bg);
  border-radius: var(--teach-radius-sm);
  margin-top: 1rem;
}

.game-result-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.game-result-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--teach-text);
}

.game-result-score {
  font-size: 0.875rem;
  color: var(--teach-text-light);
  margin-top: 0.25rem;
}

/* ============================================
   KEY TAKEAWAYS
   ============================================ */
.key-takeaways {
  background: linear-gradient(135deg, var(--teach-secondary), #00cc66);
  color: white;
  padding: 1.5rem;
  border-radius: var(--teach-radius);
  margin: 2rem 0;
}

.key-takeaways h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.key-takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.key-takeaways li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.key-takeaways li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ============================================
   FINAL CHECK QUIZ
   ============================================ */
.final-check {
  background: var(--teach-card-bg);
  border: 2px solid var(--teach-primary);
  border-radius: var(--teach-radius);
  padding: 2rem;
  margin: 2rem 0;
}

.final-check h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teach-primary);
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.final-check-question {
  margin-bottom: 1.5rem;
}

.final-check-question:last-child {
  margin-bottom: 0;
}

.final-check-question p {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.final-check-results {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--teach-bg);
  border-radius: var(--teach-radius-sm);
  text-align: center;
  display: none;
}

.final-check-results.show {
  display: block;
}

.final-check-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teach-primary);
}

.final-check-message {
  font-size: 0.9375rem;
  color: var(--teach-text-light);
  margin-top: 0.5rem;
}

/* ============================================
   OPTIONAL RESOURCES
   ============================================ */
.optional-resources {
  background: var(--teach-bg);
  border-radius: var(--teach-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.optional-resources h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teach-text-light);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--teach-card-bg);
  border: 1px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  text-decoration: none;
  color: var(--teach-text);
  transition: all 0.2s;
}

.resource-link:hover {
  border-color: var(--teach-primary);
  background: #f0f7ff;
}

.resource-icon {
  font-size: 1.25rem;
}

.resource-info {
  display: flex;
  flex-direction: column;
}

.resource-title {
  font-weight: 500;
  font-size: 0.9375rem;
}

.resource-duration {
  font-size: 0.75rem;
  color: var(--teach-text-light);
}

/* ============================================
   NOTES SECTION
   ============================================ */
.notes-section {
  background: var(--teach-card-bg);
  border-radius: var(--teach-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--teach-shadow);
}

.notes-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teach-text);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notes-textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
}

.notes-textarea:focus {
  outline: none;
  border-color: var(--teach-primary);
}

.notes-saved {
  font-size: 0.75rem;
  color: var(--teach-success);
  margin-top: 0.5rem;
  text-align: right;
}

/* ============================================
   LESSON COMPLETE SECTION
   ============================================ */
.lesson-complete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--teach-card-bg);
  border-radius: var(--teach-radius);
  margin-top: 2rem;
  box-shadow: var(--teach-shadow);
}

.complete-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.complete-checkbox input {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.complete-checkbox label {
  font-weight: 600;
  color: var(--teach-text);
  cursor: pointer;
}

.complete-nav {
  display: flex;
  gap: 0.75rem;
}

/* ============================================
   TEACHING HOMEPAGE (DASHBOARD)
   ============================================ */
.teach-dashboard {
  padding: 2rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teach-text);
  margin: 0 0 0.5rem 0;
}

.dashboard-header p {
  color: var(--teach-text-light);
  margin: 0;
}

/* Continue Card */
.continue-card {
  background: linear-gradient(135deg, var(--teach-primary), #0080ff);
  color: white;
  border-radius: var(--teach-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--teach-shadow-lg);
}

.continue-card h2 {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.continue-lesson {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.continue-info {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--teach-primary);
  border-radius: var(--teach-radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.continue-btn:hover {
  transform: translateX(4px);
}

/* Progress Section */
.progress-section {
  background: var(--teach-card-bg);
  border-radius: var(--teach-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--teach-shadow);
}

.progress-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar-large {
  height: 12px;
  background: var(--teach-bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar-large-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teach-primary), var(--teach-secondary));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--teach-text-light);
}

/* Week Progress Grid */
.weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.week-card {
  background: var(--teach-card-bg);
  border-radius: var(--teach-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--teach-shadow);
  text-decoration: none;
  color: var(--teach-text);
  transition: all 0.2s;
  border: 2px solid transparent;
}

.week-card:hover {
  border-color: var(--teach-primary);
  transform: translateY(-2px);
}

.week-card-header {
  font-size: 0.75rem;
  color: var(--teach-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.week-card-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.week-card-progress {
  height: 6px;
  background: var(--teach-bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.week-card-progress-fill {
  height: 100%;
  background: var(--teach-primary);
  border-radius: 999px;
}

.week-card-progress-fill.complete {
  background: var(--teach-success);
}

.week-card-percent {
  font-size: 0.75rem;
  color: var(--teach-text-light);
}

.week-card-percent.complete {
  color: var(--teach-success);
  font-weight: 600;
}

/* Recent Activity */
.recent-activity {
  background: var(--teach-card-bg);
  border-radius: var(--teach-radius);
  padding: 1.5rem;
  box-shadow: var(--teach-shadow);
}

.recent-activity h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--teach-border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 1.25rem;
}

.activity-text {
  flex: 1;
  font-size: 0.9375rem;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--teach-text-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .teach-container {
    padding: 1rem;
  }
  
  .lesson-nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .lesson-nav-buttons {
    width: 100%;
  }
  
  .lesson-nav-btn {
    flex: 1;
    justify-content: center;
  }
  
  .lesson-title {
    font-size: 1.5rem;
  }
  
  .lesson-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .teaching-chunk {
    padding: 1.25rem;
  }
  
  .match-pairs-container {
    grid-template-columns: 1fr;
  }
  
  .match-pairs-connector {
    display: none;
  }
  
  .lesson-complete {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .weeks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .quiz-options {
    gap: 0.5rem;
  }
  
  .quiz-option {
    padding: 0.75rem;
  }
  
  .true-false-options {
    flex-direction: column;
  }
  
  .true-false-btn {
    max-width: none;
  }
  
  .resource-links {
    flex-direction: column;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.teaching-chunk,
.micro-game {
  animation: fadeIn 0.3s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.game-btn--primary:hover {
  animation: pulse 0.3s ease;
}

/* Loading state */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loading::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid var(--teach-border);
  border-top-color: var(--teach-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   VIDEO PLAYER
   ============================================ */
.video-player-container {
  background: #000;
  border-radius: var(--teach-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--teach-shadow);
}

.video-player-wrapper {
  position: relative;
}

.video-player-wrapper video {
  width: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.video-player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  color: white;
  font-size: 0.875rem;
}

.video-play-btn,
.video-fullscreen-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.video-play-btn:hover,
.video-fullscreen-btn:hover {
  opacity: 1;
}

.video-speed-select {
  background: #333;
  color: white;
  border: 1px solid #555;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.video-speed-select:hover {
  border-color: #777;
}

.video-time-display {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.8125rem;
  color: #ccc;
}

.video-progress-saved {
  margin-left: auto;
  font-size: 0.75rem;
  color: #888;
}

.video-player-error {
  padding: 3rem 2rem;
  text-align: center;
  background: #1a1a1a;
  color: white;
}

.video-error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.video-error-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-error-message {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 1rem;
}

.video-error-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--teach-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--teach-radius-sm);
  font-size: 0.875rem;
  transition: background 0.2s;
}

.video-error-link:hover {
  background: #0052a3;
}

/* Fullscreen styles */
.video-player-wrapper:fullscreen {
  display: flex;
  flex-direction: column;
  background: #000;
}

.video-player-wrapper:fullscreen video {
  flex: 1;
  max-height: calc(100vh - 60px);
}

.video-player-wrapper:fullscreen .video-player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
}

/* Video section header */
.video-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--teach-text-light);
}

.video-section-header::before {
  content: "🎥";
}

/* ============================================
   PDF VIEWER
   ============================================ */
.pdf-viewer-container {
  background: #f5f5f5;
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.pdf-viewer {
  margin: 1.5rem 0;
}

.pdf-viewer-canvas {
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: var(--teach-radius-sm);
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-viewer-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pdf-viewer-btn {
  padding: 0.5rem 0.75rem;
  background: var(--teach-card-bg);
  border: 1px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--teach-text);
}

.pdf-viewer-btn:hover:not(:disabled) {
  background: var(--teach-primary);
  color: white;
  border-color: var(--teach-primary);
}

.pdf-viewer-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pdf-viewer-page-info {
  font-size: 0.875rem;
  color: var(--teach-text-light);
  min-width: 180px;
  text-align: center;
}

.pdf-viewer-divider {
  width: 1px;
  height: 24px;
  background: var(--teach-border);
  margin: 0 0.25rem;
}

.pdf-viewer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--teach-text-light);
}

.pdf-viewer-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--teach-border);
  border-top-color: var(--teach-primary);
  border-radius: 50%;
  animation: pdf-spin 0.8s linear infinite;
}

@keyframes pdf-spin {
  to {
    transform: rotate(360deg);
  }
}

.pdf-viewer-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #ffebee;
  border-radius: var(--teach-radius-sm);
  color: #c62828;
}

.pdf-viewer-error-icon {
  font-size: 1.25rem;
}

.pdf-viewer-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teach-text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .pdf-viewer-controls {
    gap: 0.5rem;
  }

  .pdf-viewer-divider {
    display: none;
  }

  .pdf-viewer-page-info {
    width: 100%;
    order: -1;
    margin-bottom: 0.5rem;
  }
}

/* ============================================
   SEQUENCE / ORDER GAME STYLES
   ============================================ */

.sequence-instruction {
  font-size: 0.9375rem;
  color: var(--teach-text-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.sequence-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sequence-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 2px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
}

.sequence-item:hover {
  border-color: var(--teach-accent);
  background: #f8f9fa;
}

.sequence-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.sequence-item.correct {
  border-color: #4caf50;
  background: #e8f5e9;
}

.sequence-item.incorrect {
  border-color: #f44336;
  background: #ffebee;
}

.sequence-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--teach-accent);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.sequence-text {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--teach-text);
}

/* ============================================
   TRUE/FALSE MULTI-STATEMENT STYLES
   ============================================ */

.tf-progress {
  font-size: 0.8125rem;
  color: var(--teach-text-secondary);
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: #f5f5f5;
  border-radius: var(--teach-radius-sm);
}

/* ============================================
   GAME RESULT STYLES
   ============================================ */

.game-result {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: var(--teach-radius-md);
  margin-top: 1rem;
}

.game-result-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.game-result-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 0.25rem;
}

.game-result-score {
  font-size: 0.9375rem;
  color: #558b2f;
}