/* gallery.css — CINDTezos 2026 · #CINDTezos2026 · Teia */

:root {
  --bg: #0a0c0a;
  --surface: #141a12;
  --border: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.72);
  /* Disability pride flag colours */
  --c1: #CF7227;
  --c2: #F5C542;
  --c3: #e8e8e8;
  --c4: #44B0E8;
  --c5: #7BC141;
  --c6: #44B0E8;
  --pride: linear-gradient(90deg, #CF7227, #F5C542, #e8e8e8, #44B0E8, #7BC141);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c6); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #fff; }

/* ── Page wrapper ─────────────────────────────────── */

.page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 100vh;
}

/* ── Pride top bar ───────────────────────────────── */

.rainbow-bar {
  height: 4px;
  background: var(--pride);
}

/* ── Nav ─────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  min-height: 32px;
  display: flex;
  align-items: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface);
}
.nav-links a.active {
  color: var(--text);
  border-color: var(--c6);
  background: rgba(68, 176, 232, 0.1);
}

/* ── Page header (open call) ──────────────────────── */

.page-header {
  padding: 48px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-header-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text);
}

.page-header-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 560px;
}
.page-header-desc a { color: var(--c6); }
.page-header-desc strong { color: var(--text); }
.page-header .live-stats { margin-top: 8px; }

/* ── Hero ─────────────────────────────────────────── */

.hero {
  padding: 72px 32px 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Event poster ─────────────────────────────────── */

.poster-section {
  padding: 48px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.event-poster {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c2);
}

.hero-title {
  font-size: clamp(34px, 5vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: #fff;
}

.hero-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  max-width: 480px;
  margin-top: 14px;
  background: var(--pride);
}

.hero-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--c6);
  text-transform: uppercase;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 520px;
}
.hero-desc a { color: var(--c6); }
.hero-desc strong { color: #fff; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
}
.chip--main {
  color: var(--c6);
  border-color: rgba(68, 176, 232, 0.35);
  background: rgba(68, 176, 232, 0.08);
}

.live-stats {
  display: flex;
  gap: 32px;
}

.live-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.live-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--c6);
}
.live-stat span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Callout ─────────────────────────────────────── */

.callout {
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(68, 176, 232, 0.05);
  border-left: 3px solid var(--c6);
}

.callout-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 900px;
}
.callout-text strong { color: var(--text); }
.callout-text a { color: var(--c6); }

/* ── Details — 3×2 grid ─────────────────────────── */

.details-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-item {
  padding: 22px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.detail-val a { color: var(--c6); text-decoration: none; }
.detail-val a:hover { color: #fff; }

/* ── Prizes ─────────────────────────────────────────── */

.prizes-section {
  padding: 56px 32px;
  border-bottom: 1px solid var(--border);
}

.prizes-heading {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  color: var(--text);
}

.rainbow-text {
  background: var(--pride);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--c6);
}

.prizes-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.prize-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  flex: 1;
  min-width: 200px;
  max-width: 480px;
}

.prize-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.prize-card--rainbow::before { background: var(--pride); }
.prize-card--blue::before    { background: var(--c6); }

.prize-amount {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
}
.prize-x { color: var(--text-muted); font-size: 0.7em; }
.prize-unit {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--c6);
  letter-spacing: 1px;
}

.prize-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── People — vertical, individual juror cards ──── */

.people-section {
  padding: 56px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.people-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.curator-block,
.jurors-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.curator-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 340px;
  text-decoration: none;
  transition: background 0.15s;
}
.curator-card:hover { background: #1a221a; }

.curator-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.curator-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.curator-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.curator-handle {
  font-size: 12px;
  font-weight: 500;
  color: var(--c6);
  text-decoration: none;
}
.curator-handle:hover { color: #fff; }

.jurors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.juror-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: var(--surface);
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}
.juror-card:hover { background: #1a221a; }

.juror-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.juror-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.juror-card-handle {
  font-size: 11px;
  color: var(--c6);
}

/* ── Gallery controls ─────────────────────────────── */

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--border);
}

#info-bar {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sort-control select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 8px;
  min-height: 44px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.sort-control select:focus { border-color: var(--c6); }

/* ── Gallery grid ─────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1 / 1;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.04);
  opacity: 0.75;
}

.overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 10px 10px;
  background: linear-gradient(to top, rgba(4, 8, 4, 0.94) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gallery-item:hover .overlay { opacity: 1; }

.overlay-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.overlay-artist {
  display: block;
  font-size: 10px;
  color: var(--c6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-badge {
  position: absolute;
  top: 7px; left: 7px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 4px;
  z-index: 2;
  pointer-events: none;
  line-height: 1.6;
}

.gallery-item.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item.no-image .overlay { opacity: 1; background: none; }

.play-badge {
  position: absolute;
  bottom: 7px; right: 7px;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5);
  padding: 2px 5px;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

.platform-HEN    { background: #1d4ed8; color: #fff; }
.platform-OBJKT  { background: #0e7490; color: #fff; }
.platform-VERSUM { background: #15803d; color: #fff; }
.platform-FXHASH { background: #7e22ce; color: #fff; }
.platform-8BIDOU { background: #b91c1c; color: #fff; }
.platform-TYPED  { background: #1e3a5f; color: #fff; }

/* ── Empty state ─────────────────────────────────── */

.empty-state {
  padding: 80px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.empty-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.empty-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.empty-sub strong { color: var(--text); }

/* ── Load more ─────────────────────────────────────── */

.load-more-wrapper {
  text-align: center;
  padding: 48px 32px 64px;
  border-top: 1px solid var(--border);
}

#load-more {
  background: transparent;
  border: 1px solid rgba(68, 176, 232, 0.5);
  color: var(--c6);
  padding: 12px 40px;
  min-height: 44px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}
#load-more:hover { background: var(--c6); color: #fff; }

/* ── Lightbox ─────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 3, 0.98);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 80px;
  overflow-y: auto;
}
.lightbox.active { display: flex; }

.lightbox-inner {
  width: min(90vw, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#lightbox-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox-media img,
#lightbox-media video {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  display: block;
}

#lightbox-media a { display: block; line-height: 0; }

#lightbox-caption {
  width: 100%;
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

.lb-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.lb-artist {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--c6);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lb-stats {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lb-bio {
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-muted);
  max-height: 72px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
  margin-bottom: 12px;
}
.lb-objkt-warning {
  font-size: 10px;
  font-weight: 700;
  color: #c87533;
  border: 1px solid rgba(200, 117, 51, 0.35);
  background: rgba(200, 117, 51, 0.07);
  padding: 6px 10px;
  margin-bottom: 10px;
}
.lb-link {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c6);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lb-link:hover { color: var(--text); }

.close-btn {
  position: fixed;
  top: 18px; right: 22px;
  font-size: 28px;
  line-height: 1;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.15s;
  z-index: 1001;
  padding: 12px;
}
.close-btn:hover { color: var(--c6); }

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: rgba(255,255,255,0.15);
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px 14px;
  min-height: 60px;
  transition: color 0.15s;
  user-select: none;
  z-index: 1001;
}
.nav-arrow:hover { color: var(--c6); }
.nav-prev { left: 4px; }
.nav-next { right: 4px; }

/* ── Footer ─────────────────────────────────────────── */

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-brand { color: var(--c6); font-weight: 700; }
.footer-sep { opacity: 0.3; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .prizes-grid { flex-direction: column; }
  .prize-card { max-width: none; }
  .details-band { grid-template-columns: repeat(2, 1fr); }
  .jurors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (hover: none) {
  .overlay { opacity: 1; }
}

@media (max-width: 640px) {
  nav { padding: 8px 16px; height: auto; min-height: 52px; }
  .hero { padding: 40px 20px; }
  .poster-section { padding: 32px 20px; }
  .details-band { grid-template-columns: 1fr; }
  .callout { padding: 14px 20px; }
  .prizes-section,
  .people-section { padding: 40px 20px; }
  .gallery-controls, footer { padding-left: 20px; padding-right: 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .load-more-wrapper { padding-left: 20px; padding-right: 20px; }
  .empty-state { padding: 52px 20px; }
  .lightbox { padding: 56px 0 20px; }
  .lightbox-inner { width: 100%; padding: 0 12px; }
  #lightbox-media img, #lightbox-media video { max-height: 50vh; }
  .lb-bio { max-height: none; overflow-y: visible; }
  .curator-card { max-width: none; }
  .page-header { padding: 32px 20px; }
}
