/* Square, IG-style tile with overlay */
.event-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,.08);
}
.event-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.event-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  display: flex; align-items: flex-end;
  padding: 10px 12px;
}
.event-title {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* Date badge */
.badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(22,163,74,.95); /* green-600 */
  color: #fff; font-weight: 700; font-size: 12px;
  padding: 6px 10px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* Modal appear */
#event-modal:not(.hidden) .relative {
  animation: modalIn .18s ease-out;
}
@keyframes modalIn {
  from { transform: translateY(8px) scale(.98); opacity:.9; }
  to   { transform: translateY(0)   scale(1);   opacity:1; }
}

.badge--past {
  background: rgba(107,114,128,.95); /* gray-600 */
}
