/* ==========================================================================
   Event Popup — opakovane použiteľný propagačný overlay
   --------------------------------------------------------------------------
   Zobrazí obrázok (leták / plagát) ihneď po načítaní stránky.
   Štýly dopĺňajú komponent definovaný v assets/js/event-popup.js.
   ========================================================================== */

.event-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 17, 17, 0.68);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.event-popup--visible {
  opacity: 1;
  visibility: visible;
}

.event-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.event-popup--visible .event-popup__dialog {
  transform: translateY(0) scale(1);
}

.event-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.event-popup__close:hover {
  background: #ff9800;
  transform: rotate(90deg);
}

.event-popup__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 68vh;
  margin: 0 auto;
  object-fit: contain;
}

.event-popup__content {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
}

.event-popup__title {
  margin: 0 0 0.4rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  color: #1f2428;
}

.event-popup__text {
  margin: 0 0 1.25rem;
  color: #6b7280;
  line-height: 1.6;
}

.event-popup__cta {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  background: #ff9800;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.event-popup__cta:hover {
  background: #e08600;
  color: #ffffff;
}
