/* ════════════════════════════════════════════════════════
   CHANGELOG PAGE STYLES
   ════════════════════════════════════════════════════════ */

/* ─── CHANGELOG LIST ─── */
#changelog {
  max-width: 900px;
}
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  position: relative;
}

/* Vertical line */
.changelog-entry::before {
  content: '';
  position: absolute;
  left: 139px;
  top: 0;
  bottom: -32px;
  width: 2px;
  background: var(--border);
}
.changelog-entry:last-child::before {
  display: none;
}

/* Dot on line */
.changelog-entry::after {
  content: '';
  position: absolute;
  left: 133px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 1;
}
.changelog-entry-future::after {
  background: var(--accent2);
  box-shadow: 0 0 12px var(--accent2-glow);
}

/* ─── VERSION COLUMN ─── */
.changelog-version-col {
  text-align: right;
  padding-top: 4px;
}
.changelog-version {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.changelog-date {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ─── CONTENT ─── */
.changelog-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}
.changelog-content:hover {
  border-color: var(--border-hover);
}
.changelog-entry-future .changelog-content {
  border-style: dashed;
  opacity: 0.85;
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.changelog-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.changelog-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 100px;
}
.badge-latest {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
}
.badge-planned {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent2);
}

.changelog-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ─── GROUPS ─── */
.changelog-group {
  margin-bottom: 24px;
}
.changelog-group:last-child {
  margin-bottom: 0;
}
.changelog-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid;
}
.changelog-group-title.new {
  color: var(--accent3);
  border-color: var(--accent3);
}
.changelog-group-title.improved {
  color: var(--accent);
  border-color: var(--accent);
}
.changelog-group-title.fixed {
  color: #f59e0b;
  border-color: #f59e0b;
}

.changelog-group ul {
  list-style: none;
}
.changelog-group ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0 5px 24px;
  position: relative;
  line-height: 1.5;
}
.changelog-group ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
}
.changelog-group ul li strong {
  color: var(--text-primary);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 24px;
  }
  .changelog-version-col {
    text-align: left;
  }
  .changelog-entry::before {
    left: 7px;
  }
  .changelog-entry::after {
    left: 1px;
  }
}
