/* gallery.css — Teia Minting Party · Midsummer 2026 */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,700;0,800;0,900;1,700;1,800&family=Space+Grotesk:wght@400;500;600&display=swap');

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

:root {
  --cyan:     #00e5ff;
  --cyan-dim: rgba(0,229,255,0.15);
  --pink:     #ff2dcc;
  --pink-dim: rgba(255,45,204,0.15);
  --green:    #39ff14;
  --purple:   #9b30ff;
  --bg:       #06000f;
  --bg-card:  #0e0020;
  --text:     #d8d0f0;
  --text-dim: #7060a0;
  --font-head: 'Exo 2', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }

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

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 56px;
  border-bottom: 1px solid rgba(0,229,255,0.12);
  background: rgba(6,0,15,0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
}

.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  padding: 5px 14px;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--cyan-dim) !important; }

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.hero-left {
  background: linear-gradient(135deg, #0a0020 0%, #140030 50%, #0a0020 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,229,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,45,204,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-title-teia {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,229,255,0.6), 0 0 60px rgba(0,229,255,0.2);
}

.hero-title-party {
  display: block;
  color: var(--pink);
  text-shadow: 0 0 20px rgba(255,45,204,0.6), 0 0 60px rgba(255,45,204,0.2);
}

.hero-desc {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 420px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border: 1px solid;
}

.hero-tag--cyan {
  color: var(--cyan);
  border-color: rgba(0,229,255,0.4);
  text-shadow: 0 0 8px rgba(0,229,255,0.5);
}

.hero-tag--green {
  color: var(--green);
  border-color: rgba(57,255,20,0.4);
  text-shadow: 0 0 8px rgba(57,255,20,0.5);
}

.hero-right {
  background: #0e0020;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Details band ────────────────────────────────── */

.details-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(0,229,255,0.1);
  border-bottom: 1px solid rgba(0,229,255,0.1);
  background: rgba(0,229,255,0.03);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 32px;
  border-right: 1px solid rgba(0,229,255,0.08);
  flex: 1;
  min-width: 160px;
}
.detail-item:last-child { border-right: none; }

.detail-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.detail-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.detail-val a { color: var(--cyan); }
.detail-val a:hover { text-shadow: 0 0 8px rgba(0,229,255,0.6); }

/* ── Gallery zone ────────────────────────────────── */

.gallery-zone {
  padding: 40px 24px 80px;
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-zone-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,229,255,0.1);
}

.gallery-zone-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

.gallery-zone-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Controls ────────────────────────────────────── */

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#info-bar {
  font-size: 13px;
  color: var(--text-dim);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.sort-control select {
  background: var(--bg-card);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--text);
  font-size: 12px;
  padding: 4px 10px;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.sort-control select:hover { border-color: var(--cyan); }

/* ── Masonry gallery ─────────────────────────────── */

.gallery {
  columns: 5;
  column-gap: 3px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,0,15,0.92) 0%, rgba(6,0,15,0.4) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .overlay { opacity: 1; }

.overlay-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-artist {
  font-size: 11px;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 2px;
  pointer-events: none;
}

/* ── Empty / load more ───────────────────────────── */

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-title {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

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

.load-more-wrapper {
  text-align: center;
  margin-top: 32px;
}

#load-more {
  background: none;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 32px;
  cursor: pointer;
  transition: background 0.15s;
}
#load-more:hover { background: var(--cyan-dim); }

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

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,0,15,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox-media img,
#lightbox-media video {
  max-width: 85vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

#lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.lb-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.lb-artist { font-size: 13px; color: var(--cyan); }
.lb-stats  { font-size: 12px; color: var(--text-dim); }

.lb-link {
  font-size: 12px;
  color: var(--pink);
  letter-spacing: 0.05em;
  margin-top: 4px;
  border-bottom: 1px solid rgba(255,45,204,0.3);
  padding-bottom: 1px;
}
.lb-link:hover { color: #fff; border-color: #fff; }

.close-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
}
.close-btn:hover { color: #fff; }

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  transition: color 0.15s;
}
.nav-arrow:hover { color: var(--cyan); }
.nav-prev { left: 16px; }
.nav-next { right: 16px; }

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

footer {
  border-top: 1px solid rgba(0,229,255,0.1);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(0,229,255,0.02);
}

footer a { transition: color 0.15s; }
footer a:hover { color: var(--cyan); }

.footer-sep { color: rgba(255,255,255,0.15); }

/* ── Mobile ──────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 280px; }
  .hero-left { padding: 40px 24px; }
  .gallery { columns: 3; }
}

@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .detail-item { padding: 14px 20px; }
  .gallery { columns: 2; }
  .gallery-zone { padding: 24px 12px 60px; }
}
