/* =========================================================
   Heart of Georgia Help Hub — Training UI
   Works with: catalog.php, module.php, lesson.php
   Does NOT hijack Bootstrap .container.
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root{
  --bg: #070c17;
  --bg2:#0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.14);

  --text:#e8eefc;
  --muted:#a3b2d6;

  --accent:#39af18;
  --accentSoft: rgba(57,175,24,.18);

  --warn:#f59e0b;
  --warnSoft: rgba(245,158,11,.18);

  --ok:#22c55e;
  --okSoft: rgba(34,197,94,.18);

  --shadow: 0 18px 42px rgba(0,0,0,.45);
  --radius: 16px;
}

/* ---------- Base page ---------- */
html, body{
  height:100%;
}
body{
  background:
    radial-gradient(900px 500px at 18% 0%, rgba(57,175,24,.14), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(59,130,246,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}

/* Make emoji icons render properly on Windows + Linux */
body, .mc-ico{
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    sans-serif;
}

/* Links */
a{ color: #9ae6b4; }
a:hover{ color: #b7f7ce; }

/* Bootstrap navbar tweaks (keeps yours looking consistent) */
.navbar{
  background: rgba(0,0,0,.45) !important;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.navbar .navbar-brand{ color: var(--text) !important; }
.navbar .nav-link{ color: rgba(232,238,252,.82) !important; }
.navbar .nav-link:hover{ color: #fff !important; }

/* ---------- Training layout wrappers ---------- */
.tc-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.tc-header{
  display:flex;
  gap:16px;
  align-items:stretch;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 16px;
}

.tc-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.tc-title{
  margin:0;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: .2px;
  line-height: 1.15;
}
.tc-sub{
  margin: 10px 0 0 0;
  color: rgba(232,238,252,.78);
  line-height: 1.6;
}

/* Pills (course switch + KPIs) */
.tc-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: rgba(232,238,252,.90);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.tc-pill:hover{
  background: rgba(255,255,255,.08);
}
.tc-kpis{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ---------- Filters ---------- */
.tc-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 14px 0 18px;
}

.tc-btn{
  appearance:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: rgba(232,238,252,.92);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor:pointer;
  transition: transform .08s ease, background .12s ease;
}
.tc-btn:hover{ background: rgba(255,255,255,.09); }
.tc-btn:active{ transform: translateY(1px); }

.tc-btn.active{
  background: var(--accentSoft);
  border-color: rgba(57,175,24,.42);
}

/* ---------- Grid + cards ---------- */
.tc-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px){
  .tc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1100px){
  .tc-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.module-card{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-height: 220px;
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.module-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.20);
}

.mc-top{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.mc-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: rgba(57,175,24,.12);
  border: 1px solid rgba(57,175,24,.25);
  flex: 0 0 auto;
  font-size: 18px;
}

.mc-title{
  margin: 2px 0 0 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}
.mc-summary{
  margin: 6px 0 0 0;
  color: rgba(232,238,252,.72);
  line-height: 1.5;
  font-size: 14px;
}

.mc-time{
  font-size: 13px;
  font-weight: 800;
  color: rgba(232,238,252,.78);
}

.mc-progress{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  overflow:hidden;
}
.mc-bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(57,175,24,.95), rgba(34,197,94,.95));
}

.mc-meta{
  margin-top: 2px;
}

.mc-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-top: auto;
}

/* ---------- Badges ---------- */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(232,238,252,.92);
}
.badge.complete{
  background: var(--okSoft);
  border-color: rgba(34,197,94,.35);
}
.badge.inprogress{
  background: var(--warnSoft);
  border-color: rgba(245,158,11,.35);
}
.badge.notstarted{
  background: rgba(163,178,214,.12);
  border-color: rgba(163,178,214,.22);
}

/* ---------- CTAs ---------- */
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(57,175,24,.42);
  background: var(--accentSoft);
  color: rgba(232,238,252,.95);
  font-weight: 900;
  text-decoration:none;
  transition: transform .08s ease, background .12s ease;
}
.cta:hover{ background: rgba(57,175,24,.24); }
.cta:active{ transform: translateY(1px); }

.cta.secondary{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.cta.secondary:hover{ background: rgba(255,255,255,.09); }

/* ---------- Lesson content container ---------- */
.lesson{
  color: rgba(232,238,252,.90);
  line-height: 1.7;
  font-size: 15px;
}
.lesson h1,.lesson h2,.lesson h3,.lesson h4{
  color: rgba(232,238,252,.98);
  font-weight: 900;
  letter-spacing: .2px;
}
.lesson p,.lesson li{
  color: rgba(232,238,252,.78);
}
.lesson a{
  color: #9ae6b4;
}
.lesson a:hover{
  color: #b7f7ce;
}

/* Embedded video support */
.lesson iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #000;
}

/* ---------- Utilities ---------- */
.hidden{ display:none !important; }
