/* Course "Module view" drill-down page (VETI-3693) — styling for CourseModules.razor and its
   child components (ModuleListPanel, ModuleHeaderCard, LectureBlock, ReadingBlock, ResourceChip).

   Scoped under .education-workspace and built entirely from the --tl-* custom properties defined
   in education-tokens.css (see that file's header comment for the token catalogue) — no new
   colors are introduced here, matching the existing convention.

   Added as a fix for the final whole-branch review's Finding 2: none of module-list-row,
   module-list-row-selected, module-list-header, module-header-card, lecture-block, reading-block,
   or resource-chip had any CSS at all before this file, so the selected module had no visible
   highlight, locked/unlocked rows were visually identical, and clickable rows had no
   cursor/hover affordance. */

/* ── Module list panel (ModuleListPanel.razor) ─────────────────────────────────────────────── */

.education-workspace .module-list-header {
  font-weight: 600;
  padding: var(--tl-space-1) 0;
  color: var(--tl-text-2);
}

.education-workspace .module-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tl-space-1);
  padding: var(--tl-space-2);
  border-radius: var(--tl-radius-card);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.education-workspace .module-list-row:hover {
  background: var(--tl-surface-alt);
}

.education-workspace .module-list-row:focus-visible {
  outline: 2px solid var(--tl-info-fg);
  outline-offset: -2px;
}

/* Locked rows: still perceivable to assistive tech (aria-disabled, not the native disabled
   attribute — see ModuleListPanel.razor's own reasoning), but must look and behave as
   non-interactive to sighted mouse/keyboard users. This is the actual visual fix for the
   ticket-cited "locking displayed but not enforced" bug — enforcement already existed in code
   (SelectIfUnlocked/HandleKeydown both no-op for a locked module), it just had no visible cue. */
.education-workspace .module-list-row[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.education-workspace .module-list-row[aria-disabled="true"]:hover {
  background: transparent;
}

/* Selected module highlight — mirrors the existing .lesson-row-current convention
   (education-tokens.css) so the two "currently active item" treatments in this workspace
   stay visually consistent. */
.education-workspace .module-list-row-selected {
  background: var(--tl-info-bg);
  border-left: 3px solid var(--tl-info-fg);
  padding-left: calc(var(--tl-space-2) - 3px);
}

.education-workspace .module-list-row-selected:hover {
  background: var(--tl-info-bg);
}

/* ── Module header card (ModuleHeaderCard.razor) and content blocks (LectureBlock/ReadingBlock/
   ResourceChip.razor) ──────────────────────────────────────────────────────────────────────── */

.education-workspace .module-header-card,
.education-workspace .lecture-block,
.education-workspace .reading-block,
.education-workspace .resource-chip {
  padding: var(--tl-space-3);
  margin-bottom: var(--tl-space-2);
}

.education-workspace .resource-chip {
  padding: var(--tl-space-2);
}
