/* ============================================================================
   Vibe: Standard
   The BuzzHive default look — dark, clean, neutral.
   Existing events render identically to the pre-vibe-templates era.
   Extracted from the original inline <style> block in e.php.

   The promoter's per-event accent (set via accent_color on the event row) is
   piped in via a `--event-accent` custom property on .event-custom.
   ============================================================================ */

.vibe-standard .event-custom {
  /* --evt-bg is intentionally NOT declared here. The wrapper falls back to
     `transparent` so the global landing-dark body bg shows through (matching
     the original pre-vibe-templates look). When a promoter sets a bg color
     via the palette editor, vibe_theme_overrides_css() emits a later <style>
     that DECLARES --evt-bg on body.vibe-standard + the wrapper — at that
     point the wrapper paints with the user's chosen color. */
  --evt-surface:   #1e293b;
  --evt-surface-2: #0f172a;
  --evt-border:    rgba(255,255,255,0.08);
  --evt-text:      #f8fafc;
  --evt-text-muted:#94a3b8;
  --evt-text-soft: #cbd5e1;

  background: var(--evt-bg, transparent);
  color: var(--evt-text);
  min-height: calc(100vh - 80px);
  padding-bottom: var(--s-12, 80px);
}

/* Text + typography */
.vibe-standard .event-custom h1 {
  color: var(--evt-text);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.vibe-standard .event-custom h3 { color: var(--evt-text); }
.vibe-standard .event-custom .eyebrow {
  color: var(--event-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.vibe-standard .event-custom .lead   { color: var(--evt-text-soft); font-size: 18px; }
.vibe-standard .event-custom .muted  { color: var(--evt-text-muted); }
.vibe-standard .event-custom p       { color: var(--evt-text-soft); }
.vibe-standard .event-custom a       { color: var(--event-accent); text-decoration: none; }
.vibe-standard .event-custom a:hover { filter: brightness(1.15); text-decoration: underline; }

/* Cards */
.vibe-standard .event-custom .card,
.vibe-standard .event-custom .card-flat {
  background: var(--evt-surface);
  border: 1px solid var(--evt-border);
  color: var(--evt-text-soft);
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4);
}
.vibe-standard .event-custom .card-flat { box-shadow: none; }

/* Form inputs */
.vibe-standard .event-custom .input,
.vibe-standard .event-custom .select,
.vibe-standard .event-custom .textarea,
.vibe-standard .event-custom select,
.vibe-standard .event-custom input[type=text],
.vibe-standard .event-custom input[type=email],
.vibe-standard .event-custom input[type=number] {
  background: var(--evt-surface-2);
  border: 1px solid #334155;
  color: var(--evt-text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vibe-standard .event-custom .input::placeholder { color: #64748b; }
.vibe-standard .event-custom .input:focus,
.vibe-standard .event-custom .select:focus,
.vibe-standard .event-custom select:focus,
.vibe-standard .event-custom input:focus {
  outline: none;
  border-color: var(--event-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-accent) 25%, transparent);
}
.vibe-standard .event-custom label {
  color: var(--evt-text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.vibe-standard .event-custom .help { color: var(--evt-text-muted); font-size: 12px; }

/* Buy button (accent-colored pill) */
.vibe-standard .event-custom .btn-primary,
.vibe-standard .event-custom .btn-block.btn-primary {
  background: var(--event-accent) !important;
  border: 0 !important;
  color: #0f172a !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--event-accent) 60%, transparent);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.vibe-standard .event-custom .btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.vibe-standard .event-custom .btn-lg { font-size: 16px; }

/* Ticket-row divider on dark */
.vibe-standard .event-custom .row.between[style*="border-bottom"] {
  border-bottom-color: var(--evt-border) !important;
}

/* Status alert */
.vibe-standard .event-custom .alert {
  background: rgba(217,119,6,0.12);
  border: 1px solid rgba(217,119,6,0.4);
  color: #fef3c7;
  border-radius: 10px;
}

/* Badges (sold out, etc.) */
.vibe-standard .event-custom .badge-danger {
  background: rgba(220,38,38,0.15);
  color: #fecaca;
  border: 1px solid rgba(220,38,38,0.35);
}

/* Flyer display modes */
.vibe-standard .flyer-clean {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
}
.vibe-standard .flyer-clean--empty {
  aspect-ratio: 4 / 5;
  background: var(--evt-surface);
  border: 1px dashed var(--evt-border);
  border-radius: var(--r-lg);
}
.vibe-standard .flyer-framed {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--evt-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--evt-border);
  overflow: hidden;
}
.vibe-standard .flyer-framed__bg {
  position: absolute;
  inset: -8%;
  background-position: center;
  background-size: cover;
  filter: blur(28px) brightness(0.55) saturate(1.1);
  transform: scale(1.15);
}
.vibe-standard .flyer-framed__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Promoter blurb */
.vibe-standard .event-blurb {
  background: var(--evt-surface);
  border: 1px solid var(--evt-border);
  border-left: 3px solid var(--event-accent);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 14px 14px 0;
  color: var(--evt-text-soft);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
}

/* Stack spacing on the right column */
.vibe-standard .event-custom .stack > * + * { margin-top: var(--s-5); }

/* Mobile: stack the two columns */
@media (max-width: 860px) {
  .vibe-standard .event-grid { grid-template-columns: minmax(0, 1fr) !important; gap: var(--s-6) !important; }
}

/* Long-URL overflow guard for .event-blurb on the standard vibe */
.vibe-standard .event-blurb {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* Mobile-overflow guard added 2026-06-03:
   Flyer images naturally render at their source dimensions (often 1080-1500px
   wide). At narrow viewports the grid track can't stop them blowing out
   unless we explicitly cap the container at 100% of its parent. Caught on
   Baytek's iPhone 16 Pro — horizontal scroll resulted in the page appearing
   to "load horizontally but not vertically." */
.vibe-standard .flyer-clean {
  max-width: 100%;
}
.vibe-standard .flyer-clean img {
  max-width: 100%;
}
