/* Wave F: Academy Interactive Skill Constellation, Lesson Checklists/Quizzes & Blog Visual Upgrades */

/* 1. /learn/ Interactive Glowing SVG Skill Constellation */
.rgbe-skill-map {
  margin-bottom: 24px;
  padding: clamp(20px, 2.8vw, 34px);
  border-radius: var(--r-lg, 26px);
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(66% 55% at 14% 0%, rgba(77, 159, 255, .10), transparent 68%),
    radial-gradient(54% 52% at 88% 100%, rgba(176, 107, 255, .08), transparent 68%),
    linear-gradient(170deg, #0d1324 0%, #080c17 55%, #0a0f1d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 28px 68px -22px rgba(0, 0, 0, .86);
}
.rgbe-skill-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-inline-end: 46px;
}
.rgbe-skill-head h2 { margin: 0; font-size: clamp(1.24rem, 2.1vw, 1.56rem); font-weight: 800; color: #f6f8fd; }
.rgbe-skill-head p { margin: 6px 0 0; font-size: .92rem; color: #cfd8ea; line-height: 1.8; }
.rgbe-skill-svg-wrap {
  border-radius: var(--r-md, 18px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: radial-gradient(85% 95% at 50% 10%, rgba(77, 159, 255, .10), transparent 70%), rgba(8, 12, 24, .95);
  padding: 14px;
  overflow-x: auto;
}
.rgbe-skill-svg { width: 100%; min-width: 680px; height: auto; display: block; }
@media (max-width: 680px) {
  .rgbe-skill-svg-wrap { padding: 8px; overflow-x: hidden; }
  .rgbe-skill-svg { min-width: 0; width: 100%; height: auto; }
}
.rgbe-sk-node { cursor: pointer; }
.rgbe-sk-node:hover circle.rgbe-sk-core { stroke: #fff; stroke-width: 2.6; }

/* Per-track bookmark & progress meter injected onto track cards */
.rgbe-track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, .08));
}
.rgbe-track-bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: var(--r-pill, 999px);
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.rgbe-track-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4d9fff, #2ee6a8);
}

/* 2. Lesson Interactive Checklist & 3-Question Micro-Quiz */
.rgbe-chk-list { list-style: none !important; padding-inline-start: 0 !important; display: grid; gap: 9px; }
.rgbe-chk-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border-radius: var(--r-sm, 12px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(9, 14, 26, .95);
  color: #edf2fb;
  cursor: pointer;
}
.rgbe-chk-row.is-done {
  border-color: rgba(46, 230, 168, .44);
  background: rgba(10, 26, 34, .96);
}
.rgbe-chk-row input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--green, #2ee6a8);
  flex: none;
}
.rgbe-chk-bar-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 11px 15px;
  border-radius: var(--r-sm, 12px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(9, 14, 26, .95);
  color: #edf2fb;
  font-size: .85rem;
  font-weight: 700;
}

.rgbe-quiz-box {
  margin-top: 26px;
  padding: clamp(20px, 2.8vw, 30px);
  border-radius: var(--r-lg, 22px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(170deg, #0d1324 0%, #080c17 55%, #0a0f1d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}
.rgbe-quiz-q {
  padding: 16px 18px;
  border-radius: var(--r-md, 16px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(9, 14, 26, .95);
  margin-bottom: 12px;
}
.rgbe-quiz-q p { margin: 0 0 10px; font-weight: 800; font-size: .95rem; color: #f4f7ff; }
.rgbe-quiz-opts { display: grid; gap: 8px; }
.rgbe-quiz-opt {
  padding: 10px 14px;
  border-radius: var(--r-sm, 12px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(14, 20, 36, .94);
  color: #dce4f4;
  font: inherit;
  font-size: .87rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.rgbe-quiz-opt:hover { border-color: rgba(77, 159, 255, .48); color: #fff; background: rgba(20, 29, 52, .96); }
.rgbe-quiz-opt.is-ok { border-color: rgba(46, 230, 168, .58); background: rgba(10, 30, 36, .96); color: #5cf2be; font-weight: 800; }
.rgbe-quiz-opt.is-no { border-color: rgba(255, 77, 106, .55); background: rgba(32, 14, 24, .96); color: #ffa6b8; }

/* 3. Blog Multi-Facet Live Tag Bar & List/Grid Toggle + Empirical Data Bars */
.rgbe-blog-bar {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--r-md, 18px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(9, 14, 26, .95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rgbe-blog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rgbe-blog-list-mode .post-grid,
.rgbe-blog-list-mode .blog-grid,
.rgbe-blog-list-mode .posts-grid,
.rgbe-blog-list-mode .grid-3 {
  grid-template-columns: 1fr !important;
}
.rgbe-blog-hide { display: none !important; }
.rgbe-td-bar {
  display: grid;
  gap: 4px;
}
.rgbe-td-track {
  height: 6px;
  border-radius: var(--r-pill, 999px);
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  min-width: 72px;
}
.rgbe-td-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4d9fff, #2ee6a8);
}

/* Celebration confetti overlay */
.rgbe-confetti-cv {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
