/* ================================================
   ElevateGames — roadmap.css
   ================================================ */

/* ══════════════════════════════════════
   ROADMAP HERO
══════════════════════════════════════ */
.roadmap-hero {
  position: relative; z-index: 10;
  padding: 100px 80px 60px;
  border-bottom: 1px solid var(--border);
  max-width: 1320px; margin: 0 auto;
}

.hero-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}

.hero-label::before { content: '//'; color: var(--muted2); }
.hero-label i { font-size: 10px; opacity: 0.6; letter-spacing: 0; }

.roadmap-hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.1; color: var(--text); margin-bottom: 12px;
}

.roadmap-hero h1 span { color: var(--muted); }

.roadmap-hero > p {
  font-size: 13px; font-weight: 300; color: var(--muted);
  max-width: 520px; line-height: 1.75; margin-bottom: 32px;
}

.legend { display: flex; gap: 20px; flex-wrap: wrap; }

.legend-item {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
}

.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-done    { background: var(--text); }
.dot-wip     { background: #a0a0ff; }
.dot-planned { background: transparent; border: 1px solid var(--muted); }

/* ══════════════════════════════════════
   LAYOUT — sidebar + main
══════════════════════════════════════ */
.roadmap-layout {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: 216px 1fr;
  max-width: 1320px; margin: 0 auto;
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky; top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 28px 0;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar { display: none; }

.sidebar-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted2); padding: 0 22px; margin-bottom: 12px;
}

.sidebar-links { display: flex; flex-direction: column; }

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 22px;
  font-family: 'Geist Mono', monospace; font-size: 12px;
  color: var(--muted); text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}

.sidebar-link:hover { color: var(--text); background: var(--bg1); }
.sidebar-link.active { color: var(--text); border-left-color: var(--text); background: var(--bg1); }
.sidebar-link i { font-size: 11px; width: 14px; text-align: center; flex-shrink: 0; }

.sidebar-pct {
  margin-left: auto;
  font-size: 10px; letter-spacing: 0.04em; color: var(--muted2);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   ROADMAP SECTIONS
══════════════════════════════════════ */
.roadmap-section {
  padding: 56px 64px;
  border-bottom: 1px solid var(--border);
}

.roadmap-section:last-child { border-bottom: none; }

.section-anchor { display: block; height: 52px; margin-top: -52px; visibility: hidden; }

.sec-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 32px; margin-bottom: 28px;
}

.sec-cat {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}

.sec-cat::before { content: '#'; color: var(--muted2); }

.sec-title {
  font-size: clamp(20px, 2.5vw, 30px); font-weight: 500;
  letter-spacing: -0.02em; color: var(--text); line-height: 1.1;
}

.sec-desc {
  font-size: 13px; font-weight: 300; color: var(--muted);
  line-height: 1.7; max-width: 520px; margin-top: 6px;
}

/* progress */
.sec-progress { flex-shrink: 0; min-width: 160px; text-align: right; }

.sec-pct-num {
  font-family: 'Geist Mono', monospace;
  font-size: 28px; font-weight: 500; letter-spacing: -0.03em;
  color: var(--text); line-height: 1;
}

.sec-pct-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

.sec-pct-bar {
  width: 100%; height: 2px; background: var(--dim);
  border-radius: 2px; margin-top: 8px; overflow: hidden;
}

.sec-pct-fill {
  height: 100%; background: var(--text);
  border-radius: 2px; transition: width .6s ease;
}

/* ══════════════════════════════════════
   FEATURE BLOCKS + TASKS
══════════════════════════════════════ */
.features { display: flex; flex-direction: column; gap: 1px; }

.feature-block {
  background: var(--bg1);
  border: 1px solid var(--border);
  overflow: hidden;
}

.feature-block:first-child { border-radius: 4px 4px 0 0; }
.feature-block:last-child  { border-radius: 0 0 4px 4px; }
.feature-block + .feature-block { border-top: none; border-radius: 0; }
.feature-block:only-child { border-radius: 4px; }

.feature-header {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: 14px;
  padding: 15px 20px; cursor: pointer;
  transition: background .15s; user-select: none;
}

.feature-header:hover,
.feature-header.open { background: var(--bg2); }

.feature-name  { font-size: 13px; font-weight: 500; color: var(--text); }
.feature-desc-s { font-size: 12px; font-weight: 300; color: var(--muted); margin-top: 1px; }

.feature-pct-bar {
  width: 72px; height: 3px; background: var(--dim);
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
}

.feature-pct-fill { height: 100%; background: var(--text); border-radius: 2px; }

.feature-pct-txt {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: var(--muted);
  width: 34px; text-align: right; flex-shrink: 0;
}

.feature-chevron {
  font-size: 10px; color: var(--muted2);
  transition: transform .2s; flex-shrink: 0;
}

.feature-header.open .feature-chevron { transform: rotate(180deg); }

/* tasks */
.feature-tasks { display: none; border-top: 1px solid var(--border); }
.feature-tasks.open { display: block; }

.task {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

.task:last-child { border-bottom: none; }
.task:hover { background: var(--bg3); }

.task-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.task-dot.done    { background: var(--text); }
.task-dot.wip     { background: #a0a0ff; }
.task-dot.planned { background: transparent; border: 1px solid var(--muted2); }

.task-name {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.01em;
}

.task-name.done { color: rgba(232,232,232,0.55); }
.task-name.wip  { color: #a0a0ff; }

.task-status {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 2px;
  flex-shrink: 0; white-space: nowrap;
}

.task-status.done    { color: rgba(232,232,232,0.4); border: 1px solid rgba(232,232,232,0.08); }
.task-status.wip     { color: #a0a0ff; border: 1px solid rgba(160,160,255,0.2); background: rgba(160,160,255,0.05); }
.task-status.planned { color: var(--muted2); border: 1px solid var(--dim); }

/* ══════════════════════════════════════
   ROADMAP FOOTER overrides
══════════════════════════════════════ */
.roadmap-page .site-footer  { max-width: 1320px; padding: 56px 64px 40px; }
.roadmap-page .footer-bottom { max-width: 1320px; padding: 14px 64px; }


/* ╔══════════════════════════════════════╗
   ║  RESPONSIVE — roadmap               ║
   ╚══════════════════════════════════════╝ */

/* ── 1100px ── */
@media (max-width: 1100px) {
  .roadmap-hero   { padding: 90px 48px 52px; }
  .roadmap-layout { grid-template-columns: 188px 1fr; }
  .roadmap-section { padding: 44px 48px; }

  .roadmap-page .site-footer  { padding: 48px 48px 36px; }
  .roadmap-page .footer-bottom { padding: 14px 48px; }
}

/* ── 860px — sidebar flattens to top strip ── */
@media (max-width: 860px) {
  .roadmap-hero   { padding: 80px 28px 44px; }
  .roadmap-layout { grid-template-columns: 1fr; }

  /* Horizontal scrollable strip */
  .sidebar {
    position: sticky; top: 52px;
    height: auto;
    overflow-x: auto; overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0;
    scrollbar-width: none;
    z-index: 50;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
  }

  .sidebar-label { display: none; }

  .sidebar-links {
    flex-direction: row;
    width: max-content;
  }

  .sidebar-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    border-right: 1px solid var(--border);
    padding: 13px 18px;
    height: 44px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sidebar-link.active {
    border-left: none;
    border-bottom-color: var(--text);
    background: var(--bg1);
  }

  .sidebar-pct { margin-left: 6px; }

  .roadmap-section { padding: 36px 28px; }

  .sec-header { flex-direction: column; gap: 12px; }
  .sec-progress { text-align: left; min-width: unset; }
  .sec-pct-bar  { width: 180px; }

  .roadmap-page .site-footer  {
    grid-template-columns: 1fr 1fr;
    padding: 36px 28px 24px; gap: 28px;
  }
  .roadmap-page .site-footer .footer-brand { grid-column: 1 / -1; }
  .roadmap-page .footer-bottom { padding: 14px 28px; flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ── 560px ── */
@media (max-width: 560px) {
  .roadmap-hero { padding: 72px 18px 36px; }

  .sidebar-link { padding: 12px 14px; font-size: 10px; }
  .sidebar-link i { display: none; }
  .sidebar-pct { display: none; }

  .roadmap-section { padding: 28px 18px; }
  .sec-title { font-size: clamp(18px, 5vw, 24px); }

  /* Feature header: drop progress bar, keep % text */
  .feature-header { grid-template-columns: 1fr auto auto; gap: 10px; padding: 13px 16px; }
  .feature-pct-bar { display: none; }
  .feature-name  { font-size: 12px; }
  .feature-desc-s { display: none; }

  .task { padding: 9px 14px; gap: 8px; }
  .task-name   { font-size: 10px; }
  .task-status { display: none; }

  .roadmap-page .site-footer { grid-template-columns: 1fr; gap: 24px; }
}