/* TezCon 2026 · Beyond Enshitification */

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

:root {
  /* Light zone — event info */
  --bg:           #e8e2d8;
  --surface:      #ddd7cc;
  --border:       rgba(0, 0, 0, 0.12);
  --text:         #0d0d0d;
  --text-muted:   rgba(13, 13, 13, 0.48);
  --green:        #267a42;
  --red:          #bf2323;

  /* Dark zone — gallery */
  --bg-dark:          #0e0e0e;
  --surface-dark:     #181818;
  --border-dark:      rgba(255, 255, 255, 0.08);
  --text-dark:        #d4d4d4;
  --text-muted-dark:  rgba(212, 212, 212, 0.42);

  --font-display: 'Bebas Neue', sans-serif;
  --font-sans:    'Inter', sans-serif;
}

html { font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.top-bar-brand {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--text);
  flex-shrink: 0;
}

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

.top-bar-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.top-bar-link:hover { color: var(--text); text-decoration: none; }

.top-bar-rsvp {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  background: var(--text);
  color: var(--bg);
  padding: 6px 16px;
  text-decoration: none;
  transition: background 0.15s;
  line-height: 1.4;
}
.top-bar-rsvp:hover { background: var(--red); text-decoration: none; }

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

.hero {
  padding: 52px 36px 48px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 11vw, 10rem);
  line-height: 0.9;
  color: var(--red);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  color: var(--green);
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.hero-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-meta-val { color: var(--text); }
.hero-meta-sep { opacity: 0.3; }

/* ── Full-width banner image ───────────────────── */

.banner-section {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  line-height: 0;
}

.banner-section img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Details grid ──────────────────────────────── */

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

.detail-cell {
  background: var(--bg);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.detail-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--green);
}

.detail-val {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

/* ── Poster + About split ──────────────────────── */

.content-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.poster-col {
  background: #0d0d0d;
  padding: 40px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.poster-link { display: block; }

.event-poster {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.poster-link:hover .event-poster { opacity: 0.8; }

.about-col {
  background: var(--bg);
  padding: 40px 44px;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 18px;
}

.about-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-body p + p { margin-top: 14px; }
.about-body strong { color: var(--text); }
.about-body a { color: var(--green); text-decoration: underline; }
.about-body a:hover { color: var(--red); }

/* ── Voices of Iran feature ────────────────────── */

.featured-section {
  border-bottom: 1px solid var(--border);
}

.featured-header {
  padding: 32px 36px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.featured-header-label {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text);
  line-height: 1;
}

.featured-header-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.featured-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px;
  background: var(--border);
}

.featured-logo-col {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.featured-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
}

.featured-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.featured-link {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  background: var(--text);
  color: var(--bg);
  padding: 7px 18px;
  text-decoration: none;
  transition: background 0.15s;
  line-height: 1.4;
}
.featured-link:hover { background: var(--green); text-decoration: none; }

.featured-link--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.featured-link--outline:hover { background: var(--surface); border-color: var(--text); }

.featured-text-col {
  background: var(--bg);
  padding: 36px 44px;
}

.featured-text-col p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.featured-text-col p + p { margin-top: 14px; }
.featured-text-col strong { color: var(--text); }
.featured-text-col em { color: var(--text); font-style: italic; }

/* ── Gallery zone (dark) ───────────────────────── */

.gallery-zone {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.gallery-zone a { color: var(--text-dark); }

.gallery-zone-header {
  padding: 36px 36px 28px;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.gallery-zone-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text-dark);
  line-height: 1;
}

.gallery-zone-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted-dark);
}

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

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

#info-bar {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted-dark);
}

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

.sort-control select {
  background: var(--surface-dark);
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
  padding: 5px 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  outline: none;
}
.sort-control select:focus { border-color: rgba(255,255,255,0.3); }

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

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

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

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

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

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}
.gallery-item:hover .overlay { opacity: 1; }

.overlay-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.overlay-artist {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
}

.platform-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  z-index: 1;
}
.platform-OBJKT { background: #1f2937; color: #9ca3af; }

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

.empty-state {
  padding: 72px 36px;
  text-align: center;
  background: var(--bg-dark);
}

.empty-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--text-muted-dark);
  margin-bottom: 10px;
}

.empty-sub {
  font-size: 0.9rem;
  color: var(--text-muted-dark);
}

.empty-sub a { color: rgba(212,212,212,0.6); text-decoration: underline; }

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

.load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: 32px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
}

#load-more {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 3px;
  background: none;
  color: var(--text-muted-dark);
  border: 1px solid var(--border-dark);
  padding: 10px 32px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
#load-more:hover { color: var(--text-dark); border-color: rgba(255,255,255,0.3); }

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

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

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

.lightbox-inner img,
.lightbox-inner video {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  display: block;
}

#lightbox-caption {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lb-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #eee;
  display: block;
}
.lb-artist {
  font-size: 0.8rem;
  color: #888;
  display: block;
}
.lb-stats {
  font-size: 0.75rem;
  color: #666;
  display: block;
}
.lb-bio {
  font-size: 0.875rem;
  color: #999;
  max-width: 560px;
  line-height: 1.7;
}
.lb-objkt-warning { font-size: 0.8rem; color: #e0a84e; }

.lb-link {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  color: #eee;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  margin-top: 6px;
  display: inline-block;
  transition: background 0.15s;
  line-height: 1.4;
}
.lb-link:hover { background: rgba(255,255,255,0.08); text-decoration: none; }

.close-btn {
  position: fixed;
  top: 16px; right: 20px;
  font-family: var(--font-display);
  font-size: 32px;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.15s;
  z-index: 501;
  padding: 10px;
  line-height: 1;
}
.close-btn:hover { color: #fff; }

.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: 501;
}
.nav-arrow:hover { color: #fff; }
.nav-prev { left: 4px; }
.nav-next { right: 4px; }

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

footer {
  padding: 24px 36px;
  border-top: 1px solid var(--border-dark);
  background: var(--bg-dark);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

footer a { color: var(--text-muted-dark); transition: color 0.15s; }
footer a:hover { color: var(--text-dark); text-decoration: none; }
.footer-sep { opacity: 0.25; }

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

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

@media (max-width: 768px) {
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .content-split { grid-template-columns: 1fr; }
  .poster-col { padding: 28px 20px; }
  .event-poster { max-width: 180px; margin: 0 auto; }
  .featured-body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .top-bar { padding: 0 16px; }
  .top-bar-link { display: none; }
  .hero { padding: 36px 16px 32px; }
  .hero-subtitle { font-size: clamp(1rem, 5vw, 1.4rem); }
  .banner-section { display: none; }
  .detail-cell { padding: 18px 16px; }
  .poster-col { padding: 20px 16px; }
  .event-poster { max-width: 140px; }
  .about-col { padding: 24px 16px; }
  .featured-logo-col, .featured-text-col { padding: 24px 16px; }
  .featured-logo { max-width: 220px; }
  .gallery-zone-header { padding: 24px 16px 18px; }
  .gallery-controls { padding: 10px 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 52px 0 20px; }
  .lightbox-inner { width: 100%; padding: 0 12px; }
  .lightbox-inner img, .lightbox-inner video { max-height: 60vh; }
  footer { padding: 18px 16px; }
}
