/* ============================================================
   RELEASES PAGE STYLES — releases.html
   ============================================================ */

/* TIMELINE */
.releases {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.release {
  position: relative;
  padding-left: 36px;
  padding-bottom: 48px;
  border-left: 1px solid var(--line);
}

.release:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.release::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  transition: border-color .15s ease, background .15s ease;
}

.release.latest::before {
  background: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  border-color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  box-shadow: 0 0 0 4px hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60% / 0.18);
}

.release-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.release-version {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}

.release-date {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.release-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.release-tag.latest {
  background: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  color: #fff;
}

.release-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}

.release-body:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.release-section {
  margin-bottom: 24px;
}

.release-section:last-child {
  margin-bottom: 0;
}

.release-section h3 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--ink-3);
}

.release-section h3.added { color: hsl(142 65% 55%); }
.release-section h3.improved { color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%); }
.release-section h3.fixed { color: hsl(330 75% 70%); }

.release-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.release-section li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.55;
}

.release-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.release-section h3.added + ul li::before { background: hsl(142 65% 55% / 0.55); }
.release-section h3.improved + ul li::before { background: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60% / 0.55); }
.release-section h3.fixed + ul li::before { background: hsl(330 75% 70% / 0.55); }

/* PAGINATION */
.releases-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto 96px;
  padding: 0 24px;
}

.releases-pagination .page-btn {
  background: var(--card);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.releases-pagination .page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.releases-pagination .page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.releases-pagination .page-btn.active {
  background: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  border-color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  color: #fff;
  cursor: default;
}

.releases-pagination .page-num {
  min-width: 36px;
  padding: 9px 10px;
  letter-spacing: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .releases { padding: 40px 16px 60px; }
  .release { padding-left: 24px; }
}
