/* ============================================================================
   Vibe: Sub Bass
   Deep bass / dubstep. Heavy and aggressive. Purple/teal dual-tone palette,
   glitch text displacement, massive condensed sans, cyberpunk-adjacent.

   Color story: two tones — purple (the bass) + cyan (the high). Backgrounds
   carry a soft gradient bleed, hero title gets RGB-split shadow that reads
   as glitch without animation cost. Buttons use angular clip-paths for the
   "cut metal" look. Per-event accent overrides the purple primary.
   ============================================================================ */

/* Top-level body selectors use body.vibe-sub-bass to match the specificity of
   body.landing-dark (loaded alongside this vibe in app.css). */
body.vibe-sub-bass {
  /* Palette knobs — promoter overrides emitted by vibe_theme_overrides_css()
     in lib/vibe_templates.php land here (later in source order = wins). */
  --sb-bg:  #0a0214;
  --sb-ink: #e8e0f5;

  background:
    linear-gradient(180deg, rgba(10,2,20,0.76) 0%, rgba(10,2,20,0.52) 45%, rgba(10,2,20,0.95) 100%),
    url('/assets/uploads/studio/sub_bass-bg.png') center top / cover no-repeat fixed,
    var(--sb-bg);
  color: var(--sb-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Layered gradient bleed across the whole page */
body.vibe-sub-bass::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(168, 85, 247, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(34, 211, 238, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Subtle scanlines to read as CRT/scope display */
body.vibe-sub-bass::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
}

/* Header — darker, sits above the gradient */
.vibe-sub-bass .site-header {
  background: rgba(10, 2, 20, 0.9) !important;
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  position: relative;
  z-index: 10;
}

.vibe-sub-bass main {
  position: relative;
  z-index: 2;
}

/* Wrapper */
.vibe-sub-bass .event-subbass {
  --event-accent: #a855f7;    /* purple primary, overridable per-event */
  --event-accent-2: #22d3ee;  /* cyan secondary, fixed across the vibe */
  color: #e8e0f5;
  padding: 0 0 var(--s-16, 80px);
  min-height: calc(100vh - 80px);
}

/* ---------- Hero ---------- */
.vibe-sub-bass .sb-hero {
  padding: var(--s-10) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}

.vibe-sub-bass .sb-hero__date {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--event-accent-2);
  margin-bottom: var(--s-3);
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.06);
}

.vibe-sub-bass .sb-hero__title {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  /* Max ceiling kept low enough that ~14-char titles ("WUBS AND DUBS") fit
     on a single line inside the 1120px container. Longer titles fall back
     to text-wrap: balance so the wrap is even rather than orphan-style. */
  font-size: clamp(44px, 7.5vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: var(--s-3) 0 var(--s-5);
  color: #f5f0ff;
  text-transform: uppercase;
  /* RGB glitch split — purple + cyan offset shadows */
  text-shadow:
    -2px 0 0 rgba(168, 85, 247, 0.85),
    2px 0 0 rgba(34, 211, 238, 0.75);
  text-wrap: balance;
}

.vibe-sub-bass .sb-hero__venue {
  font-size: 18px;
  color: #c8b5dd;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: baseline;
  margin-top: var(--s-3);
}

.vibe-sub-bass .sb-hero__venue strong {
  color: #f5f0ff;
  font-weight: 700;
}

.vibe-sub-bass .sb-hero__presented {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9b85ba;
  margin-top: var(--s-3);
}

.vibe-sub-bass .sb-hero__presented a {
  color: var(--event-accent-2);
  text-decoration: none;
}

.vibe-sub-bass .sb-hero__presented a:hover {
  text-decoration: underline;
}

/* ---------- Body grid ---------- */
.vibe-sub-bass .sb-grid {
  display: grid;
  /* minmax(0, Xfr) prevents grid intrinsic-content blowout on Android Chrome */
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--s-10);
  padding-bottom: var(--s-8);
  align-items: start;
}

/* ---------- Flyer ---------- */
.vibe-sub-bass .sb-flyer-wrap {
  position: relative;
  padding: 2px;
  background: linear-gradient(135deg, var(--event-accent) 0%, var(--event-accent-2) 100%);
}

.vibe-sub-bass .sb-flyer {
  background: #0c0220;
  display: block;
}

.vibe-sub-bass .sb-flyer img {
  display: block;
  width: 100%;
  height: auto;
}

.vibe-sub-bass .sb-flyer--empty {
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 224, 245, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ---------- Blocks ---------- */
.vibe-sub-bass .sb-block {
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.18);
  padding: var(--s-6);
  margin-bottom: var(--s-5);
  position: relative;
}

/* Tiny corner triangle accent on each block */
.vibe-sub-bass .sb-block::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, transparent 0%, transparent 50%, var(--event-accent-2) 50%, var(--event-accent-2) 100%);
}

.vibe-sub-bass .sb-block__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--event-accent-2);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vibe-sub-bass .sb-block__label::before {
  content: '◆';
  color: var(--event-accent);
}

/* ---------- Lineup ---------- */
.vibe-sub-bass .sb-lineup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

.vibe-sub-bass .sb-lineup-list li {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #f5f0ff;
  padding: var(--s-3) 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.vibe-sub-bass .sb-lineup-list li:last-child { border-bottom: 0; }

.vibe-sub-bass .sb-lineup-flat {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #f5f0ff;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
  word-break: break-word;
}

/* ---------- About ---------- */
.vibe-sub-bass .sb-about {
  color: #d0c4e4;
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.vibe-sub-bass .sb-about a { overflow-wrap: anywhere; word-break: break-all; }

/* ---------- Promoter blurb ---------- */
.vibe-sub-bass .sb-blurb {
  border-left: 2px solid var(--event-accent-2);
  padding: var(--s-4) var(--s-5);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.07) 0%, transparent 100%);
  color: #c0b5d0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}

/* ---------- Tickets ---------- */
.vibe-sub-bass .sb-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  gap: var(--s-4);
}
.vibe-sub-bass .sb-ticket-row:last-of-type { border-bottom: 0; }

.vibe-sub-bass .sb-ticket-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f5f0ff;
}
.vibe-sub-bass .sb-ticket-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #9b85ba;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.vibe-sub-bass .sb-ticket-price {
  color: var(--event-accent-2);
  font-weight: 600;
}

.vibe-sub-bass .sb-ticket-low {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--event-accent);
  color: var(--event-accent);
  background: rgba(168, 85, 247, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-left: 6px;
  text-transform: uppercase;
}

.vibe-sub-bass .sb-soldout {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff4d6d;
  border: 1px solid #ff4d6d;
  background: rgba(255, 77, 109, 0.08);
  padding: 4px 10px;
}

/* Inputs */
.vibe-sub-bass select,
.vibe-sub-bass input[type=text],
.vibe-sub-bass input[type=email],
.vibe-sub-bass input[type=number] {
  background: rgba(10, 2, 20, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #f5f0ff;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 0;
  outline: none;
  width: 100%;
}

.vibe-sub-bass select:focus,
.vibe-sub-bass input:focus {
  border-color: var(--event-accent-2);
  box-shadow: 0 0 0 1px var(--event-accent-2), 0 0 12px rgba(34, 211, 238, 0.25);
}

.vibe-sub-bass select[name^="qty"] {
  width: 80px;
  text-align: center;
}

.vibe-sub-bass .sb-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.vibe-sub-bass label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--event-accent-2);
  display: block;
  margin-bottom: 6px;
}

.vibe-sub-bass .sb-help {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a7aa5;
  letter-spacing: 0.06em;
  margin-top: var(--s-2);
}

/* Buy button — angular, gradient, glowing */
.vibe-sub-bass .sb-buy-btn {
  display: block;
  width: 100%;
  margin-top: var(--s-5);
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--event-accent) 0%, #7c3aed 50%, var(--event-accent-2) 100%);
  color: #0a0214;
  border: 0;
  border-radius: 0;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  /* Angular clip — bottom-right + top-left corners cut */
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: filter 0.15s, transform 0.1s;
  box-shadow: 0 0 30px -8px var(--event-accent);
}
.vibe-sub-bass .sb-buy-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.vibe-sub-bass .sb-buy-btn:active {
  transform: translateY(0);
}

.vibe-sub-bass .sb-secure {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b5a85;
  margin-top: var(--s-3);
}

/* Sales-closed / sold-out */
.vibe-sub-bass .sb-alert {
  padding: var(--s-4);
  border: 1px solid var(--event-accent);
  background: rgba(168, 85, 247, 0.08);
  color: var(--event-accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* Discount-code row */
.vibe-sub-bass .sb-disc-field { margin-top: var(--s-5); }
.vibe-sub-bass .sb-disc-field input { text-transform: uppercase; }

/* ---------- Hover polish ---------- */
.vibe-sub-bass .sb-block {
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.vibe-sub-bass .sb-block:hover {
  border-color: var(--event-accent);
  box-shadow: 0 0 32px -8px var(--event-accent), 0 0 18px -10px var(--event-accent-2);
  transform: translateY(-2px);
}

.vibe-sub-bass .sb-flyer-wrap {
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.vibe-sub-bass .sb-flyer-wrap:hover {
  transform: scale(1.015);
  box-shadow: 0 0 45px -10px var(--event-accent), 0 0 30px -16px var(--event-accent-2);
  filter: brightness(1.04);
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .vibe-sub-bass .sb-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
  }
  .vibe-sub-bass .sb-hero {
    padding: var(--s-7) 0 var(--s-5);
  }
  .vibe-sub-bass .sb-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .vibe-sub-bass .sb-lineup-list li {
    font-size: 22px;
  }
  .vibe-sub-bass .sb-ticket-row {
    flex-wrap: wrap;
  }
}

/* Long-URL overflow guard: break long unbreakable strings (URLs, code)
   inside .about and .blurb containers so they don't blow past the box's
   right border. Added 2026-06-03 after Baytek's Junglist event showed a
   Google Sheets URL overflowing. See [[buzzhive-vibe-android-fix]]. */
.vibe-sub_bass .sb-about,
.vibe-sub_bass .sb-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-sub-bass .sb-flyer {
  max-width: 100%;
}
.vibe-sub-bass .sb-flyer img {
  max-width: 100%;
}
