/* Changelog Components */
.changelog-container {
  position: relative;
  padding-left: 3rem;
  margin-top: var(--page-header-content-gap);
}
@media (max-width: 1024px) {
  .changelog-container {
    margin-top: var(--page-header-content-gap);
  }
}

.changelog-container::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
  border-radius: 99px;
  opacity: 0.2;
}

.changelog-entry {
  position: relative;
  margin-bottom: 4rem;
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: calc(-2.5rem - 0.44rem + 1px);
  top: 0.62rem;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  background: radial-gradient(circle, #f2fff7 0%, #9dffbf 34%, var(--primary) 68%, #00b455 100%);
  box-shadow:
    0 0 0 6px rgba(100, 255, 150, 0.08),
    0 0 10px rgba(100, 255, 150, 0.2);
  z-index: 2;
}

.changelog-entry::after {
  content: '';
  position: absolute;
  left: calc(-2.5rem - 0.72rem + 1px);
  top: 0.34rem;
  width: 1.44rem;
  height: 1.44rem;
  border-radius: 50%;
  border: 1px solid rgba(100, 255, 150, 0.18);
  background: radial-gradient(circle, rgba(100, 255, 150, 0.1) 0%, rgba(100, 255, 150, 0.03) 42%, transparent 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  z-index: 1;
  pointer-events: none;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  background: rgba(100, 255, 150, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  border: 1px solid rgba(100, 255, 150, 0.2);
  margin-bottom: 1rem;
}

.version-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 0.75rem;
}

.changelog-card {
  padding: 2.5rem;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.changelog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 255, 150, 0.15);
}

.changelog-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.changelog-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.changelog-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  line-height: 1.6;
}

.changelog-item b {
  color: var(--primary);
  font-weight: 600;
}

.changelog-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.6rem;
}

/* Homepage Preview Specific */
.changelog-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 960px) {
  .changelog-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .display-lg {
    font-size: clamp(1.85rem, 9vw, 2.9rem);
    line-height: 1.15;
    word-break: break-word;
    max-width: none;
  }

  .section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .changelog-container {
    padding-left: 1.5rem;
    margin-top: 2rem;
  }

  .changelog-entry::before {
    left: calc(-1.75rem - 0.44rem + 1px);
  }

  .changelog-entry::after {
    left: calc(-1.75rem - 0.72rem + 1px);
  }

  .changelog-card {
    padding: 1.5rem;
  }

  .changelog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}
