/* gallery.css — Tezos Pride 2026 · #TezosPride2026 · Teia */

:root {
  --bg: #0d0a1a;
  --surface: #19142e;
  --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);
  --c1: #ff4545;
  --c2: #ff9100;
  --c3: #ffe600;
  --c4: #00cc66;
  --c5: #4d9fff;
  --c6: #cc44ff;
  --rainbow: linear-gradient(90deg, #ff4545, #ff9100, #ffe600, #00cc66, #4d9fff, #cc44ff);
}

*, *::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;
}

/* ── Rainbow top bar ─────────────────────────────── */

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

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

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 10, 26, 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(204, 68, 255, 0.1);
}

/* ── Page header (juried / registration pages) ─────── */

.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;
}

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

.hero-title {
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  /* Solid white — always visible, no gradient-clip risks */
  color: #fff;
}

/* Rainbow underline instead of risky gradient-clip text */
.hero-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  max-width: 640px;
  margin-top: 16px;
  background: var(--rainbow);
}

.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);
}
.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(204, 68, 255, 0.35);
  background: rgba(204, 68, 255, 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(204, 68, 255, 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 band ─────────────────────────────────── */

.details-band {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 0;
}

.detail-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 24px;
  flex-shrink: 0;
}

.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(--rainbow);
  -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(--rainbow); }
.prize-card--purple::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;
}

/* ── Curator + Jurors ─────────────────────────────── */

.people-section {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.people-col {
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.people-col--curator {
  flex: 0 0 auto;
  min-width: 260px;
  border-right: 1px solid var(--border);
  justify-content: center;
}

.people-col--jurors {
  flex: 1 1 400px;
  align-items: center;
  text-align: center;
}

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

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

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

.person-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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

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

.jurors-image {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
}

.jurors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.juror-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.juror-name:hover { color: #fff; }

.handle {
  font-size: 11px;
  font-weight: 500;
  color: var(--c6);
  letter-spacing: 0.2px;
}

/* ── 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(5, 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(8, 4, 20, 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(204, 68, 255, 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(5, 3, 12, 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: 1200px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .prizes-grid { flex-direction: column; }
  .prize-card { max-width: none; }
  /* Curator stacks above jurors */
  .people-col--curator {
    flex-basis: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

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

@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .hero { padding: 40px 20px; }
  .details-band { padding: 0 16px; }
  .prizes-section,
  .people-col { 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; }
  .jurors-list { gap: 14px; }
  .juror-name { flex-direction: column; gap: 2px; }
}
