/* event.css — single event detail page. */

.wg-event-banner {
  border-radius: var(--wg-radius);
  overflow: hidden;
  margin-bottom: var(--wg-space);
  background:var(--wg-surface);
}
/* The frame keeps one shape whatever the poster's own proportions are, and the
   poster itself is never cropped: it sits contained in the middle, and a
   blurred, scaled copy of the same file fills the space beside it instead of a
   grey letterbox. Same picture, so no extra request. */
.wg-event-banner { position: relative; isolation: isolate; }
.wg-event-banner-fill {
  position: absolute; inset: 0; z-index: 0;
  background-position: center; background-size: cover;
  filter: blur(26px) saturate(1.25) brightness(.92);
  transform: scale(1.2);
}
.wg-event-banner-fill::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(10, 14, 22, .22);
}
.wg-event-banner img {
  position: relative; z-index: 1;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-height: 420px;
  /* contain (not cover) so tall/portrait posters show in full instead of being
     cropped; the blurred fill behind covers the rest of the frame. */
  object-fit: contain;
  object-position: center;
}
@media (prefers-reduced-motion: no-preference) {
  .wg-event-banner img { transition: opacity .2s var(--wg-ease-out, ease); }
}

.wg-event-title { margin: 0 0 10px; }
.wg-event-when { font-weight: 600; margin-bottom: 10px; }
.wg-event-cat-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 10px;
  border-radius: 999px; background:var(--wg-tint); color:var(--wg-color-dark);
  font-size: 0.8rem; font-weight: 600; vertical-align: 1px;
}
.wg-event-cat-chip .wg-evcat-ico { width: 13px; height: 13px; }

.wg-event-loc {
  border:1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  padding: 12px;
  margin-bottom: var(--wg-space);
}
.wg-event-loc-name { font-weight: 600; }
.wg-event-loc-addr { color:var(--wg-muted); margin-top: 2px; }
.wg-event-loc-link { display: inline-block; margin-top: 6px; }
.wg-event-map {
  width: 100%;
  max-width: 480px;   /* keep the map compact — it shouldn't dominate the page */
  height: 180px;
  border-radius: var(--wg-radius);
  margin-top: 12px;
  border:1px solid var(--wg-border);
}

.wg-event-body {
  white-space: normal;
  line-height: 1.55;
  margin-bottom: var(--wg-space);
}
.wg-event-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: var(--wg-space);
}
@media (min-width: 480px) {
  .wg-event-gallery { grid-template-columns: 1fr 1fr; }
}
.wg-event-gthumb {
  display: block;
  border:1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  overflow: hidden;
  background:var(--wg-surface);
}
.wg-event-gthumb img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;   /* flyers must stay fully readable, not cropped */
}

.wg-event-comm { color:var(--wg-muted); margin-bottom: var(--wg-space); }

.wg-event-host {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top:1px solid var(--wg-border);
  border-bottom:1px solid var(--wg-border);
  margin-bottom: var(--wg-space);
}
.wg-event-host .wg-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.wg-event-host-label { display: block; font-size: 0.8rem; color:var(--wg-muted); }

/* .wg-event-disclaimer is global (main.css) — shared with the event form. */

.wg-event-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
/* .wg-btn defaults to width:100% (main.css) — inline pills here so Share /
   Add to calendar / Report share one line. */
.wg-event-actions .wg-btn {
  width: auto; flex: 0 1 auto; padding: 8px 13px; font-size: 0.82rem;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.wg-event-actions .wg-ico { width: 16px; height: 16px; }

/* RSVP block — now a summary + a prominent button (form lives in a modal) */
.wg-rsvp {
  border:1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  padding: 14px;
  margin-bottom: var(--wg-space);
  background:var(--wg-tint);
}
.wg-rsvp-title { font-size: 1.05rem; margin: 0 0 6px; }
.wg-rsvp-count { font-weight: 600; color:var(--wg-color-dark); margin-bottom: 10px; }
.wg-rsvp-openbtn { width: auto; min-width: 200px; padding: 12px 28px; }
.wg-rsvp-mine { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.wg-rsvp-mine p { margin: 0 0 8px; font-weight: 600; }
.wg-rsvp-modal-count { margin-bottom: 12px; }
.wg-rsvp-form .wg-field { margin-bottom: 10px; }
.wg-rsvp-form .wg-field > label:not(.wg-check) {
  display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 4px;
}
.wg-rsvp-form input[type="text"],
.wg-rsvp-form input[type="email"],
.wg-rsvp-form input[type="number"] {
  width: 100%; padding: 11px 12px; font-size: 1rem;
  border:1px solid var(--wg-border); border-radius: var(--wg-radius);
}
.wg-rsvp-status { display: flex; gap: 16px; }
.wg-rsvp-status .wg-check { display: inline-flex; align-items: center; gap: 5px; }
.wg-rsvp-consent {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.85rem; color:var(--wg-muted); margin-bottom: 10px;
}
.wg-rsvp-consent input { margin-top: 3px; accent-color: var(--wg-color); }

/* ── Paid events ────────────────────────────────────────────────── */
.wg-rsvp-price { margin: 6px 0 2px; font-size: .95rem; }
.wg-rsvp-total { margin: 4px 0; font-weight: 700; color:var(--wg-color-ink); }
.wg-rsvp-pay { margin-top: 14px; border:1px solid var(--wg-border-soft); background:var(--wg-tint); border-radius: 12px; padding: 12px 14px; }
.wg-rsvp-pay-title { margin: 0 0 8px; font-size: 1rem; }
.wg-rsvp-pay-due { margin: 0 0 8px; }
.wg-rsvp-pay-info { white-space: pre-wrap; word-break: break-word; background:var(--wg-raised); border:1px solid var(--wg-border); border-radius: 8px; padding: 10px 12px; font-size: .92rem; }
.wg-rsvp-pay-note { margin: 10px 0 0; font-size: .82rem; color:var(--wg-warn-ink); background:var(--wg-warn-tint); border:1px solid #f2e2b3; border-radius: 8px; padding: 8px 10px; }
.wg-rsvp-consent { font-size: .85rem; }

/* Structured payment details */
.wg-payf-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom:1px dashed var(--wg-border); }
.wg-payf-row:last-child { border-bottom:0; }
.wg-payf-lbl { color:var(--wg-muted); }
.wg-payf-val { font-weight: 700; word-break: break-all; text-align: right; }
.wg-opt { color:#999; font-weight: 400; font-size: .85em; }
/* The main action (RSVP, Buy ticket, Log in to buy) rides in a bar pinned to the
   bottom, above the phone tab bar (js/event.js, 2026-11-05). The page gets room
   at its foot so the bar never covers the last lines, and the Create button
   steps aside. Same shape as the lucky draw dock. */
.wg-evdock {
  position: fixed; left: 0; right: 0; bottom: var(--wg-bottom-inset-center, 0px); z-index: 19;
  padding: 10px 16px; background: var(--wg-nav-bg-solid);
  border-top: 1px solid var(--wg-border-soft); box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08);
  animation: wg-evdock-in .32s var(--wg-ease-out, ease) backwards;
}
.wg-evdock-in { max-width: 560px; margin: 0 auto; }
.wg-evdock .wg-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; padding: 12px 18px; font-size: 1rem; }
body:has(.wg-evdock) .wg-main { padding-bottom: 88px; }
body:has(.wg-evdock) .wg-fab { display: none; }
@keyframes wg-evdock-in { from { transform: translateY(100%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wg-evdock { animation: none; } }
