/* ═══════════════════════════════════════════════════════════
   Update Page — 2-Column Layout
   Left: Sticky Download | Right: Scrollable Changelog
   ═══════════════════════════════════════════════════════════ */

.update-section {
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.update-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 500px;
  animation: fadeSlideUp 0.6s ease-out;
}

.update-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.update-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.update-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

/* ─── Entrance Animations ────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ─── 2-Column Layout ────────────────────────────────────── */
.update-layout {
  display: flex;
  gap: 48px;
  max-width: 960px;
  width: 100%;
  align-items: flex-start;
}

.update-left {
  flex: 0 0 380px;
  position: sticky;
  top: 100px;
  animation: fadeSlideLeft 0.6s ease-out 0.2s both;
}

.update-left-inner {
  display: flex;
  flex-direction: column;
}

.update-right {
  flex: 1;
  min-width: 0;
  animation: fadeSlideRight 0.6s ease-out 0.35s both;
}

/* ─── Version Card ───────────────────────────────────────── */
.version-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.version-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
}

.version-top {
  text-align: center;
  margin-bottom: 24px;
}

.version-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
}

.version-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0;
}

.version-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Download Buttons ───────────────────────────────────── */
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.dl-icon {
  font-size: 1.1rem;
}

.version-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Right: Changelog ───────────────────────────────────── */
.update-right {
  flex: 1;
  min-width: 0;
}

.changelog-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.changelog-list {
  display: flex;
  flex-direction: column;
}

.changelog-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.changelog-item:last-child {
  border-bottom: none;
}

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

.ver-tag {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.ver-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.changelog-changes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-changes li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.changelog-changes li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .update-section {
    padding: 100px 20px 60px;
  }

  .update-layout {
    flex-direction: column;
    gap: 40px;
  }

  .update-left {
    flex: none;
    position: static;
    width: 100%;
  }

  .update-right {
    width: 100%;
  }

  .nav-cta {
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  .lang-toggle {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .update-section {
    padding: 90px 16px 40px;
  }

  .nav-cta {
    display: none;
  }

  .version-card {
    padding: 22px 18px;
  }

  .version-number {
    font-size: 1.6rem;
  }
}
