/* ==========================================================================
   App Updates / Changelog — Page-Specific Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Content Section
   -------------------------------------------------------------------------- */
.updates-content {
  background: var(--surface);
  padding: 80px 0;
  flex: 1;
}
.updates-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 80px;
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.updates-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical line */
.updates-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: var(--stroke, #aad4cd);
}

/* --------------------------------------------------------------------------
   Update Entry
   -------------------------------------------------------------------------- */
.update-entry {
  display: flex;
  gap: 32px;
  position: relative;
  padding-bottom: 48px;
}
.update-entry:last-child {
  padding-bottom: 0;
}

/* Timeline dot */
.update-marker {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--secondary);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--stroke);
  z-index: 1;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Update Card
   -------------------------------------------------------------------------- */
.update-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--stroke, #aad4cd);
  border-radius: var(--radius-l);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card header */
.update-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.update-version {
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--surface);
  background: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}
.update-type {
  font-family: var(--font);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}
.update-type--feature {
  background: #d4f5e9;
  color: #0a6847;
}
.update-type--improvement {
  background: #e0edff;
  color: #1a56db;
}
.update-type--bugfix {
  background: #fef3c7;
  color: #92400e;
}
.update-type--announcement {
  background: #e4f1ef;
  color: var(--secondary);
}
.update-date {
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1;
  color: var(--green-apple);
  margin-left: auto;
}

/* Card title & body */
.update-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.48px;
  color: var(--primary);
}
.update-body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 30px;
  color: var(--primary);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Changes List
   -------------------------------------------------------------------------- */
.update-changes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e4f1ef;
}
.update-change {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.update-change-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.update-change-icon--feature {
  background: #d4f5e9;
  color: #0a6847;
}
.update-change-icon--improvement {
  background: #e0edff;
  color: #1a56db;
}
.update-change-icon--bugfix {
  background: #fef3c7;
  color: #92400e;
}
.update-change-text {
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Loading State
   -------------------------------------------------------------------------- */
.updates-loading {
  text-align: center;
  padding: 80px 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 30px;
  color: var(--secondary);
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (<=1279px)
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .updates-inner {
    padding: 0 48px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (<=690px)
   -------------------------------------------------------------------------- */
@media (max-width: 690px) {
  .updates-content {
    padding: 48px 0;
  }
  .updates-inner {
    padding: 0 24px;
  }
  .update-entry {
    gap: 16px;
    padding-bottom: 32px;
  }
  .updates-timeline::before {
    left: 11px;
  }
  .update-marker {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-width: 3px;
  }
  .update-card {
    padding: 24px;
  }
  .update-title {
    font-size: 20px;
    line-height: 28px;
  }
  .update-body {
    font-size: 16px;
    line-height: 26px;
  }
  .update-date {
    margin-left: 0;
  }
  .update-card-header {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
