/* Güncellemeler — zaman çizgisi / ağaç vitrinü */

.changelog-page-main {
  --chg-rail: rgba(45, 212, 191, 0.45);
  --chg-node: #0f766e;
  --chg-glass: rgba(255, 255, 255, 0.55);
  --chg-deep: rgba(15, 23, 42, 0.92);
}

.changelog-hero-modern {
  position: relative;
  padding: 2.5rem 0 2rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
}

.changelog-hero-modern::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(45, 212, 191, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 0%, rgba(99, 102, 241, 0.16), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(15, 118, 110, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.changelog-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 56rem;
}

.changelog-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: var(--chg-node);
}

.changelog-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.changelog-hero-lead {
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--muted, #556);
  margin: 0;
  max-width: 42rem;
}

.chg-layout {
  display: grid;
  grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
  padding-bottom: 4rem;
}

@media (max-width: 960px) {
  .chg-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .chg-tree-nav-pane {
    position: relative !important;
    top: auto !important;
  }
}

/* Sol ağaç navigasyon */
.chg-tree-nav-pane {
  position: sticky;
  top: 5.75rem;
  z-index: 2;
}

.chg-tree-nav-card {
  background: linear-gradient(170deg, var(--chg-glass), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

.chg-tree-nav-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: rgba(15, 23, 42, 0.5);
}

.chg-tree-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chg-tree-branch {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
}

.chg-tree-branch:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.chg-tree-branch-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.48rem;
}

.chg-tree-rail-cap {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 52%),
    linear-gradient(135deg, rgba(45, 212, 191, 0.95), rgba(15, 118, 110, 0.85));
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
}

.chg-tree-branch-link {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--chg-deep);
  transition: color 0.15s ease;
}

.chg-tree-branch-link:hover,
.chg-tree-branch-link:focus-visible {
  color: var(--chg-node);
  outline: none;
}

.chg-tree-leaves {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.68rem;
  border-left: 2px solid var(--chg-rail);
}

.chg-tree-leaf-row {
  position: relative;
  margin-bottom: 0.28rem;
}

.chg-tree-leaf-row:last-child {
  margin-bottom: 0;
}

.chg-tree-leaf-row::before {
  content: "";
  position: absolute;
  left: -0.7rem;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: rgba(45, 212, 191, 0.45);
}

.chg-tree-leaf-row a {
  font-size: 0.7825rem;
  line-height: 1.32;
  text-decoration: none;
  color: rgba(30, 41, 59, 0.75);
}

.chg-tree-leaf-row a:hover,
.chg-tree-leaf-row a:focus-visible {
  color: var(--chg-node);
  outline: none;
}

.chg-main-col {
  min-width: 0;
}

/* Dal başlığı (yıl blokları) */
.chg-branch-section {
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
  scroll-margin-top: 6.5rem;
}

.chg-branch-header {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.chg-branch-line {
  flex: 1;
  height: 1px;
  min-width: 3rem;
  background: linear-gradient(90deg, var(--chg-rail), transparent);
  opacity: 0.75;
}

.chg-branch-pill {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: var(--chg-deep);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.1);
}

.chg-branch-meta {
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.45);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Düğümler (kartlar + dikey bağ) */
.chg-node-stack {
  position: relative;
  padding-left: 1.85rem;
}

.chg-node-stack::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--chg-rail), rgba(45, 212, 191, 0.12));
  border-radius: 999px;
}

.chg-tree-node {
  position: relative;
  margin-bottom: 1rem;
}

.chg-tree-node:last-child {
  margin-bottom: 0;
}

.chg-tree-node::before {
  content: "";
  position: absolute;
  left: -1.165rem;
  top: 1.42rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12), 0 0 18px rgba(45, 212, 191, 0.25);
  z-index: 1;
}

.chg-tree-acc {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 16px;
  overflow: clip;
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.04),
    inset 0 1px rgba(255, 255, 255, 0.75);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(16px);
}

.chg-tree-acc:hover {
  border-color: rgba(13, 148, 136, 0.2);
}

.chg-tree-acc[open] {
  transform: translateY(-1px);
  box-shadow: 0 12px 42px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(13, 148, 136, 0.12);
}

.chg-tree-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  outline: none;
}

.chg-tree-acc summary::-webkit-details-marker {
  display: none;
}

.chg-tree-acc summary:focus-visible .chg-acc-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.chg-acc-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.52rem;
}

.chg-acc-date-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
}

.chg-acc-title {
  font-size: 1.065rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  padding-right: 1.85rem;
  position: relative;
}

.chg-acc-title::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 0.12em;
  font-size: 0.74rem;
  opacity: 0.42;
}

.chg-tree-acc[open] .chg-acc-title::after {
  transform: rotate(180deg);
  display: inline-block;
}

.chg-acc-body {
  padding: 0 1.35rem 1.2rem 1.35rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.055);
}

.chg-acc-body ul {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
}

.chg-acc-body li {
  margin-bottom: 0.45rem;
  line-height: 1.55;
  color: rgba(30, 41, 59, 0.88);
}

.chg-acc-body li:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .chg-tree-acc {
    transition: none;
  }
}
