/* ===========================================================
   LinkUp — Upcoming Features
   Pure CSS, dark theme, queue/rail layout
   =========================================================== */

:root {
  --bg-deep: #0a0d14;
  --bg-elev: #11151f;
  --bg-card: #141927;
  --bg-card-2: #181e2e;

  --accent: #4f7df5;
  --accent-2: #22d3a7;
  --accent-amber: #f5b14f;
  --accent-violet: #8b6df5;
  --accent-glow: rgba(79, 125, 245, 0.35);

  --text-primary: #e8ecf4;
  --text-secondary: #8a93ad;
  --text-dim: #5b6480;

  --border: rgba(140, 160, 220, 0.10);
  --border-strong: rgba(140, 160, 220, 0.20);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 0 1px rgba(79,125,245,0.35), 0 8px 28px rgba(79,125,245,0.25);
}

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

html, body { min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(79,125,245,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34,211,167,0.07), transparent 60%),
    var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  padding: 56px 24px 80px;
}

.shell { max-width: 1100px; margin: 0 auto; }

/* ============== HEADER ============== */
.page-head { margin-bottom: 56px; }

.head-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  margin-bottom: 22px;
}
.tag-bar {
  width: 18px; height: 2px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 18px;
}
.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede {
  font-size: 16px; color: var(--text-secondary);
  max-width: 720px; margin-bottom: 32px;
}

/* ============== FILTER BAR ============== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 8px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.filter {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .25s ease;
}
.filter:hover { color: var(--text-primary); background: rgba(140,160,220,0.05); }
.filter.active {
  background: var(--bg-card-2);
  border-color: var(--border-strong);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(79,125,245,0.12);
}
.f-count {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(140,160,220,0.08); color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.filter.active .f-count { background: rgba(79,125,245,0.15); color: var(--accent); }
.f-dash { width: 14px; height: 2px; border-radius: 2px; }
.f-design   { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.f-pipeline { background: var(--accent-2); box-shadow: 0 0 8px rgba(34,211,167,0.4); }
.f-planned  { background: var(--accent-violet); box-shadow: 0 0 8px rgba(139,109,245,0.4); }
.f-consider { background: var(--accent-amber); box-shadow: 0 0 8px rgba(245,177,79,0.4); }

/* ============== QUEUE SECTION ============== */
.queue-section { margin-bottom: 64px; }

.section-heading {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-heading h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
}

.queue-progress {
  display: flex; align-items: center; gap: 14px;
  min-width: 240px;
}
.progress-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-dim);
}
.progress-track {
  flex: 1; height: 4px; border-radius: 4px;
  background: rgba(140,160,220,0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}

/* ============== FEATURE LIST ============== */
.feature-queue {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}

.feature {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  opacity: 0; transform: translateY(8px);
  animation: rise .5s cubic-bezier(.2,.7,.2,1) forwards;
}
.feature[data-index="1"] { animation-delay: .05s; }
.feature[data-index="2"] { animation-delay: .12s; }
.feature[data-index="3"] { animation-delay: .19s; }
.feature[data-index="4"] { animation-delay: .26s; }
.feature[data-index="5"] { animation-delay: .33s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

.feature.hide { display: none; }

.f-rail {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 22px;
}
.rail-num {
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  letter-spacing: 0.1em; font-variant-numeric: tabular-nums;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.rail-line {
  flex: 1; width: 1px; min-height: 24px;
  margin-top: 10px;
  background: linear-gradient(180deg, var(--border-strong), transparent);
}

.f-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.f-card::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px;
  width: 3px; border-radius: 3px;
  background: var(--accent);
  opacity: .8;
}
.feature[data-status="design"]   .f-card::before { background: var(--accent); }
.feature[data-status="pipeline"] .f-card::before { background: var(--accent-2); }
.feature[data-status="planned"]  .f-card::before { background: var(--accent-violet); }
.feature[data-status="consider"] .f-card::before { background: var(--accent-amber); }

.f-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.f-top {
  display: flex; align-items: start; justify-content: space-between;
  gap: 18px; margin-bottom: 10px;
}
.f-top h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--text-primary);
}

.status-pill {
  flex: none;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 5px 10px; border-radius: 6px; font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.p-design   { color: var(--accent);         background: rgba(79,125,245,0.10);  border-color: rgba(79,125,245,0.25); }
.p-pipeline { color: var(--accent-2);       background: rgba(34,211,167,0.10);  border-color: rgba(34,211,167,0.25); }
.p-planned  { color: var(--accent-violet);  background: rgba(139,109,245,0.10); border-color: rgba(139,109,245,0.25); }
.p-consider { color: var(--accent-amber);   background: rgba(245,177,79,0.10);  border-color: rgba(245,177,79,0.25); }

.f-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }

.f-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.meta-chip {
  font-size: 11px; padding: 5px 10px;
  background: rgba(140,160,220,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim); border-radius: 6px;
  letter-spacing: 0.04em;
}
.expand-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; cursor: pointer;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 6px 12px; border-radius: 8px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: all .2s ease;
}
.expand-btn:hover { border-color: var(--accent); color: var(--accent); }
.b-icon {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 4px;
  background: rgba(140,160,220,0.08);
  font-weight: 600;
  transition: transform .25s ease, background .25s ease;
}
.expand-btn[aria-expanded="true"] .b-icon { transform: rotate(45deg); background: rgba(79,125,245,0.18); }
.expand-btn[aria-expanded="true"] .b-text::after { content: " — close"; }

.f-extra {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, margin-top .3s ease, opacity .3s ease;
  opacity: 0;
}
.f-card.open .f-extra { max-height: 400px; margin-top: 18px; opacity: 1; }

.extra-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 16px;
  background: rgba(10,13,20,0.5);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
}
.extra-label {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--text-dim); margin-bottom: 6px;
}
.extra-grid p { font-size: 13px; color: var(--text-secondary); }

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px;
  border: 1px dashed var(--border-strong); border-radius: 16px;
  color: var(--text-dim);
}
.empty-bar {
  display: block; width: 40px; height: 3px; margin: 0 auto 16px;
  background: var(--text-dim); border-radius: 3px;
}

/* ============== DUAL PANEL ============== */
.dual-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 56px;
}
.panel {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.panel-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.panel-mark {
  width: 6px; height: 24px; border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.panel-mark.alt {
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(34,211,167,0.4);
}
.panel-head h2 { font-size: 17px; font-weight: 600; }

.panel p { color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; }

.bound-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bound-list li {
  display: flex; align-items: start; gap: 12px;
  font-size: 13.5px; color: var(--text-primary);
}
.b-dash {
  flex: none; margin-top: 9px;
  width: 14px; height: 2px; border-radius: 2px;
  background: var(--accent);
}
.b-dash.alt { background: var(--accent-2); }

/* ============== FOOTER ============== */
.page-foot {
  display: flex; justify-content: center; gap: 12px;
  font-size: 12px; color: var(--text-dim);
  letter-spacing: 0.08em;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.dot-sep { color: var(--text-dim); }

/* ============== RESPONSIVE ============== */
@media (max-width: 720px) {
  body { padding: 32px 16px 60px; }
  .feature { grid-template-columns: 56px 1fr; gap: 12px; }
  .f-card { padding: 18px 18px; }
  .f-top { flex-direction: column; align-items: start; gap: 10px; }
  .extra-grid { grid-template-columns: 1fr; }
  .dual-panel { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; align-items: start; }
  .queue-progress { width: 100%; }
}
