/* ============================================================
   shared.css — components used on 2+ pages (not all pages)
   Include only on pages that use these components.
   ============================================================ */

/* Used on: tools, courses, course_outline, course_outline_strategy, lesson */
.section-card {
  background: rgba(234,243,241,.70);
  border: 1px solid rgba(31,58,138,.16);
  box-shadow: 0 14px 40px rgba(2,6,23,.08);
}

.cardshade { background: rgba(234,243,241,.50);}
.content-card {
  background: rgba(234,243,241,.40);
  border: 1px solid rgba(31,58,138,.14);
  border-radius: 12px;
  padding: 28px;
}

/* Used on: tools, courses */
.page-title { font-weight: 700; letter-spacing: -.2px; }
.page-sub { color: var(--bf-muted); }

/* Used on: index, tools (btn-primary also used inline in course pages via Bootstrap) */
.btn-primary { background: var(--bf-primary); border-color: var(--bf-primary); }
.btn-primary:hover,
.btn-primary:focus { background: var(--bf-primary-hover); border-color: var(--bf-primary-hover); }
.btn-outline-secondary { border-color: rgba(31,58,138,.42) !important; color: rgba(31,58,138,1) !important; }
.btn-outline-secondary:hover,
.btn-outline-secondary:focus { background: rgba(31,58,138,.08) !important; border-color: rgba(31,58,138,.55) !important; color: rgba(31,58,138,1) !important; }

/* Used on: course_outline, course_outline_strategy */
.meta-pill {
  background: #fff;
  border: 1px solid rgba(31,58,138,.16);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--bf-muted);
  display: inline-block;
}
.meta-pill strong { color: var(--bf-text); }

/* Used on: course_outline, course_outline_strategy */
.section-block {
  border: 1px solid rgba(31,58,138,.16);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.section-header {
  background: rgba(234,243,241,.70);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}
.section-header:hover { background: rgba(234,243,241,1); }
.section-num {
  background: var(--bf-primary);
  color: #fff;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.section-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.section-desc { font-size: 13px; color: var(--bf-muted); }
.lesson-count { font-size: 12px; color: var(--bf-muted); white-space: nowrap; }
.caret { font-size: 11px; color: var(--bf-muted); transition: transform .2s; display: inline-block; }
.caret.open { transform: rotate(180deg); }

.lessons-list { border-top: 1px solid rgba(31,58,138,.10); }
.lesson-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(31,58,138,.07);
  background: #fff;
}
.lesson-row:last-child { border-bottom: none; }
.lesson-row:hover { background: rgba(234,243,241,.40); }
.lesson-row a { color: var(--bf-text); font-size: 14px; flex: 1; }
.lesson-row a:hover { text-decoration: underline; }
.lesson-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  background: rgba(31,58,138,.10);
  color: var(--bf-primary);
}
.lesson-duration { font-size: 12px; color: var(--bf-muted); white-space: nowrap; }
.lock-icon { font-size: 13px; color: rgba(17,24,39,.35); }

/* Used on: courses, course_outline_strategy */
.course-price { font-weight: 800; color: #c40000; white-space: nowrap; }
.course-price s { color: rgba(17,24,39,.45); font-weight: 700; margin-right: .35rem; }
