/* ═══════════════════════════════════════════════
   ScoreCaster v4 — Updates / Changelog
   Uses design tokens from app.css
   ═══════════════════════════════════════════════ */

/* ── Update Popup Modal ─────────────────────────────────────── */
.update-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popupFadeIn 0.3s var(--easing-smooth);
}

.update-popup-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.update-popup-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  max-width: 520px;
  width: 90%;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  animation: popupSlideUp 0.4s var(--easing-spring);
}

.update-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 1.5rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.update-popup-close:hover {
  background: var(--card-hover); color: var(--text);
  transform: rotate(90deg); box-shadow: var(--shadow-md);
}

.update-popup-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.update-popup-badge {
  background: var(--live-soft); color: var(--live);
  font-size: 0.65rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 9999px;
  text-transform: uppercase; letter-spacing: 0.05em;
  animation: badgePulse 2s ease-in-out infinite;
}

.update-popup-date {
  font-size: 0.8rem; color: var(--text-muted);
}

.update-popup-title {
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.75rem; line-height: 1.3;
}

.update-popup-body {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 1.5rem;
}

.update-popup-footer {
  display: flex; justify-content: flex-end;
}

.update-popup-footer .btn {
  min-width: 120px;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Existing update list styles ─────────────────────────────── */
.updates-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.updates-title {
  font-size: 2rem; font-weight: 800; color: var(--text);
  margin-bottom: 0.5rem;
}

.updates-lead {
  color: var(--text-muted); margin-bottom: 2rem;
}

.updates-list {
  display: flex; flex-direction: column; gap: 1.5rem;
}

.update-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.update-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition) var(--easing-smooth);
}
.update-item:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-3px); }
.update-item:hover::before { transform: scaleX(1); }

.update-meta {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.update-badge-new {
  background: var(--live-soft); color: var(--live);
  font-size: 0.65rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 9999px;
  text-transform: uppercase; letter-spacing: 0.05em;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.update-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.5rem;
}

.update-body {
  color: var(--text-secondary); line-height: 1.6;
}

.updates-empty {
  color: var(--text-muted); text-align: center; padding: 2rem;
}

.updates-cta {
  margin-top: 2rem; text-align: center; color: var(--text-muted);
}

.updates-cta .btn { margin-top: 0.75rem; }