/* ============================================================
   page-lesson.css — individual lesson page only
   ============================================================ */

.video-wrapper {
  background: #0d1117;
  border-radius: 12px;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}
.video-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  gap: 10px;
}
.video-placeholder .play-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.30);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,255,255,.60);
}

.lesson-meta span { font-size: 13px; color: var(--bf-muted); }
.lesson-meta span + span::before { content: '·'; margin: 0 8px; color: var(--bf-border); }

.resource-card { border: 1px solid var(--bf-border); border-radius: 10px; overflow: hidden; }
.resource-card .resource-head {
  background: rgba(234,243,241,.70);
  padding: 12px 16px;
  font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--bf-border);
}
.resource-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(17,24,39,.06);
  background: #fff;
}
.resource-row:last-child { border-bottom: none; }
.resource-row:hover { background: rgba(234,243,241,.40); }
.resource-icon { font-size: 15px; flex-shrink: 0; }
.resource-name { flex: 1; font-size: 14px; color: var(--bf-primary); }
.resource-name:hover { text-decoration: underline; cursor: pointer; }
.resource-type { font-size: 11px; color: var(--bf-muted); }

.lesson-nav-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-complete {
  background: #0F6E56; color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; margin-left: auto;
}
.btn-complete:hover { background: #085041; }

.sidebar-card {
  border: 1px solid var(--bf-border);
  border-radius: 12px; overflow: hidden;
  position: sticky; top: 80px;
}
.sidebar-head {
  background: rgba(234,243,241,.70);
  padding: 13px 16px; font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--bf-border);
}
.progress-wrap {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bf-border);
  background: #fff;
}
.progress-bar-bg { background: rgba(17,24,39,.10); border-radius: 6px; height: 7px; margin-bottom: 6px; }
.progress-bar-fill { background: var(--bf-primary); border-radius: 6px; height: 7px; width: 18%; }
.progress-label { font-size: 12px; color: var(--bf-muted); }

.outline-lesson {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(17,24,39,.06);
  font-size: 13px; cursor: pointer; background: #fff;
}
.outline-lesson:last-child { border-bottom: none; }
.outline-lesson:hover { background: rgba(234,243,241,.40); }
.outline-lesson.active { background: rgba(31,58,138,.07); font-weight: 600; }
.ol-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(31,58,138,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 9px;
}
.ol-dot.done { background: var(--bf-primary); border-color: var(--bf-primary); color: #fff; }
.ol-dot.current { border-color: var(--bf-primary); border-width: 2px; }
.ol-name { flex: 1; color: var(--bf-text); line-height: 1.4; }
.ol-mins { font-size: 11px; color: var(--bf-muted); white-space: nowrap; }

.forum-section { border-top: 1px solid var(--bf-border); padding-top: 32px; margin-top: 36px; }
.forum-post {
  border: 1px solid var(--bf-border); border-radius: 10px;
  padding: 16px; margin-bottom: 12px; background: #fff;
}
.post-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(31,58,138,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--bf-primary); flex-shrink: 0;
}
.post-author { font-size: 14px; font-weight: 600; }
.post-date { font-size: 12px; color: var(--bf-muted); }
.post-body { font-size: 14px; line-height: 1.6; color: var(--bf-text); }
.reply-toggle { font-size: 12px; color: var(--bf-primary); cursor: pointer; margin-top: 8px; display: inline-block; }
.reply-toggle:hover { text-decoration: underline; }

.new-post-box {
  background: rgba(234,243,241,.40);
  border: 1px solid var(--bf-border);
  border-radius: 10px; padding: 18px; margin-top: 16px;
}
.new-post-box textarea {
  width: 100%;
  border: 1px solid var(--bf-border); border-radius: 8px;
  padding: 10px 14px; font-size: 14px; font-family: inherit;
  resize: vertical; min-height: 80px; background: #fff;
}
.new-post-box textarea:focus { outline: none; border-color: var(--bf-primary); }
