/* GIFTEd — events page styles. Shared tokens/components live in design-system.css. */

/* Featured event, big split */
.featured-event {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  margin-top: 56px;
  background: #1A5C6B;
}
.featured-event-media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #E4E9EA;
}
.featured-event-body {
  padding: 60px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #D4622A;
  border-radius: 999px;
  padding: 6px 15px;
}
.featured-event-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #4AADBB;
  margin: 24px 0 0;
  letter-spacing: 0.06em;
}
.featured-event-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 12px 0 0;
}
.featured-event-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: rgba(255,255,255,0.76);
  line-height: 1.75;
  margin: 18px 0 0;
}
.featured-event-loc {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin: 24px 0 0;
}
.featured-event-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* Upcoming card grid */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.up-card {
  background: #FDFAF6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.up-card:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(0,0,0,0.13); }
.up-card-media { aspect-ratio: 16/10; overflow: hidden; background: #E4E9EA; }
.up-card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.up-card-date {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 0 0 10px;
}
.up-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.25;
  margin: 0;
}
.up-card-text {
  font-family: var(--font-body);
  font-size: 0.87rem;
  color: #6B6B6B;
  line-height: 1.65;
  margin: 12px 0 18px;
  flex: 1;
}
.up-card-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D4622A;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.up-card-link:hover { opacity: 0.7; }

/* Past events, ledger rows w/ thumbs */

/* Host steps */

@media (max-width: 900px) {
  .upcoming-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .featured-event { grid-template-columns: 1fr; }
  .featured-event-media { min-height: 280px; }
  .featured-event-body { padding: 40px 26px; }
  .featured-event-title { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .upcoming-grid { grid-template-columns: 1fr; }
}

/* Horizontal event rail: 3 across on desktop, scrolls sideways.
   Uses scroll-snap so cards land cleanly rather than half-visible. */
.rail-wrap { position: relative; margin-top: 56px; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #D9D4CE; border-radius: 999px; }
.rail-card {
  scroll-snap-align: start;
  background: #FDFAF6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rail-card:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(0,0,0,0.13); }
.rail-card-media { aspect-ratio: 16/10; overflow: hidden; background: #E4E9EA; }
.rail-card-body { padding: 24px 22px 28px; }
.rail-card-date {
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #4AADBB; margin: 0 0 9px;
}
.rail-card-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: #0D0D0D; line-height: 1.25; margin: 0;
}
.rail-card-text {
  font-family: var(--font-body); font-size: 0.87rem;
  color: #6B6B6B; line-height: 1.65; margin: 10px 0 0;
}
.rail-btn {
  position: absolute; top: 32%;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid #E0D9D1;
  background: #fff;
  color: #1A5C6B;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.rail-btn:hover { background: #F7F4F0; }
.rail-btn[disabled] { opacity: 0.35; cursor: default; }
.rail-btn--prev { left: -22px; }
.rail-btn--next { right: -22px; }
@media (max-width: 900px) {
  .rail { grid-auto-columns: calc((100% - 24px) / 2); }
  .rail-btn { display: none; }
}
@media (max-width: 560px) {
  .rail { grid-auto-columns: 86%; }
}

/* "Want to see a specific event?" ask — a bordered call-out so it reads as
   an invitation, not another event card in the rail above it. */
.event-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 56px;
  padding: 30px 34px;
  border: 2px dashed rgba(26,92,107,0.3);
  border-radius: 16px;
  background: #FDFAF6;
  text-align: center;
}
.event-ask-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.35;
}
.event-ask-btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .event-ask { flex-direction: column; gap: 18px; padding: 26px 22px; }
}
.event-ask-alt {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #6B6B6B;
  line-height: 1.6;
}
.event-ask-alt a {
  color: #D4622A;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
