/* ══════════════════════════════════════════════════════════════════════
   LuvMe — Full-screen Update Overlay
   Shows between splash and login/app when an update is available.
   ══════════════════════════════════════════════════════════════════════ */

.updater-overlay {
  position: fixed;
  inset: 0;
  z-index: 280; /* above auth-transition (250), below splash (300) */
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #080608;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(194,105,122,0.07) 0%, transparent 70%),
    #080608;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.updater-overlay.visible {
  display: flex;
  opacity: 1;
}

.updater-overlay.fade-out {
  opacity: 0;
}

/* ── Floating particles (reuse splash aesthetic) ───────────────────── */
.updater-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(194,105,122,0.2);
  animation: updaterFloat 6s ease-in-out infinite;
}

.updater-particle:nth-child(1) { left: 12%; top: 25%; animation-duration: 5.5s; }
.updater-particle:nth-child(2) { left: 85%; top: 20%; animation-duration: 7s; animation-delay: 0.8s; width: 3px; height: 3px; }
.updater-particle:nth-child(3) { left: 20%; top: 75%; animation-duration: 6.5s; animation-delay: 1.5s; width: 5px; height: 5px; }
.updater-particle:nth-child(4) { left: 75%; top: 70%; animation-duration: 5s; animation-delay: 0.3s; }

@keyframes updaterFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-18px) scale(1.2); opacity: 0.5; }
}

/* ── Center content ────────────────────────────────────────────────── */
.updater-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 360px;
  padding: 0 24px;
}

/* Icon container with pulse ring */
.updater-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  opacity: 0;
  animation: updaterFadeUp 0.6s ease forwards 0.15s;
}

.updater-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(194,105,122,0.12);
  border: 1px solid rgba(194,105,122,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.updater-icon-circle svg {
  width: 24px;
  height: 24px;
  fill: var(--rose);
}

.updater-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(194,105,122,0.15);
  border-radius: 50%;
  animation: updaterRing 2.5s ease-out infinite;
  pointer-events: none;
}

.updater-ring:nth-child(3) { animation-delay: 0.8s; }

@keyframes updaterRing {
  0% { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(2); opacity: 0; }
}

/* Title */
.updater-title {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 8px;
  opacity: 0;
  animation: updaterFadeUp 0.5s ease forwards 0.35s;
}

.updater-title em {
  font-style: italic;
  color: var(--rose);
}

/* Version badge */
.updater-version {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--rose);
  background: rgba(194,105,122,0.1);
  border: 1px solid rgba(194,105,122,0.15);
  border-radius: 100px;
  padding: 4px 16px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
  opacity: 0;
  animation: updaterFadeUp 0.5s ease forwards 0.5s;
}

/* Subtitle / description */
.updater-subtitle {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 36px;
  opacity: 0;
  animation: updaterFadeUp 0.5s ease forwards 0.6s;
}

/* ── Update button ─────────────────────────────────────────────────── */
.updater-btn-update {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 48px;
  border-radius: 100px;
  border: none;
  background: var(--rose);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  opacity: 0;
  animation: updaterFadeUp 0.5s ease forwards 0.75s;
}

.updater-btn-update:hover {
  background: var(--rose-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(194,105,122,0.3);
}

.updater-btn-update:active {
  transform: translateY(0);
}

/* ── Progress state ────────────────────────────────────────────────── */
.updater-progress-container {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: updaterFadeUp 0.4s ease forwards;
}

.updater-progress-label {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.updater-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(194,105,122,0.1);
  overflow: hidden;
}

.updater-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose-dim), var(--rose));
  transition: width 0.3s ease;
}

.updater-progress-pct {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--rose);
  letter-spacing: 0.04em;
}

/* ── Installing state ──────────────────────────────────────────────── */
.updater-installing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: updaterFadeUp 0.4s ease forwards;
}

.updater-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(194,105,122,0.15);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: updaterSpin 0.7s linear infinite;
}

.updater-installing-text {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.updater-installing-sub {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

@keyframes updaterSpin {
  to { transform: rotate(360deg); }
}

@keyframes updaterFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
