/* ============================================================
   Popup – popup.css
   ============================================================ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 9800;
  background: rgba(10,5,2,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.popup-overlay.popup-open {
  opacity: 1; pointer-events: all;
}

.popup-box {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(340px, calc((100vh - 40px) * 9 / 16));
  background: #1a1a1a;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.popup-overlay.popup-open .popup-box {
  transform: translateY(0) scale(1);
}

/* Szöveges tartalom esetén alul padding + halvány gradient az olvashatóságért */
.popup-box.popup-has-content {
  padding: 0 28px 36px;
}
.popup-box.popup-has-content::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,5,2,0.7) 0%, transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.popup-box.popup-has-content > *:not(.popup-close) {
  position: relative; z-index: 1;
}

/* Csak kép esetén nincs overlay, nincs padding */
.popup-box:not(.popup-has-content):not(.popup-has-bg) {
  border-top: 4px solid var(--orange);
}

/* Bezáró gomb – narancssárga háttér */
.popup-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange);
  border: none;
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.popup-close:hover { background: #ff7a2f; transform: scale(1.1); }

.popup-eyebrow {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 8px;
}

.popup-title {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 900;
  color: #fff; margin: 0 0 10px; line-height: 1.18;
}

.popup-body {
  font-family: var(--sans); font-size: 0.88rem;
  color: rgba(255,255,255,0.75); line-height: 1.6;
  margin: 0 0 22px;
}

#popup-btn-wrap {
  display: flex; justify-content: center;
}

.popup-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--orange); color: #fff;
  padding: 13px 24px;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.popup-btn:hover { background: #ff7a2f; transform: translateY(-2px); }

@media (max-width: 480px) {
  .popup-box.popup-has-content { padding: 0 20px 28px; }
  .popup-title { font-size: 1.45rem; }
}
