/* StackRoll - Roadmap page styles */

.roadmap-title {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 32px 0 20px;
  color: var(--text-dark);
}

.roadmap-empty {
  margin: 16px 0 40px;
  padding: 18px 20px;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  color: var(--text-muted);
  background: var(--background-light);
}

/* TOC */
.roadmap-toc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 8px 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.roadmap-toc .toc-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.roadmap-toc .toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fafc, #eef3f9);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.toc-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
  background: linear-gradient(180deg, #eef7ff, #e8f4ff);
}

.section-title {
  margin: 24px 0 14px 0;
  font-size: clamp(16px, 2.6vw, 18px);
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 8px 0 24px 0;
  padding: 8px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #e8eef7, #d9e4f5);
}

.timeline-item {
  position: relative;
  display: block;
  padding-left: 64px; /* space for line + node */
  margin: 24px 0;
  outline: none;
}
.timeline-item:focus .timeline-card {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), var(--shadow-soft);
}

.timeline-node {
  position: absolute;
  left: 28px; /* align over the vertical line */
  top: 36px; /* align with card header */
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2cf5a8, #16a34a);
  border: 2px solid #e7f7f0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  z-index: 2;
}
.timeline-node::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(44,245,168,0.15), rgba(22,163,74,0.05));
  z-index: -1;
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-title {
  margin: 0;
  font-size: clamp(18px, 3.2vw, 22px);
}

.item-date {
  margin: 4px 0 8px 0;
  color: var(--text-gray);
  font-size: 14px;
}

.item-subtitle {
  margin: 6px 0 10px 0;
  color: var(--text-dark);
}

.item-highlights {
  margin: 8px 0 10px 18px;
}
.item-highlights li {
  margin: 6px 0;
}



/* Status pills */
.status-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-light);
}
.status-planned {
  background: #eef4ff;
  color: #0b2a66;
  border-color: #d7e4fd;
}
.status-in-progress {
  background: #fff7e6;
  color: #5f3a00;
  border-color: #ffe6b3;
}
.status-shipped {
  background: #e7f8f0;
  color: #064e3b;
  border-color: #c9f1e2;
}

/* Desktop alternating layout */
@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-1px);
  }
  .timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
  }
  .timeline-node {
    left: 50%;
    top: 36px;
    transform: translate(-50%, -50%);
  }
  .timeline-item:nth-child(odd) .timeline-card {
    grid-column: 1 / 2;
    justify-self: end;
    max-width: 560px;
    margin-right: 40px;
  }
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2 / 3;
    justify-self: start;
    max-width: 560px;
    margin-left: 40px;
  }
}

@media (max-width: 640px) {
  .roadmap-toc { padding: 12px; }
  .timeline-card { padding: 14px; }
}
