/* ── SHARED PAGE STYLES (changelog, roadmap) ── */

.page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.page-header {
  margin-bottom: 48px;
}
.page-header h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.page-subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.page-subtitle a {
  color: var(--accent);
  transition: opacity 0.2s;
}
.page-subtitle a:hover { opacity: 0.8; }

/* ── CHANGELOG ── */
.changelog {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.changelog-entry {
  position: relative;
  padding-left: 28px;
  padding-bottom: 48px;
  border-left: 2px solid var(--border);
}
.changelog-entry:last-child { padding-bottom: 0; }
.changelog-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.changelog-version {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.version-tag {
  font-size: 18px;
  font-weight: 800;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: -0.02em;
}
.version-date {
  font-size: 13px;
  color: var(--muted);
}
.version-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
}
.version-badge.latest {
  background: var(--accent-15);
  color: var(--accent);
}
.changelog-body h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 16px;
  color: rgba(255,255,255,0.9);
}
.changelog-body h3:first-child { margin-top: 0; }
.changelog-body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.changelog-body li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.changelog-body li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.15);
}

/* ── CHANGELOG LOADING ── */
.changelog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--muted);
  font-size: 14px;
}
.changelog-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── ROADMAP ── */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.roadmap-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.roadmap-section-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.roadmap-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.roadmap-status-dot.in-progress {
  background: #F5A623;
  box-shadow: 0 0 8px rgba(245,166,35,0.4);
  animation: pulse 2s infinite;
}
.roadmap-status-dot.planned {
  background: rgba(255,255,255,0.25);
}
.roadmap-status-dot.done {
  background: #4CD964;
}

.roadmap-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.roadmap-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.15s;
}
.roadmap-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}
.roadmap-card.shipped {
  opacity: 0.6;
}
.roadmap-card.shipped:hover {
  opacity: 0.8;
}
.roadmap-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--accent-10);
  color: var(--accent);
}
.roadmap-card.shipped .roadmap-card-icon {
  background: rgba(76,217,100,0.1);
  color: #4CD964;
}
.roadmap-card-content {
  flex: 1;
}
.roadmap-card-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.roadmap-card-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.shipped-version {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .page-main { padding: 100px 16px 60px; }
}
