/* ============================================================
   shared.css — TechGuides.student
   Common tokens, layout, and components used across all pages.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
  --bg:      #ffffff;
  --bg2:     #f5f4f0;
  --bg3:     #eeedea;
  --t1:      #1a1a18;
  --t2:      #5a5a56;
  --t3:      #9a9990;
  --border:  rgba(0,0,0,0.11);
  --border2: rgba(0,0,0,0.22);
  --green:        #0F6E56;
  --green-light:  #1D9E75;
  --green-bg:     #E1F5EE;
  --r-md:    8px;
  --r-lg:    14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #1c1c1a;
    --bg2:     #252523;
    --bg3:     #2e2e2b;
    --t1:      #e8e6de;
    --t2:      #9a9890;
    --t3:      #6a6864;
    --border:  rgba(255,255,255,0.10);
    --border2: rgba(255,255,255,0.20);
    --green:        #3DBF8A;
    --green-bg:     #04342C;
  }
}

/* ── Base ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.nav-brand {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--t1);
  text-decoration: none;
}

.nav-brand span { color: var(--t3); font-weight: 400; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-tag { font-size: 12px; color: var(--t3); }

.nav-back {
  font-size: 12px;
  color: var(--t3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.nav-back:hover { color: var(--t1); }
.nav-back::before { content: '←'; font-size: 13px; }

/* ── Badges ── */
.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge-live { background: var(--green-bg); color: var(--green); }
.badge-soon { background: var(--bg3);      color: var(--t3);    }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 2.5rem 2.5rem;
}

/* ── Mobile base ── */
@media (max-width: 600px) {
  nav { padding: 1rem 1.25rem; }
  .nav-tag { display: none; }
  .divider { margin-left: 1.25rem; margin-right: 1.25rem; }
}


/* ============================================================
   INDEX PAGE
   ============================================================ */

/* Hero */
.index-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 1.1rem;
}

.index-hero h1 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  color: var(--t1);
  max-width: 620px;
}

.index-hero h1 em {
  font-style: normal;
  color: var(--t3);
}

.index-hero p {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.75;
  max-width: 560px;
}

/* Tracks */
.tracks-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.tracks-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tracks-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
}

.tracks-count { font-size: 12px; color: var(--t3); }

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* Track card */
.track-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--track-color, #ccc);
  opacity: 0.6;
  transition: opacity 0.15s;
}

.track-card:hover {
  border-color: var(--border2);
  background: var(--bg2);
  transform: translateY(-2px);
}

.track-card:hover::before { opacity: 1; }
.track-card:active { transform: translateY(0); }

.track-card.coming-soon {
  opacity: 0.48;
  cursor: default;
  pointer-events: none;
}

.track-icon { font-size: 22px; margin-bottom: 0.75rem; line-height: 1; }

.track-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 5px;
  line-height: 1.3;
}

.track-desc {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.6;
  flex: 1;
}

.track-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.track-arrow {
  font-size: 14px;
  color: var(--t3);
  transition: transform 0.15s, color 0.15s;
}

.track-card:hover .track-arrow { color: var(--t1); transform: translateX(3px); }

/* About strip */
.about-strip {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-item h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 0.4rem;
}

.about-item p {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.65;
}

/* Footer */
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

footer span { font-size: 12px; color: var(--t3); }

.footer-handle {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--t3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-handle:hover { color: var(--t1); }

.guide-footer-meta {
  margin-top: 1rem;
}

/* Index mobile */
@media (max-width: 600px) {
  .index-hero { padding: 2.5rem 1.25rem 2rem; }
  .index-hero h1 { font-size: 26px; }
  .tracks-wrap { padding: 2rem 1.25rem; }
  .tracks-grid { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; padding: 2rem 1.25rem; gap: 1.5rem; }
  footer { padding: 1.25rem; flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   GUIDE PAGES  (cybersecurity_student_guide.html, etc.)
   ============================================================ */

.guide-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 3rem;
}

/* Guide hero */
.guide-hero {
  padding: 3rem 2.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.guide-hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--t3);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.guide-hero h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--t1);
}

.guide-hero-sub {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.65;
  max-width: 600px;
}

/* Anxiety / intro card */
.anxiety-card {
  margin: 0 2.5rem 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg2);
  border-radius: var(--r-lg);
  border-left: 3px solid #EF9F27;
}

.anxiety-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--t1);
}

/* Sections */
.section {
  padding: 0 2.5rem;
  margin-bottom: 2.75rem;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--t1);
}

.section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--t2);
  margin-bottom: 0.85rem;
}

.section p strong { color: var(--t1); }

/* AI vs You split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.25rem;
}

.split-box {
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
}

.split-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.split-box.ai .split-label { color: #185FA5; }
.split-box.you .split-label { color: #0F6E56; }

@media (prefers-color-scheme: dark) {
  .split-box.ai .split-label { color: #5CA3E6; }
  .split-box.you .split-label { color: #3DBF8A; }
}

.split-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.split-box ul li {
  font-size: 13px;
  color: var(--t2);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.split-box.ai ul li::before { content: '–'; position: absolute; left: 0; color: #185FA5; font-weight: 500; }
.split-box.you ul li::before { content: '✓'; position: absolute; left: 0; color: #0F6E56; font-size: 11px; top: 1px; }

@media (prefers-color-scheme: dark) {
  .split-box.ai ul li::before { color: #5CA3E6; }
  .split-box.you ul li::before { color: #3DBF8A; }
}

/* Career grid */
.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1.25rem;
}

.career-card {
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}

.career-card:hover {
  border-color: var(--border2);
  background: var(--bg2);
}

.career-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--t1); }
.career-desc { font-size: 12px; color: var(--t2); line-height: 1.55; }

.career-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.tag-hot      { background: #FAECE7; color: #993C1D; }
.tag-solid    { background: #E1F5EE; color: #0F6E56; }
.tag-creative { background: #FAEEDA; color: #854F0B; }

@media (prefers-color-scheme: dark) {
  .tag-hot      { background: #4A1B0C; color: #F0997B; }
  .tag-solid    { background: #04342C; color: #5DCAA5; }
  .tag-creative { background: #412402; color: #EF9F27; }
}

/* Tabs */
.tab-row {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.tab-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 12px 10px;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s;
}

.tab-btn:hover { color: var(--t1); }
.tab-btn.active { color: var(--t1); border-bottom-color: var(--green-light); }

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content > p { margin-bottom: 1rem; color: var(--t2); font-size: 14px; line-height: 1.75; }

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--bg2);
  font-size: 13px;
  line-height: 1.5;
  color: var(--t2);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}

.check-item:hover { background: var(--bg); border-color: var(--border); }

.check-item input[type=checkbox] {
  width: 15px; height: 15px; margin-top: 2px;
  flex-shrink: 0; accent-color: var(--green-light); cursor: pointer;
}

.check-item label { cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.check-item label strong { font-weight: 500; color: var(--t1); font-size: 13px; }
.check-item label span   { font-size: 12px; color: var(--t3); }

/* Progress bar */
.progress-wrap {
  margin-top: 1.5rem;
  background: var(--bg2);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar-track {
  flex: 1; height: 6px;
  background: var(--border);
  border-radius: 999px; overflow: hidden;
}

.progress-bar-fill {
  height: 100%; background: var(--green-light);
  border-radius: 999px; transition: width 0.3s ease;
}

.progress-label { font-size: 12px; color: var(--t2); white-space: nowrap; }

/* Guide footer */
.guide-footer {
  margin: 2rem 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--t3);
  line-height: 1.75;
}

/* Guide mobile */
@media (max-width: 540px) {
  .split, .career-grid { grid-template-columns: 1fr; }
  .guide-hero, .section, .anxiety-card, .guide-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .divider { margin-left: 1.25rem; margin-right: 1.25rem; }
}
