/* assets/css/shared.css */

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

/* ── Base ── */
body {
  background: #000;
  color: rgba(255,255,255,0.82);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

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

::selection { background: rgba(255,255,255,0.15); }

/* ── Page header ── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 5% 0;
  margin-bottom: 48px;
}

.back-link {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.back-link:hover { color: rgba(255,255,255,0.7); }

.page-title {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
}

/* ── Section labels ── */
.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.18);
  margin-bottom: 16px;
}

/* ── Page content wrapper ── */
.page-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 0 5%;
}

/* ── Footer ── */
.page-footer {
  flex-shrink: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #000;
}

.page-footer a {
  display: flex;
  align-items: center;
  opacity: 0.35;
  transition: opacity 0.2s;
}
.page-footer a:hover { opacity: 0.85; }

.page-footer svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
#lightbox.active {
  display: flex;
  opacity: 1;
}
#lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
}
#lightbox-caption {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .page-header { padding: 28px 5% 0; margin-bottom: 32px; }
}
