/* Events page + home "Upcoming Events" section — shared card styles. */

.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ev-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e8ec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  color: inherit;
}
.ev-card:hover, .ev-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, .12); outline: none; }

.ev-card-top { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.1rem .5rem; }
.ev-date {
  flex: 0 0 auto; width: 60px; text-align: center;
  background: var(--color-primary, #ffbc00); color: #1a1a1a;
  border-radius: 10px; padding: .45rem 0; font-weight: 800; line-height: 1;
}
.ev-date .ev-mon { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.ev-date .ev-day { display: block; font-size: 1.6rem; margin-top: 3px; }
.ev-head { flex: 1 1 auto; min-width: 0; }
.ev-title { font-size: 1.12rem; font-weight: 800; margin: 0 0 .2rem; color: #12233b; }
.ev-when { color: var(--color-text-muted, #5a6b7b); font-size: .88rem; }

.ev-body { padding: 0 1.1rem .5rem; color: #44515e; font-size: .95rem; line-height: 1.5; flex: 1 1 auto; }
.ev-badges { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .5rem; }
.ev-badge { font-size: .75rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; background: #eef4f8; color: #33566f; }
.ev-badge-free { background: #e6f6ec; color: #1c7a3e; }
.ev-badge-soon { background: #fdecec; color: #b3261e; }

.ev-foot { padding: .5rem 1.1rem 1.1rem; }
.ev-btn {
  display: inline-block; width: 100%; text-align: center; box-sizing: border-box;
  background: var(--color-primary, #ffbc00); color: #1a1a1a; font-weight: 800;
  text-decoration: none; padding: .7rem 1rem; border-radius: 999px;
  transition: background-color .15s ease, transform .15s ease;
}
.ev-btn:hover, .ev-btn:focus-visible { background: var(--color-primary-light, #ffd34d); transform: translateY(-1px); }

/* Home section band — same blue as the hero ("Batting cages for everyone"). */
.upcoming-events { padding: var(--spacing-3xl, 5rem) 0; background: var(--color-accent, #0a92dd); }
.upcoming-events .section-title { text-align: center; color: #fff; }
.upcoming-events-intro { text-align: center; color: rgba(255, 255, 255, .92); max-width: 620px; margin: 0 auto 2rem; }

/* Home: keep Upcoming Events to a single horizontally-scrolling row, however many
   are featured (the full list lives on /events). Overrides the wrapping .ev-grid. */
.upcoming-events .ev-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .75rem;
  scrollbar-color: rgba(255, 255, 255, .6) transparent;
}
.upcoming-events .ev-grid > .ev-card { flex: 0 0 300px; scroll-snap-align: start; }
@media (max-width: 360px) { .upcoming-events .ev-grid > .ev-card { flex-basis: 84vw; } }

/* Detail page (RSVP) */
.ev-detail { max-width: 680px; }
.ev-detail-when { color: var(--color-text-muted, #5a6b7b); font-weight: 600; margin: -.25rem 0 1rem; }
.ev-detail-writeup { line-height: 1.6; color: #3a4753; white-space: pre-line; margin-bottom: 1.5rem; }
.ev-rsvp-card { background: #fff; border: 1px solid #e3e8ec; border-radius: 14px; padding: 1.25rem; }
.ev-q { margin-top: .25rem; }
.ev-success { background: #e6f6ec; border: 1px solid #a9dcbb; color: #14532d; border-radius: 12px; padding: 1.25rem; }
