/* posters.mikesego.com — stylesheet */
:root {
  --bg: #0e0e10;
  --surface: #18181b;
  --surface2: #1f1f24;
  --border: rgba(255,255,255,0.08);
  --accent: #f5c842;
  --accent2: #e05a2b;
  --text: #f0ede6;
  --text-muted: #8a8480;
  --text-dim: #555250;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', 'Times New Roman', serif;
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Header ── */
.site-header {
  background: linear-gradient(180deg, #0a0a0c 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,200,66,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.site-header .masthead {
  font-family: 'Georgia', serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  position: relative;
}

.site-header .masthead span {
  color: var(--accent);
}

.site-header .tagline {
  margin-top: 12px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.04em;
}

.site-header .stats-bar {
  margin-top: 24px;
  display: inline-flex;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stats-bar .stat strong {
  color: var(--accent);
  font-size: 1.1em;
}

/* ── Controls ── */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,200,66,0.07);
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 36px 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  outline: none;
  width: 200px;
  transition: border-color 0.15s;
  font-family: inherit;
}

.search-wrap input::placeholder { color: var(--text-dim); }
.search-wrap input:focus { border-color: var(--accent); }

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

/* ── Grid ── */
.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Card ── */
.poster-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(245,200,66,0.3);
}

.poster-card.hidden { display: none; }

.poster-card .img-wrap {
  position: relative;
  aspect-ratio: 13/19;
  overflow: hidden;
  background: var(--surface2);
}

.poster-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.poster-card:hover .img-wrap img {
  transform: scale(1.03);
}

.poster-card .card-info {
  padding: 14px 16px 16px;
}

.card-date {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  font-family: 'Georgia', serif;
}

.card-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Newest badge ── */
.poster-card.newest::after {
  content: 'TODAY';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  font-family: sans-serif;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}

.lightbox.open { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-inner {
  display: flex;
  gap: 32px;
  max-width: 900px;
  width: 100%;
  align-items: flex-start;
  max-height: 95vh;
}

.lightbox-img-wrap {
  flex: 0 0 auto;
  max-width: 420px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.lightbox-img-wrap img {
  display: block;
  max-width: 420px;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-meta {
  flex: 1;
  padding-top: 8px;
  overflow-y: auto;
  max-height: 90vh;
}

.lb-date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.lb-title {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.lb-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 20px;
}

.lb-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.lb-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.15s;
  font-family: inherit;
}

.lb-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.lb-close:hover { color: var(--text); }

/* ── Latest hero ── */
.latest-hero {
  max-width: 1400px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

.latest-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.latest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(245,200,66,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.latest-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

.latest-img {
  flex: 0 0 auto;
  width: 140px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 13/19;
  cursor: pointer;
}

.latest-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

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

.latest-info { flex: 1; }

.latest-date {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 28px;
}

.latest-title {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: bold;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.latest-caption {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  max-width: 500px;
}

/* ── Section heading ── */
.section-heading {
  max-width: 1400px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

.section-heading h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
  font-style: italic;
  display: none;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .lightbox-inner { flex-direction: column; align-items: center; }
  .lightbox-img-wrap { max-width: 100%; }
  .latest-card { flex-direction: column; }
  .latest-img { width: 120px; }
  .controls { flex-direction: column; align-items: flex-start; }
}
