/* PREVIEW-ONLY stylesheet for the multi-event Budetili hub gallery.

   Copied verbatim by scripts/generate_hub_preview.py into every generated
   dist/preview/hub/<lang>/ output directory, next to that language's
   index.html — never linked from production. Written fresh for the
   featuredCard + galleryCards + closedCards layout (docs/architecture.md
   section 14), not reused from the real hub.css: hub.css already carries
   the "YE poster system" cascade (Kanye's red/acid accent colors), which
   CLAUDE.md explicitly says must never leak onto unrelated/generic content.
   The base palette below (--hub-blue, off-white background, dark cards)
   instead takes inspiration only from hub.css's own pre-Kanye-override base
   layer — i.e. what Budetili's own brand looked like before the site was
   reskinned around its one current event — reimplemented independently for
   a gallery of many equal-weight events instead of a single-event page.

   This is a deliberately generic, architecture-preview stylesheet, not a
   final visual design: no external fonts (system sans-serif stack only, so
   the preview never depends on network access when opened as a local
   file:// page), no final imagery, no elaborate animation.

   Selectors match the classes templates/default/hub.template.html already
   renders (header/.logo, main.hub, .hubHero, .hubEmpty, .hubActive,
   .hubClosed, .eventList, .eventListClosed, .eventCard, .eventCard.featured,
   .eventCard.closed, .cardMedia, .cardBody, .eventCardStatus,
   .eventCardQuestion) — no markup or render-context change was needed
   beyond what this file's own template edits already introduced.

   .cardMedia is deliberately NOT an <img> — see hub.template.html's own
   comment on why: an <img> with an unreachable/fake src shows the browser's
   broken-image icon, which is exactly the "broken, not intentional" look
   this file exists to avoid. Setting the real image (when one exists) via
   inline `style="background-image:url(...)"` instead means a failed load
   simply falls through to this class's own background-color/gradient
   fallback below — no icon, no network dependency for the fallback itself,
   and no per-event hardcoding (every card, present or future, gets the
   exact same treatment regardless of whether it has an image).
*/

:root {
  --hub-bg: #f4f3ef;
  --hub-ink: #111;
  --hub-muted: #666;
  --hub-blue: #315cff;
  --hub-card-bg: #0a0a0a;
  --hub-card-ink: #fff;
  --hub-card-muted: #b8bcc2;
  --hub-media-fallback: #1c1f26;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--hub-bg);
  color: var(--hub-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, span { overflow-wrap: break-word; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 6vw;
  background: #080808;
  color: #fff;
}
.logo { font-size: 22px; font-weight: 900; letter-spacing: .01em; }

/* Language switch (RU<->EN) — small pill link in the header, matching the
   real ru/index.html / en/index.html header's .lang treatment in shape
   (circular, bordered) but with the generic palette, not Kanye's.

   min-width (not width) + padding + border-radius:19px (half of the 38px
   height, so the ends stay fully rounded at any width) + white-space:
   nowrap — same fix as templates/default/assets/event-base.css's own
   `.lang` rule, applied here too: this hub header is a COMPLETELY
   separate stylesheet an event page's own header never loads, so fixing
   event-base.css alone left every hub's own locale switcher (the
   "ES-MX"/"EN-IN" codes specifically — longer than "RU"/"EN") still
   wrapping onto two lines. */
.lang {
  border: 1px solid #555;
  border-radius: 19px;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex: none;
  white-space: nowrap;
}
.lang:hover { border-color: #fff; }

/* Visible keyboard focus state — every card, the logo, and the language
   switch are full-area link targets, so a clear focus ring matters here
   more than on typical inline text links. */
a.eventCard:focus-visible,
.logo:focus-visible,
.lang:focus-visible {
  outline: 3px solid var(--hub-blue);
  outline-offset: 2px;
}

main.hub { max-width: 1400px; margin: 0 auto; padding: 0 6vw 80px; }

.hubHero { padding: 48px 0 32px; }
.hubHero h1 {
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}
.hubHero p { font-size: 18px; color: var(--hub-muted); max-width: 640px; margin: 0; }

.hubEmpty { padding: 60px 0; font-size: 20px; color: var(--hub-muted); }

/* Media area shared by every card variant (featured/gallery/closed) — a
   solid fallback fill plus a subtle decorative gradient, always present
   whether or not a real background-image is also set inline. */
.cardMedia {
  position: relative;
  background-color: var(--hub-media-fallback);
  background-size: cover;
  background-position: center;
  flex: none;
}
.cardMedia::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .10), transparent 60%);
  pointer-events: none;
}

/* Featured card: the first ACTIVE card of the existing sort order (see
   scripts/lib/hub.py), rendered once, above the grid, at a larger scale. */
a.eventCard.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--hub-card-bg);
  color: var(--hub-card-ink);
  min-height: 420px;
  margin-bottom: 48px;
  overflow: hidden;
}
a.eventCard.featured .cardMedia { min-height: 280px; }
a.eventCard.featured .cardBody { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
a.eventCard.featured h2 { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
a.eventCard.featured .eventCardQuestion { color: var(--hub-card-muted); font-size: 18px; margin: 0; }
a.eventCard.featured span { color: var(--hub-card-muted); font-size: 15px; }

/* Active gallery grid: responsive column count, not a fixed number —
   desktop uses available width, narrow viewports collapse to one column. */
.eventList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
a.eventCard:not(.featured):not(.closed) {
  display: flex;
  flex-direction: column;
  background: var(--hub-card-bg);
  color: var(--hub-card-ink);
  overflow: hidden;
  transition: transform .15s ease;
  min-width: 0;
}
a.eventCard:not(.featured):not(.closed):hover { transform: translateY(-2px); }
a.eventCard:not(.featured):not(.closed) .cardMedia { height: 170px; }
a.eventCard:not(.featured):not(.closed) .cardBody { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
a.eventCard:not(.featured):not(.closed) h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
a.eventCard:not(.featured):not(.closed) .eventCardQuestion { font-size: 14px; color: var(--hub-card-muted); margin: 0; }
a.eventCard:not(.featured):not(.closed) span { margin-top: auto; font-size: 13px; color: var(--hub-card-muted); }

/* Status badge: a decorative dot before the existing statusLabel text — no
   new data field, purely a ::before pseudo-element. */
.eventCardStatus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hub-card-muted);
  margin: 0;
}
.eventCardStatus::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hub-blue);
  flex: none;
}

/* Closed/past section (docs/architecture.md section 14) — visually
   secondary/compact: a stacked list of low-profile rows rather than the
   active gallery's larger grid cards, but still a real link to the event
   page and still showing status/title/date-venue-city. */
.hubClosed { padding-top: 8px; border-top: 1px solid #d8d6cf; margin-top: 8px; }
.hubClosed h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--hub-muted);
  margin: 0 0 18px;
}
.eventListClosed { display: flex; flex-direction: column; gap: 10px; }
a.eventCard.closed {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: var(--hub-card-bg);
  color: var(--hub-card-ink);
  opacity: .82;
  padding: 12px;
  min-width: 0;
}
a.eventCard.closed:hover { opacity: 1; }
a.eventCard.closed .cardMedia { width: 56px; height: 56px; border-radius: 4px; }
a.eventCard.closed .cardBody { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
a.eventCard.closed h3 { font-size: 16px; line-height: 1.25; margin: 0; }
a.eventCard.closed span { font-size: 12px; color: var(--hub-card-muted); }
a.eventCard.closed .eventCardStatus { font-size: 11px; }

@media (max-width: 900px) {
  a.eventCard.featured { grid-template-columns: 1fr; }
  a.eventCard.featured .cardMedia { min-height: 220px; }
}

@media (max-width: 560px) {
  header { padding: 0 20px; }
  main.hub { padding: 0 20px 56px; }
  .hubHero { padding: 32px 0 24px; }
  .hubHero h1 { font-size: 30px; }
  .eventList { grid-template-columns: 1fr; }
  a.eventCard.featured .cardBody { padding: 24px; }
  a.eventCard.closed { padding: 10px; gap: 12px; }
  a.eventCard.closed .cardMedia { width: 44px; height: 44px; }
}


.archiveLinkWrap{margin:24px 0 0}
.archiveLink{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border:1px solid #bbb;font-size:14px;font-weight:700}
.archiveLink:hover{border-color:var(--hub-ink)}
.archiveLink:focus-visible{outline:3px solid var(--hub-blue);outline-offset:2px}
