/* ================================================
   POPUP — css/popup.css
   Smooth entrance / exit animations.
   No close button — click anywhere to dismiss.
================================================ */

/* ── Overlay backdrop ───────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);          /* start transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  cursor: pointer;

  /* backdrop transition */
  transition: background 0.45s ease;
  pointer-events: none;                   /* off until visible */
}

.popup-overlay.popup-visible {
  background: rgba(0, 0, 0, 0.72);
  pointer-events: all;
}

.popup-overlay.popup-exit {
  background: rgba(0, 0, 0, 0) !important;
  pointer-events: none;
}

/* ── Modal box ──────────────────────────────── */
.popup-box {
  position: relative;
  max-width: 540px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07);
  cursor: default;                        /* inner box doesn't inherit pointer */

  /* start: invisible + shifted down */
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition:
    opacity  0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.popup-visible .popup-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-exit .popup-box {
  opacity: 0;
  transform: translateY(-30px) scale(0.96);
  transition:
    opacity  0.35s ease-in,
    transform 0.35s ease-in;
}

/* ── Image ──────────────────────────────────── */
.popup-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ── Footer bar ─────────────────────────────── */
.popup-footer {
  background: #111;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: default;
}

.popup-footer label {
  color: #bbb;
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-footer input[type="checkbox"] {
  accent-color: #c8a84b;
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.popup-hint {
  color: #555;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 480px) {
  .popup-box {
    max-width: 92vw;
    border-radius: 10px;
  }
  .popup-hint { display: none; }
}