/* ============================================================
   Pop-up se zápasy o víkendu (homepage, st–ne) — viz index.php
   a assets/js/main.js. Karty zápasů uvnitř sdílí styl .c-result
   z results.css.
   ============================================================ */

.c-weekend-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.c-weekend-popup:not(.is-open) { pointer-events: none; }

.c-weekend-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.75);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.c-weekend-popup.is-open .c-weekend-popup__backdrop { opacity: 1; }

.c-weekend-popup__dialog {
  position: relative;
  background: var(--c-white);
  border-radius: 16px;
  width: min(560px, 100%);
  max-height: min(680px, 90vh);
  overflow-y: auto;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.c-weekend-popup.is-open .c-weekend-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.c-weekend-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--c-gray-text);
  cursor: pointer;
  padding: 6px;
}
.c-weekend-popup__close:hover { color: var(--c-red); }

.c-weekend-popup__head { text-align: center; margin-bottom: 18px; padding-right: 20px; }

.c-weekend-popup__eyebrow {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-red);
  font-size: 0.9rem;
  font-weight: 600;
}

.c-weekend-popup__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.9rem;
  line-height: 1.05;
  margin: 4px 0 6px;
  color: var(--c-black);
}

.c-weekend-popup__sub { color: var(--c-gray-text); font-size: 0.9rem; }

.c-weekend-popup__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-weekend-popup__cta {
  display: block;
  text-align: center;
  margin-top: 18px;
  background: var(--c-red);
  color: var(--c-white);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.c-weekend-popup__cta:hover { background: var(--c-red-dark); }

/* Zamezí scrollování stránky pod otevřeným pop-upem. */
body.has-weekend-popup { overflow: hidden; }

@media (max-width: 480px) {
  .c-weekend-popup__dialog { padding: 22px 16px 18px; }
}
