/* Changelog — Grouped Design */
.changelog-body { padding: 0 0 3rem; }

/* Version card — gradient header */
.changelog-version {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.changelog-version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.changelog-version-header .ver-date {
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.95;
}

.changelog-version-body {
  padding: 1.5rem;
}

/* Feature group — title + desc + sub-items */
.changelog-feature-group {
  margin-bottom: 1.75rem;
}

.changelog-feature-group:last-child {
  margin-bottom: 0;
}

.changelog-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.changelog-group-desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
  padding-left: 1.5rem;
}

.changelog-group-items {
  list-style: none;
  padding: 0 0 0 1.5rem;
  margin: 0;
  border-left: 2px solid #e0e7ff;
}

.changelog-group-items li {
  padding: 0.35rem 0 0.35rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
  position: relative;
}

.changelog-group-items li::before {
  content: "✨";
  position: absolute;
  left: -1.5rem;
  font-size: 0.75rem;
}

.changelog-group-items li.enhanced::before { content: "⚡"; }
.changelog-group-items li.fix::before { content: "🔧"; }

/* Standalone group (no sub-items, e.g. single-feature) */
.changelog-feature-group.is-single .changelog-group-desc {
  margin-bottom: 0;
}

.changelog-feature-group.is-single .changelog-group-items {
  display: none;
}

/* Legacy format (pre blocks for older versions) */
.changelog-body pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 1rem 0;
}

.changelog-legacy strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 10px;
  border-left: 4px solid #6366f1;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.changelog-legacy strong:first-of-type { margin-top: 0; }

.changelog-body a { color: #2563eb; font-weight: 500; }
.changelog-body a:hover { text-decoration: underline; }

/* Reading progress bar */
.progress-reading {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #10b981);
  z-index: 1030;
  transition: width 0.15s ease;
}

.changelog-hero { margin-bottom: 2rem; }
