/* === POPUP: Event / stánek Psychonautiky === */
/* Zobrazí se globálně, když Supabase.events má záznam s has_booth=true
   v okně: start_date − 7 dní  až  end_date + 2 dny.
   Dismiss → localStorage, per event ID (nevrací se, dokud je stejný event). */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

#psy-ev-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#psy-ev-overlay.psy-ev--open    { display: flex; opacity: 0; }
#psy-ev-overlay.psy-ev--visible { opacity: 1; }

#psy-ev-box {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 100%;
  padding: 36px 36px 28px;
  font-family: 'Poppins', sans-serif;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.35s ease;
}
#psy-ev-overlay.psy-ev--visible #psy-ev-box { transform: translateY(0); }

.psy-ev__close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #aaaaaa;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  font-family: inherit;
}
.psy-ev__close-btn:hover { color: #1a1a1a; }

.psy-ev__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5A958B;
  margin: 0 0 10px;
}

.psy-ev__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0 0 12px;
}

.psy-ev__countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #5A958B;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}

.psy-ev__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #f7f7f7;
  border-radius: 12px;
}
.psy-ev__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #333;
}
.psy-ev__meta-row svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #5A958B;
}
.psy-ev__meta-row strong { color: #1a1a1a; font-weight: 600; }

.psy-ev__body {
  font-size: 14.5px;
  line-height: 1.7;
  color: #333333;
  margin: 0 0 18px;
}
.psy-ev__body p        { margin: 0 0 10px; }
.psy-ev__body p:last-child { margin: 0; }
.psy-ev__body strong   { color: #1a1a1a; font-weight: 600; }

.psy-ev__shipping {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}
.psy-ev__shipping strong { color: #5A958B; font-weight: 700; }

.psy-ev__foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.psy-ev__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.psy-ev__btn--primary {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}
.psy-ev__btn--primary:hover {
  background: #5A958B;
  border-color: #5A958B;
  color: #ffffff;
}
.psy-ev__btn--ghost {
  background: transparent;
  color: #1a1a1a;
  border-color: #d0d0d0;
}
.psy-ev__btn--ghost:hover {
  background: #f5f5f5;
  border-color: #999999;
  color: #1a1a1a;
}

@media (max-width: 540px) {
  #psy-ev-box    { padding: 28px 22px 22px; }
  .psy-ev__title { font-size: 24px; }
  .psy-ev__foot  { flex-direction: column; }
  .psy-ev__btn   { width: 100%; justify-content: center; }
}
