/**
 * Cyber Guard Forte — Shared Training Page Styles
 * Upload to: public_html/assets/css/training.css
 * Link in each bootcamp page <head>:
 *   <link rel="stylesheet" href="/assets/css/training.css">
 * Then remove the duplicate <style> block from each page.
 *
 * Accent colour is set per-page via CSS custom property:
 *   --accent: #4db8a0;   (DFIR — teal)
 *   --accent: #c4b5fd;   (CTI — purple)
 *   --accent: #f97316;   (OT/ICS — orange)
 *   --accent: #06b6d4;   (OSINT — cyan)
 *   --accent: #38bdf8;   (Cloud — sky)
 *   --accent: #ef4444;   (Malware — red)
 *   --accent: #22c55e;   (Hunt — green)
 *   --accent: #c9a24b;   (SOC — brass)
 * Add to each bootcamp page's own <style> block:
 *   :root { --accent: #22c55e; }
 */

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  overflow-x: hidden;
  background: #0d1b2a;
  color: #e0e8f0;
  font-family: Inter, 'Segoe UI', sans-serif;
}

/* ── Phase Nav ────────────────────────────────────── */
.phase-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid #1e3a5f;
  background: #060e18;
  position: sticky;
  top: 94px;
  z-index: 100;
}
.phase-nav::-webkit-scrollbar { display: none; }
.pn-btn {
  padding: 13px 20px;
  font-size: .75rem;
  font-weight: 800;
  color: #4a6a88;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  transition: color .15s, border-color .15s;
}
.pn-btn:hover, .pn-btn.active {
  color: var(--accent, #4db8a0);
  border-bottom-color: var(--accent, #4db8a0);
}
.pn-btn .phase-num {
  display: block;
  font-size: .6rem;
  color: #2a4a68;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #060e18 0%, var(--hero-mid, #0a1f1a) 60%, #0d1b2a 100%);
  padding: 32px 16px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(var(--accent-rgb, 77,184,160), .2);
}
.hero h1 {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px;
}
.hero h1 span { color: var(--accent, #4db8a0); }
.hero-sub {
  color: #6a8aaa;
  font-size: .83rem;
  max-width: 600px;
  margin: 0 auto 16px;
}
.hero-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.hs { text-align: center; }
.hs-n { font-size: 1.4rem; font-weight: 900; color: var(--accent, #4db8a0); }
.hs-l { font-size: .65rem; color: #4a6a88; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* ── Page Wrapper ─────────────────────────────────── */
.wrap { max-width: 900px; margin: 0 auto; padding: 20px 12px; }

/* ── Phase Header ─────────────────────────────────── */
.phase-header {
  background: linear-gradient(135deg, var(--hero-mid, #0a1f1a), #060e18);
  border: 1px solid rgba(var(--accent-rgb, 77,184,160), .2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.ph-badge {
  font-size: .68rem;
  font-weight: 800;
  color: var(--accent, #4db8a0);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ph-title { font-size: 1.2rem; font-weight: 900; color: #fff; margin: 0 0 6px; }
.ph-desc { font-size: .8rem; color: #6a8aaa; line-height: 1.6; margin: 0 0 14px; }
.ph-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.ph-tag {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: #1e3a5f;
  color: #8ab0c8;
}

/* ── Module Accordion ─────────────────────────────── */
.module {
  background: #0f2236;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.module-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.module-head:hover { background: rgba(var(--accent-rgb, 77,184,160), .04); }
.m-num {
  font-size: .65rem;
  font-weight: 900;
  color: var(--accent, #4db8a0);
  background: rgba(var(--accent-rgb, 77,184,160), .08);
  border: 1px solid rgba(var(--accent-rgb, 77,184,160), .2);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}
.m-title { font-size: .88rem; font-weight: 800; color: #e0e8f0; flex: 1; }
.m-meta { font-size: .67rem; color: #4a6a88; white-space: nowrap; }
.m-chevron { font-size: .75rem; color: #4a6a88; transition: transform .2s; }
.module-head.open .m-chevron { transform: rotate(180deg); }
.module-body { display: none; padding: 0 16px 16px; border-top: 1px solid #1e3a5f; }
.module-body.open { display: block; }

/* ── Module Body Sections ─────────────────────────── */
.mb-section { margin-top: 16px; }
.mb-section-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent, #4db8a0);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(var(--accent-rgb, 77,184,160), .15);
}

/* ── Tutor Text ───────────────────────────────────── */
.tutor { font-size: .8rem; line-height: 1.8; color: #8ab0c8; }
.tutor p { margin: 0 0 10px; }
.tutor strong { color: var(--accent, #4db8a0); }
.tutor code {
  background: #060e18;
  border: 1px solid #1e3a5f;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .75rem;
  color: #c9a24b;
  font-family: Consolas, 'JetBrains Mono', monospace;
}

/* ── Concept / Callout Boxes ──────────────────────── */
.concept {
  background: #060e18;
  border-left: 3px solid var(--accent, #4db8a0);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin: 10px 0;
  font-size: .78rem;
  line-height: 1.7;
  color: #9ad0c8;
}
.concept-title {
  font-size: .68rem;
  font-weight: 800;
  color: var(--accent, #4db8a0);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.analogy {
  background: #060e18;
  border-left: 3px solid #c9a24b;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin: 10px 0;
  font-size: .78rem;
  line-height: 1.7;
  color: #c9a24b;
}
.analogy::before { content: '💡 '; font-weight: 800; }
.warning {
  background: #1a0505;
  border-left: 3px solid #ef4444;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin: 10px 0;
  font-size: .78rem;
  line-height: 1.7;
  color: #f87171;
}
.warning::before { content: '⚠️  '; font-weight: 800; }

/* ── Hands-On Lab ─────────────────────────────────── */
.lab {
  background: #030b12;
  border: 1px solid rgba(var(--accent-rgb, 77,184,160), .15);
  border-radius: 8px;
  padding: 14px;
  margin-top: 8px;
}
.lab-title {
  font-size: .7rem;
  font-weight: 800;
  color: var(--accent, #4db8a0);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.lab-step {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .77rem;
  line-height: 1.6;
  color: #8ab0c8;
}
.lab-step-num {
  background: var(--accent, #4db8a0);
  color: #060e18;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}
.lab code, .lab pre {
  background: #060e18;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: Consolas, 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--accent, #4db8a0);
  display: block;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 6px 0;
}

/* ── Daily Tasks ──────────────────────────────────── */
.tasks-list { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #060e18;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s;
}
.task:hover { border-color: rgba(var(--accent-rgb, 77,184,160), .3); }
.task.done { border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.03); }
.task-check {
  width: 18px;
  height: 18px;
  border: 2px solid #2a4a68;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  transition: all .15s;
}
.task.done .task-check { background: #22c55e; border-color: #22c55e; color: #fff; }
.task-text { font-size: .77rem; line-height: 1.5; color: #8ab0c8; }
.task.done .task-text { color: #4a6a88; text-decoration: line-through; }
.task-badge {
  font-size: .62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tb-easy { background: rgba(34,197,94,.1); color: #86efac; }
.tb-med  { background: rgba(251,191,36,.1); color: #fbbf24; }
.tb-hard { background: rgba(239,68,68,.1);  color: #f87171; }

/* ── Tools Grid ───────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.tool-card {
  background: #060e18;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 10px 12px;
}
.tc-name { font-size: .78rem; font-weight: 800; color: #e0e8f0; margin-bottom: 3px; }
.tc-desc { font-size: .68rem; color: #4a6a88; line-height: 1.5; margin-bottom: 6px; }
.tc-link {
  font-size: .67rem;
  color: var(--accent, #4db8a0);
  text-decoration: none;
  font-weight: 700;
}
.tc-link:hover { text-decoration: underline; }

/* ── Checkpoint ───────────────────────────────────── */
.checkpoint {
  background: #060e18;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
}
.cp-title { font-size: .68rem; font-weight: 800; color: #fbbf24; margin-bottom: 8px; }
.cp-q {
  font-size: .75rem;
  color: #8ab0c8;
  margin-bottom: 4px;
  padding-left: 12px;
  position: relative;
}
.cp-q::before { content: '→'; position: absolute; left: 0; color: #fbbf24; font-weight: 700; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
  .ph-meta { gap: 8px; }
  .hero-stats { gap: 16px; }
}
