/* ═══════════════════════════════════════════════════════════════════ */
/* EVENT CARD — photo-forward card, rendered by the Archive Cards block  */
/* via template-parts/archive-cards/archive-card-events.php.             */
/*                                                                       */
/* Card grammar borrows from the site's own task surfaces: the solid     */
/* blue-dk date block echoes .activity-finder__date, the blue-dk title + */
/* meta icons mirror .activity-finder__name/__meta, and the bottom       */
/* purple action matches the finder's register affordance. The image     */
/* carries a blue-overlay bottom fade like .spotlight-cards__card. Depth  */
/* is a modest shadow (task surface), not a hairline border.             */

.event-card {
  display: flex;
  flex-direction: column;

  background: var(--white);
  border-radius: var(--box-border-radius-sm);
  overflow: hidden;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.event-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  transform: translateY(-4px);
}

/* media */

.event-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray); /* placeholder when an event has no featured image */
}

.event-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card__media img {
  transform: scale(1.04);
}

/* blue-overlay bottom fade — the site's "photography with blue overlays"
   signature (spotlight_cards grammar), tinting the photo toward the blue
   date block above it. */
.event-card__media__grad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: var(--blue-overlay-gradient);
  opacity: 0.5;
}

/* date block — solid blue-dk, white type, echoing .activity-finder__date.
   Kept as a floating top-left badge with the small shadow the design system
   endorses for event date badges. */
.event-card__date {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 9px 14px;
  line-height: 1;

  background: var(--blue-dk);
  border-radius: var(--btn-border-radius-sm);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.event-card__date__mon {
  display: block;
  margin-bottom: 3px;
  font-family: "Cachet", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--white);
}

.event-card__date__day {
  display: block;
  font-family: "Cachet", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--white);
}

/* body */

.event-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 20px 22px 22px;
}

.event-card__title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.7px;
  color: var(--blue-dk); /* blue structure — matches .activity-finder__name */
  transition: color 0.25s ease;
}

.event-card:hover .event-card__title {
  color: var(--purple-dk);
}

.event-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-dk); /* the token spec'd for archive/finder meta copy */
}

.event-card__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-card__meta-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.event-card__meta-icon .icon {
  font-size: 16px;
  color: var(--blue-dk);
}

/* action — full-width purple Register anchored to the card bottom, so every
   card ends on a clear, consistent CTA (btn--purple hovers to blue-dk). */
.event-card__actions {
  margin-top: auto;
  padding-top: 4px;
}

.event-card__actions .btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

/* skeleton — full-width button silhouette so the grid holds shape while an
   infinite-scroll batch loads (overrides the 150px default in
   archive_cards.css for this post type only). */
.event-card__actions .archive-cards__skeleton-line--button {
  width: 100%;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* mobile — the grid drops to a single column here (archive_cards.css); ease
   the interior spacing so a full-width card doesn't feel oversized. */

@media (max-width: 680px) {
  .event-card__body {
    padding: 18px 18px 20px;
  }

  .event-card__date__day {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card:hover {
    transform: none;
  }
}
