/* ============================================================
   Events Popup Modal — popup.css
   Slides in from the bottom-right after 2.5s
   ============================================================ */

/* Backdrop */
.ep-popup-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,0.55);
  z-index: 8000;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ep-popup-backdrop.visible {
  display: block;
  opacity: 1;
}

/* Popup panel */
.ep-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: var(--charcoal);
  border: 1px solid rgba(197,164,107,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  z-index: 8001;
  /* Hidden state — slid down below viewport */
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1),
              opacity 0.4s ease;
  pointer-events: none;
}
.ep-popup.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Gold accent bar on top */
.ep-popup::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
}

.ep-popup-inner {
  padding: 1.8rem 2rem 2rem;
}

/* Close button */
.ep-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 0.3rem;
}
.ep-popup-close:hover { color: var(--gold); }

/* Header */
.ep-popup-header { margin-bottom: 1.4rem; }
.ep-popup-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--ivory);
  margin: 0.4rem 0 0;
  line-height: 1.2;
}
.ep-popup-header h3 em { color: var(--gold-light); font-style: italic; }

/* Event list */
.ep-popup-events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.ep-popup-event {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(197,164,107,0.12);
}
.ep-popup-event:last-child { border-bottom: none; padding-bottom: 0; }

/* Category colour dot */
.ep-popup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.ep-popup-dot.greenweek  { background: #A8D878; }
.ep-popup-dot.runway     { background: var(--gold); }
.ep-popup-dot.advocacy   { background: #7EC8E3; }
.ep-popup-dot.appearance { background: var(--gold-light); }

.ep-popup-info { flex: 1; }
.ep-popup-info strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.ep-popup-info span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.ep-popup-info span i { color: var(--gold); margin-right: 0.25rem; }

/* CTA button */
.ep-popup-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem;
  font-size: 0.68rem;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 767px) {
  .ep-popup {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
  }
}
