/* gallery.css — Art for Life · #Art4LifeTez · Teia */

/* Palette from the campaign imagery: warm charcoal, terracotta red, off-white */

:root {
  --bg: #231e1e;
  --surface: #2c2626;
  --border: rgba(255, 255, 255, 0.07);
  --border-warm: rgba(255, 255, 255, 0.12);
  --text: #f5efea;
  --text-muted: rgba(245, 239, 234, 0.4);
  --text-dim: rgba(245, 239, 234, 0.65);
  --accent: #b53a2e;
  --accent-light: #d4564a;
}

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

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

a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--text); }

/* ── Top bar ─────────────────────────────────────── */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
}

.top-bar-left {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.top-bar-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
  border: 1px solid rgba(181, 58, 46, 0.4);
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.top-bar-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.hero-left {
  padding: 52px 40px 52px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  letter-spacing: -3px;
}

.title-word {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(72px, 10vw, 152px);
  color: var(--text);
  text-transform: uppercase;
}

.title-for {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(52px, 7.5vw, 116px);
  color: var(--accent);
  letter-spacing: -1px;
  text-transform: none;
  line-height: 1;
  padding: 4px 0;
}

.hero-sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 20px;
}

.hero-right {
  padding: 52px 32px 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-tagline {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dim);
}
.hero-desc em { font-style: normal; color: var(--text); font-weight: 500; }
.hero-desc a { color: var(--accent-light); }

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.hero-fact {
  background: var(--surface);
  padding: 12px 16px;
}

.hero-fact-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.2px;
}
.hero-fact-text::before {
  content: "— ";
  color: var(--accent);
}

.hero-blood-note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.hero-cta-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Info section ────────────────────────────────── */

.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.info-block {
  padding: 40px 40px 48px 32px;
}

.info-block--right {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.info-block-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.info-block-lead {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.info-block-lead a { color: var(--accent-light); }

.info-list {
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.info-list li:last-child { border-bottom: none; }

.info-list-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 2px;
}

.info-list-val {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}
.info-list-val strong { color: var(--text); font-weight: 600; }
.info-list-val a { color: var(--accent-light); }

.info-submit-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  background: var(--accent);
  padding: 12px 24px;
  min-height: 44px;
  transition: background 0.15s;
}
.info-submit-btn:hover { background: var(--accent-light); color: var(--text); }

/* ── Awards section ──────────────────────────────── */

.awards-section {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.awards-intro {
  flex-shrink: 0;
}

.awards-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.awards-total {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.awards-tiers {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.awards-divider {
  width: 1px;
  height: 48px;
  background: var(--border-warm);
  flex-shrink: 0;
}

.award-tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.award-amounts {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}

.award-unit {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
}

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

/* ── 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;
}

.ps-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 10px 12px;
  min-height: 44px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
}
.ps-toggle:hover { border-color: rgba(255,255,255,0.35); color: var(--text); }
.ps-toggle.active { opacity: 0.4; }

.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(--accent); }

/* ── 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(20, 12, 12, 0.92) 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(--accent-light);
  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 {
  background: var(--surface);
  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;
}

.gallery-item.photosensitive::after {
  content: "⚠ Flashing content";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
}
body.ps-visible .gallery-item.photosensitive::after { display: none; }

.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: 13px;
  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 var(--accent);
  color: var(--accent-light);
  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(--accent);
  color: var(--text);
}

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

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 6, 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(--accent-light);
  text-transform: uppercase;
  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-link {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  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(--accent-light); }

.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(--accent-light); }
.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-tagline {
  color: var(--accent);
  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) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 32px; }
  .hero-right { padding: 36px 32px; }
  .info-section { grid-template-columns: 1fr; }
  .info-block--right { border-left: none; border-top: 1px solid var(--border); padding-left: 32px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .awards-section { flex-direction: column; align-items: flex-start; gap: 24px; }
  .awards-tiers { flex-wrap: wrap; gap: 24px; }
  .awards-divider { width: 100%; height: 1px; }
}

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

@media (max-width: 640px) {
  .top-bar, .gallery-controls, footer, .awards-section { padding-left: 20px; padding-right: 20px; }
  .hero-left, .hero-right { padding: 28px 20px; }
  .hero-facts { grid-template-columns: 1fr; }
  .info-submit-btn { width: 100%; justify-content: center; }
  .info-block { padding: 28px 20px 36px; }
  .info-block--right { padding-left: 20px; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
  .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; }
}
