/* ============================================
   BRILLION STUDIO - CHANGELOG PAGE
   Extends legal.css with a timeline-style layout
   ============================================ */

.changelog-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 20px 0 0;
}

/* Changelog entries live inside .legal-body's content column */
.changelog-body {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 720px;
}

.changelog-entry {
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-margin-top: calc(var(--nav-h) + 32px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dim);
}
.changelog-entry:last-child { border-bottom: 0; padding-bottom: 0; }

.changelog-entry__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Version label inherits .legal-section__index visuals (bracket + mono + accent) */
.changelog-entry__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.changelog-entry__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.changelog-entry__content h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

/* ---------- LIST OF CHANGES ---------- */
.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.changelog-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  padding-left: 0;
}
.changelog-list a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.changelog-list a:hover { opacity: 0.7; }

.changelog-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  border: 1px solid transparent;
}
.changelog-tag--new {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(255, 86, 16, 0.35);
}
.changelog-tag--improve {
  background: rgba(76, 137, 255, 0.12);
  color: #6ea4ff;
  border-color: rgba(110, 164, 255, 0.3);
}
.changelog-tag--fix {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-color: var(--border);
}
[data-theme="light"] .changelog-tag--improve {
  background: rgba(76, 137, 255, 0.08);
  color: #2e63d8;
}
[data-theme="light"] .changelog-tag--fix {
  background: rgba(0, 0, 0, 0.04);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .changelog-body { gap: 40px; max-width: none; }
}
@media (max-width: 768px) {
  .changelog-body { gap: 32px; }
  .changelog-entry { padding-bottom: 24px; gap: 14px; }
  .changelog-entry__content h2 { font-size: 22px; }
  .changelog-list li {
    font-size: 15px;
    flex-wrap: wrap;
  }
  .changelog-tag { min-width: 64px; }
}
