/* ============================================================
   SINGLE EVENT PAGE  (bge- prefix = "Buds Grabba Event")
   Add this to the bottom of style.css, or @import it there.
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────── */
.bge-page {
  background: var(--bg-base);
}

/* ── Breadcrumb ───────────────────────────────────────── */
.bge-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px var(--gutter);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 0.5px solid var(--border-subtle);
}

.bge-breadcrumb a {
  color: var(--text-faint) !important;
  text-decoration: none;
  transition: color 0.15s;
}

.bge-breadcrumb a:hover { color: var(--accent) !important; }

.bge-breadcrumb-sep { opacity: 0.35; }

.bge-breadcrumb-current {
  color: var(--text-muted);
  /* truncate long titles */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* ── Hero ─────────────────────────────────────────────── */
.bge-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 40vw, 520px);
  display: flex;
  align-items: flex-end;
}

/* Hero with actual flyer/image */
.bge-hero--image .bge-hero-bg {
  position: absolute;
  inset: 0;
}

.bge-hero--image .bge-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.55) saturate(0.8);
}

.bge-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.1) 0%,
    rgba(10,10,10,0.7) 60%,
    rgba(10,10,10,0.95) 100%
  );
}

/* Hero fallback — no image */
.bge-hero--gradient {
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border-subtle);
  min-height: clamp(200px, 25vw, 340px);
}

.bge-hero--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 60% 100%,
    rgba(200, 240, 74, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Content inside hero */
.bge-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(36px, 5vw, 60px);
  width: 100%;
  max-width: var(--max-width);
}

.bge-event-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bge-event-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.bge-event-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 800px;
}

/* Meta pills */
.bge-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.bge-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(240, 235, 224, 0.07);
  border: 0.5px solid var(--border-light);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 7px 14px;
  backdrop-filter: blur(4px);
}

.bge-meta-icon {
  color: var(--accent);
  font-size: 10px;
}

/* ── Primary CTA button ───────────────────────────────── */
.bge-btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-base) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  padding: 15px 32px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}

.bge-btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  color: var(--bg-base) !important;
}

.bge-btn-full {
  display: block;
  text-align: center;
  width: 100%;
}

/* ── Body two-column layout ───────────────────────────── */
.bge-body-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter);
  align-items: start;
}

@media (max-width: 900px) {
  .bge-body-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* On mobile, sidebar moves below content */
  .bge-sidebar { order: 2; }
  .bge-content  { order: 1; }
}

/* ── Flyer frame (in main content) ───────────────────── */
.bge-flyer-frame {
  margin: 0 0 32px 0;
  max-width: 340px;
  float: right;
  margin-left: 36px;
  margin-bottom: 20px;
}

.bge-flyer-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.bge-flyer-inline {
  margin: 0 0 32px;
}

.bge-flyer-inline img {
  max-width: 400px;
  width: 100%;
}

@media (max-width: 640px) {
  .bge-flyer-frame {
    float: none;
    max-width: 100%;
    margin-left: 0;
  }
}

/* ── Prose / post content ─────────────────────────────── */
.bge-prose {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  overflow: hidden; /* clear floats */
}

.bge-prose p {
  margin-bottom: 1.2em;
  color: var(--text-muted);
}

.bge-prose h2, .bge-prose h3, .bge-prose h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  margin: 1.8em 0 0.6em;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.bge-prose h2 { font-size: clamp(20px, 3vw, 28px); }
.bge-prose h3 { font-size: clamp(17px, 2.5vw, 22px); }

.bge-prose a {
  color: var(--accent) !important;
  text-decoration: underline;
  text-decoration-color: rgba(200, 240, 74, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.bge-prose a:hover {
  text-decoration-color: var(--accent);
}

.bge-prose strong {
  color: var(--text-primary);
  font-weight: 700;
}

.bge-prose ul, .bge-prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.bge-prose li { margin-bottom: 0.4em; }

.bge-prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em 0;
}

.bge-prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-style: italic;
  font-size: 16px;
}

/* Emoji / raw text from social-style posts */
.bge-prose br { display: block; margin-bottom: 0.3em; }

/* ── Sidebar cards ────────────────────────────────────── */
.bge-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px; /* clears sticky header */
}

.bge-details-card,
.bge-share-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border-light);
  padding: 24px;
}

.bge-details-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border-subtle);
}

/* Detail rows */
.bge-details-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.bge-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border-subtle);
}

.bge-detail-row:last-child {
  border-bottom: none;
}

.bge-detail-row dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

.bge-detail-row dd {
  font-size: 13px;
  color: var(--text-primary);
  text-align: right;
  line-height: 1.4;
}

/* Share buttons */
.bge-share-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bge-share-btn {
  display: block;
  text-align: center;
  padding: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 0.5px solid var(--border-light);
  color: var(--text-muted) !important;
  background: transparent;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.bge-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: rgba(200, 240, 74, 0.04);
}

/* ── Related Events ───────────────────────────────────── */
.bge-related {
  padding: 0 var(--gutter) clamp(48px, 6vw, 80px);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Reuse shared section label from homepage */
.bge-section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bge-section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border-light);
}

.bge-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

@media (max-width: 700px) {
  .bge-related-grid {
    grid-template-columns: 1fr;
  }
}

.bge-related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  text-decoration: none !important;
  border-left: 2px solid transparent;
  transition: background 0.15s;
  overflow: hidden;
}

.bge-related-card:hover {
  background: #1c1c1c;
}

.bge-related-card--featured {
  border-left-color: var(--accent);
  background: var(--bg-featured);
}

.bge-related-card--featured:hover {
  background: #1f2612;
}

.bge-related-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.bge-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bge-related-card:hover .bge-related-thumb img {
  transform: scale(1.04);
}

.bge-related-content {
  padding: 18px 20px 14px;
  flex: 1;
}

.bge-related-cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.bge-related-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.bge-related-date {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.bge-related-arrow {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-ghost);
  transition: color 0.15s, transform 0.15s;
  align-self: flex-end;
}

.bge-related-card:hover .bge-related-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ── Back link ─────────────────────────────────────────── */
.bge-back-wrap {
  padding: 0 var(--gutter) clamp(40px, 5vw, 64px);
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 0.5px solid var(--border-subtle);
  padding-top: 28px;
}

.bge-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.bge-back-link:hover {
  color: var(--accent) !important;
}
