/* ===== BEDROCK MANAGER — Changelog Page ===== */

/* ============================================================
   CHANGELOG HERO
   ============================================================ */
.changelog-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.changelog-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(212, 168, 75, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, transparent 0%, var(--bg-base) 100%);
  pointer-events: none;
}

.changelog-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
}

.changelog-hero__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.changelog-hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.changelog-hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding: 20px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.changelog-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.changelog-hero__stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: -0.5px;
}

.changelog-hero__stat:last-child {
  display: flex;
  align-items: center;
}

.changelog-hero__stat:last-child .btn {
  font-family: var(--font-family);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.changelog-hero__stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.changelog-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.changelog {
  padding: 40px 0 100px;
}

.timeline {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

/* ============================================================
   VERSION ENTRY
   ============================================================ */
.version-entry {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.version-entry:last-child {
  margin-bottom: 0;
}

/* Marker column */
.version-entry__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  position: relative;
  padding-top: 28px;
}

.version-entry__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-active);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 2px var(--bg-active);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.version-entry__dot--latest {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(212, 168, 75, 0.3);
}

.version-entry__dot--beta {
  background: var(--info);
  box-shadow: 0 0 0 2px var(--info), 0 0 12px rgba(122, 156, 199, 0.2);
}

.version-entry__line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--border-hover) 0%, var(--border) 100%);
  margin-top: 4px;
}

/* Card */
.version-entry__card {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.version-entry__card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.version-entry__header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
}

.version-entry__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.version-entry__version {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.version-entry__badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.version-entry__badge--latest {
  background: rgba(212, 168, 75, 0.15);
  color: var(--accent);
  border: 1px solid rgba(212, 168, 75, 0.25);
}

.version-entry__badge--initial {
  background: rgba(124, 184, 124, 0.12);
  color: var(--success);
  border: 1px solid rgba(124, 184, 124, 0.2);
}

.version-entry__badge--beta {
  background: rgba(122, 156, 199, 0.12);
  color: var(--info);
  border: 1px solid rgba(122, 156, 199, 0.2);
}

.version-entry__date {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.version-entry__summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.version-entry__body {
  padding: 24px 32px 28px;
}

/* ============================================================
   CHANGELOG CATEGORY (Added / Changed / Fixed)
   ============================================================ */
.changelog-category {
  margin-bottom: 24px;
}

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

.changelog-category__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.changelog-category__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.changelog-category__icon svg {
  width: 14px;
  height: 14px;
}

.changelog-category__icon--added {
  background: rgba(122, 156, 199, 0.12);
  border: 1px solid rgba(122, 156, 199, 0.15);
  color: var(--info);
}

.changelog-category__icon--changed {
  background: rgba(212, 168, 75, 0.12);
  border: 1px solid rgba(212, 168, 75, 0.15);
  color: var(--accent);
}

.changelog-category__icon--fixed {
  background: rgba(124, 184, 124, 0.12);
  border: 1px solid rgba(124, 184, 124, 0.15);
  color: var(--success);
}

.changelog-category__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
}

.changelog-category__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 38px;
}

.changelog-category__list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.changelog-category__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  transform: rotate(45deg);
}

.changelog-category__icon--added + .changelog-category__title ~ .changelog-category__list li::before,
.changelog-category:has(.changelog-category__icon--added) .changelog-category__list li::before {
  background: var(--info);
}

.changelog-category:has(.changelog-category__icon--changed) .changelog-category__list li::before {
  background: var(--accent);
}

.changelog-category:has(.changelog-category__icon--fixed) .changelog-category__list li::before {
  background: var(--success);
}

/* ============================================================
   BOTTOM CTA
   ============================================================ */
.changelog-cta {
  text-align: center;
  margin-top: 72px;
  padding: 48px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.changelog-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-muted), transparent);
}

.changelog-cta__text {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.version-entry__empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.version-entry__empty svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .changelog-hero {
    padding: 130px 0 60px;
  }

  .changelog-hero__title {
    font-size: 40px;
  }

  .changelog-hero__stats {
    flex-direction: column;
    gap: 16px;
    padding: 24px 32px;
  }

  .changelog-hero__stat-divider {
    width: 48px;
    height: 1px;
  }

  .version-entry {
    gap: 20px;
  }

  .version-entry__marker {
    display: none;
  }

  .version-entry__header {
    padding: 24px 20px 20px;
  }

  .version-entry__body {
    padding: 20px;
  }

  .version-entry__version {
    font-size: 20px;
  }

  .changelog-category__list {
    padding-left: 28px;
  }

  .changelog-cta {
    margin-top: 48px;
    padding: 36px 20px;
  }
}
