/* pages/learn.css — phần riêng của trang Học (templates/pages/learn.html). */

.learn-level { position: relative; }
.learn-progress { flex-grow: 0; width: 160px; height: 6px; border-radius: 3px; }

/* Tiếp tục từ chỗ bạn dừng */
.learn-next { padding: 16px 18px; }
.learn-next-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: var(--r-md); background: var(--bg);
  display: grid; place-items: center; color: var(--accent);
}
.learn-next-text { flex-grow: 1; min-width: 0; }
.learn-next-label { margin: 0; font-size: 13px; color: var(--muted); }
.learn-next-title { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.learn-next-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.learn-next .btn { height: 36px; padding: 0 16px; font-size: 14px; flex-shrink: 0; }

/* Khu vực */
.zone-title {
  margin: 34px 0 8px;
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.zone-meta { margin: 0 0 10px; font-size: 14px; color: var(--muted); }

/* Trạm (gập/mở) */
.station { padding: 4px 0; }
.station-head {
  display: flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 2px 4px; border-radius: var(--r);
  cursor: pointer; list-style: none;
}
.station-head::-webkit-details-marker { display: none; }
.station-head:hover { background: var(--bg-soft); }
.station-caret { color: var(--faint); transition: transform 0.15s ease; }
.station[open] .station-caret { transform: rotate(90deg); }
.station-name { font-size: 17px; font-weight: 600; color: var(--ink); }
.station-count { font-size: 13px; color: var(--faint); margin-left: 4px; }
.station-head .grow { flex-grow: 1; }
.station.is-locked .station-name { color: var(--muted); }
.station-hint { margin: 0 0 4px 26px; font-size: 13px; color: var(--faint); }

/* Bài học */
.lessons { margin: 0 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1px; }
.lesson {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 34px; padding: 5px 6px;
  border: 0; border-radius: var(--r); background: none;
  font: inherit; text-align: left; cursor: pointer;
}
.lesson:hover:not(:disabled) { background: var(--bg-soft); }
.lesson.is-next { background: var(--callout); }
.lesson.is-next .lesson-title { font-weight: 600; color: var(--ink); }
.lesson:disabled { cursor: default; }
.lesson-title { flex-grow: 1; font-size: 16px; color: var(--text); line-height: 1.45; }
.lesson.is-locked .lesson-title { color: var(--faint); }
.lesson-score { font-size: 13px; color: var(--muted); }

.check {
  width: 16px; height: 16px; flex-shrink: 0;
  border-radius: 3px; border: 1.5px solid var(--faint);
  display: grid; place-items: center;
}
.check.is-done { border: 0; background: var(--accent); color: var(--on-accent); }
.check.is-locked { border: 0; color: var(--faint); }

@media (max-width: 860px) {
  .learn-progress { width: 100px; }
  .learn-next { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .learn-next .btn { width: 100%; }
  .zone-title { font-size: 20px; }
  .lessons { margin-left: 12px; }
  .lesson-title { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .station-caret { transition: none; }
}
