/* event-popup.css */
.event-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #384130;
  color: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  max-width: 280px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-family: 'Encode Sans Semi Condensed', sans-serif;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.6s ease;
}

@keyframes slideIn {
  from { transform: translateX(150%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.event-popup-content {
  text-align: left;
  position: relative;
}

.event-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  color: white;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin: 0;
  outline: none;
}

.event-popup-date {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.event-popup-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.event-popup-subtitle {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.event-popup-link {
  font-size: 0.9rem;
  color: #fff;
  text-decoration: underline;
}

.event-popup-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #384130;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-family: 'Encode Sans Semi Condensed', sans-serif;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .event-popup {
    right: 1rem;
    bottom: 5.5rem; /* Lifts popup above bottom nav */
    max-width: 90%;
    width: auto;
    box-sizing: border-box;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 0.75rem;
  }

  .event-popup-toggle {
    right: 1rem;
    bottom: 5.5rem; /* Same height as popup for toggle */
    max-width: 90%;
    width: auto;
  }

  .event-popup-content {
    padding-right: 2rem;
  }
}

