/* Brooklyn Click Table of Contents v1.0.0.1 - frontend */
.bctoc-container { transition: all 0.3s ease; box-sizing: border-box; background: #f9f9f9; }
.bctoc-container * { box-sizing: border-box; }
.bctoc-container .bctoc-title { cursor: pointer; transition: background-color 0.3s ease; margin: 0; line-height: 1.3; }
.bctoc-container .bctoc-toggle-icon { float: right; font-size: 0.8em; transition: all 0.3s ease; }
.bctoc-container .bctoc-count { display: inline-block; font-size: 13px; font-weight: 600; background: rgba(124,58,237,0.12); color: #5b21b6; border-radius: 999px; padding: 3px 10px; vertical-align: middle; margin-left: 8px; }
.bctoc-container .bctoc-sub { margin: 10px 0 0; font-size: 14px; color: #555; line-height: 1.5; }
.bctoc-container .bctoc-finish { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: #5b21b6; text-align: center; }
.bctoc-container .bctoc-list, .bctoc-container .bctoc-list ol { list-style: none !important; list-style-type: none !important; padding-left: 0; margin: 14px 0 0; transition: all 0.3s ease; }
.bctoc-container .bctoc-list li { list-style: none !important; list-style-type: none !important; }
.bctoc-container .bctoc-list li:before, .bctoc-container .bctoc-list li:after { content: none !important; }
.bctoc-container .bctoc-item { transition: all 0.3s ease; padding-left: 0; }
.bctoc-container .bctoc-item a { text-decoration: none; color: inherit; display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; transition: all 0.3s ease; border-radius: 8px; }
.bctoc-container .bctoc-item a:hover { color: #111 !important; background-color: #f3e8ff !important; }
.bctoc-container .bctoc-num { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: #7c3aed; background: #ede9fe; border-radius: 999px; min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; transition: all 0.25s ease; }
.bctoc-container .bctoc-item a:hover .bctoc-num { background: #7c3aed; color: #fff; }
.bctoc-container .bctoc-item-text { flex: 1; min-width: 0; }
.bctoc-container .bctoc-item-title { display: block; line-height: 1.4; }
.bctoc-container .bctoc-item-meta { display: none; gap: 8px; margin-top: 4px; font-size: 12px; }
.bctoc-container .bctoc-tag { background: #ede9fe; color: #5b21b6; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.bctoc-container .bctoc-time { color: #6b7280; }
.bctoc-container .bctoc-check { display: none; flex: 0 0 auto; color: #16a34a; font-weight: 800; font-size: 16px; }
/* v1.0.1: green check in ALL styles, not only Journey / Progress.
   Done is CUMULATIVE: once reached, a station stays green even if you scroll back up.
   The number circle itself turns into a green check, so it cannot be missed.
   Current = the station you are on, green with a soft ring and Now. */
.bctoc-container .bctoc-item.is-done .bctoc-num { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; font-size: 0 !important; }
.bctoc-container .bctoc-item.is-done .bctoc-num:after { content: "\2713"; font-size: 18px; font-weight: 900; color: #fff; line-height: 1; }
.bctoc-container .bctoc-item.is-done .bctoc-check { display: inline-block !important; }
.bctoc-container .bctoc-item.is-done .bctoc-item-title { color: #166534; }
.bctoc-container .bctoc-item.is-done .bctoc-tag { background: #dcfce7 !important; color: #166534 !important; }
.bctoc-container .bctoc-item.is-done a { background: #f0fdf4 !important; }
.bctoc-container .bctoc-item.is-current .bctoc-num { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; box-shadow: 0 0 0 4px #dcfce7 !important; }
.bctoc-container .bctoc-item.is-current .bctoc-tag { background: #16a34a !important; color: #fff !important; }
.bctoc-container .bctoc-item.is-current .bctoc-tag:after { content: "  \2022  Now"; }
.bctoc-container .bctoc-active a { background: #f0fdf4 !important; color: #111 !important; }
.bctoc-container .bctoc-active .bctoc-num { background: #16a34a !important; color: #fff !important; }
.bctoc-style-modern .bctoc-title { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff !important; border-radius: 12px 12px 0 0; }
.bctoc-style-modern .bctoc-count { background: rgba(255,255,255,0.22); color: #fff; }
.bctoc-style-modern { background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 16px !important; box-shadow: 0 10px 30px rgba(124,58,237,0.10) !important; overflow: hidden; }
.bctoc-style-journey { background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 16px !important; box-shadow: 0 10px 30px rgba(124,58,237,0.10) !important; }
.bctoc-style-journey .bctoc-title { background: linear-gradient(135deg, #5b21b6, #7c3aed); color: #fff !important; }
.bctoc-style-journey .bctoc-count { background: rgba(255,255,255,0.22); color: #fff; }
.bctoc-style-journey .bctoc-list { position: relative; padding-left: 6px; }
.bctoc-style-journey .bctoc-list:before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: #ddd6fe; }
.bctoc-style-journey .bctoc-item { position: relative; border-bottom: 0 !important; background: transparent !important; }
.bctoc-style-journey .bctoc-item-meta { display: flex; }
.bctoc-style-journey .bctoc-num { background: #fff; border: 2px solid #7c3aed; color: #7c3aed; position: relative; z-index: 1; }
.bctoc-style-journey .bctoc-item.is-current .bctoc-num { background: #16a34a; border-color: #16a34a; color: #fff; box-shadow: 0 0 0 4px #dcfce7; }
.bctoc-style-progress .bctoc-progress { height: 8px; background: #ede9fe; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.bctoc-style-progress .bctoc-progress-fill { height: 100%; background: linear-gradient(90deg, #7c3aed, #a855f7); border-radius: 999px; transition: width 0.3s ease; }
.bctoc-style-progress .bctoc-progress-text { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #5b21b6; }
.bctoc-style-progress .bctoc-item.is-done .bctoc-item-title { color: #166534; }
.bctoc-style-lesson .bctoc-item-meta { display: flex; }
.bctoc-style-lesson .bctoc-item { background: #faf5ff !important; border: 1px solid #e9d5ff !important; border-radius: 10px !important; margin-bottom: 8px !important; }
.bctoc-style-problem .bctoc-title { background: #111827; color: #fff !important; }
.bctoc-style-problem .bctoc-item-title:before { content: "Fix: "; font-weight: 800; color: #7c3aed; }
.bctoc-style-problem .bctoc-item-meta { display: flex; }
.bctoc-style-cards .bctoc-list { column-gap: 12px; }
.bctoc-style-cards .bctoc-item { background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; margin-bottom: 12px !important; break-inside: avoid; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.bctoc-style-cards .bctoc-num { font-size: 18px; min-width: 42px; height: 42px; }
.bctoc-style-minimal { background: #fff !important; border: 1px solid #e5e7eb !important; }
.bctoc-style-minimal .bctoc-title { background: transparent; border-bottom: 3px solid #7c3aed; border-radius: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 768px) {
  .bctoc-container { padding: 15px !important; margin-left: auto !important; margin-right: auto !important; }
  .bctoc-container .bctoc-title { font-size: 20px !important; }
  .bctoc-container .bctoc-list { column-count: 1 !important; }
  .bctoc-style-journey .bctoc-list:before { left: 25px; }
}
