/* ==========================================================================
   Lexy Updates & Changelog Styles
   Material 3 aligned, responsive timeline grouped by month
   ========================================================================== */

.updates-hero {
  padding: 56px 0 36px;
  text-align: center;
}

.updates-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary, #a24936);
  background: rgba(162, 73, 54, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.updates-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--on-surface, #1a1c1e);
  letter-spacing: -0.02em;
}

.updates-hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--on-surface-variant, #44474e);
  max-width: 680px;
  margin: 0 auto 28px;
}

/* ============ TABS & FILTERS ============ */
.updates-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.updates-tabs {
  display: inline-flex;
  background: var(--surface-container-high, #edebee);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

.updates-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-variant, #44474e);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.updates-tab:hover {
  color: var(--on-surface, #1a1c1e);
  background: rgba(255, 255, 255, 0.5);
}

.updates-tab.is-active {
  background: var(--surface-card, #ffffff);
  color: var(--primary, #a24936);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.updates-tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(162, 73, 54, 0.12);
  color: var(--primary, #a24936);
}

/* ============ TIMELINE & MONTHLY CARDS ============ */
.updates-timeline {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.updates-month-card {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.updates-month-card:hover {
  border-color: rgba(162, 73, 54, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.updates-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  background: linear-gradient(180deg, rgba(162, 73, 54, 0.04) 0%, transparent 100%);
  cursor: pointer;
  user-select: none;
  list-style: none;
  outline: none;
  transition: background 0.2s ease;
}

.updates-month-header::-webkit-details-marker {
  display: none;
}

.updates-month-header:hover {
  background: linear-gradient(180deg, rgba(162, 73, 54, 0.08) 0%, rgba(162, 73, 54, 0.02) 100%);
}

.updates-month-card[open] > .updates-month-header {
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

.updates-month-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--on-surface, #1a1c1e);
  margin: 0;
}

.updates-month-icon {
  font-size: 22px;
  line-height: 1;
}

.updates-month-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.updates-month-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant, #75777e);
  background: var(--surface-container-high, #f0eef1);
  padding: 4px 12px;
  border-radius: 999px;
}

.updates-month-chevron {
  width: 20px;
  height: 20px;
  color: var(--on-surface-variant, #75777e);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), color 0.2s ease;
}

.updates-month-card[open] .updates-month-chevron {
  transform: rotate(180deg);
  color: var(--primary, #a24936);
}

/* ============ MONTH ENTRIES (CHRONOLOGICAL: EARLIER HIGHER) ============ */
.updates-entries-list {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.updates-entries-list::before {
  content: '';
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 47px;
  width: 2px;
  background: var(--surface-container-high, #e5e2e6);
}

.updates-entry {
  position: relative;
  display: flex;
  gap: 24px;
}

.updates-entry-indicator {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.updates-entry-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-card, #ffffff);
  border: 3px solid var(--primary, #a24936);
  box-shadow: 0 0 0 4px rgba(162, 73, 54, 0.15);
}

.updates-entry.is-mobile .updates-entry-dot {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.updates-entry-body {
  flex: 1;
  background: var(--surface-container-low, #fcfbfe);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.05));
  border-radius: 16px;
  padding: 18px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.updates-entry-body:hover {
  border-color: rgba(162, 73, 54, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.updates-entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.updates-entry-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface, #1a1c1e);
}

.updates-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  line-height: 1.3;
}

.updates-badge-web {
  background: rgba(162, 73, 54, 0.1);
  color: var(--primary, #a24936);
}

.updates-badge-ios {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.updates-badge-android {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.updates-entry-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.updates-entry-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-surface-variant, #3f4248);
}

.updates-entry-list li strong {
  color: var(--on-surface, #1a1c1e);
}

/* ============ MOBILE HERO CALLOUT ============ */
.updates-appstore-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.updates-appstore-text h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff;
}

.updates-appstore-text p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  max-width: 480px;
  line-height: 1.45;
}

.updates-appstore-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.updates-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.updates-store-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .updates-month-header {
    padding: 18px 20px;
  }
  .updates-entries-list {
    padding: 20px 16px;
  }
  .updates-entries-list::before {
    left: 27px;
  }
  .updates-entry {
    gap: 16px;
  }
  .updates-entry-body {
    padding: 14px 16px;
  }
  .updates-appstore-box {
    padding: 20px;
  }
}
