/* ═══════════════════════════════════════════
   Sub-page Shared Styles — Interview Portfolio
   ═══════════════════════════════════════════ */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --border: #27272a;
  --accent: #2dd4bf;
  --text: #fafafa;
  --muted: #a1a1aa;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.header {
  padding: 2rem 2rem 0;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-bottom: 1.75rem;
}

.back-link:hover { color: var(--accent); }

.back-link svg { transition: transform 0.2s ease; }
.back-link:hover svg { transform: translateX(-3px); }

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin: 0.5rem auto 0;
  max-width: 520px;
}

.accent-rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1.5rem auto 0;
}

/* ── Content ── */
.content {
  flex: 1;
  max-width: 920px;
  margin: 2.5rem auto;
  padding: 0 2rem;
  width: 100%;
}

.placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}

.placeholder-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }

.placeholder h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.placeholder p { font-size: 0.9rem; line-height: 1.5; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .header, .content { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ── Media Grid ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.media-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid rgba(45,212,191,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  border-color: var(--accent);
}

.media-card video,
.media-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: opacity 0.2s ease;
}

.media-card:hover video,
.media-card:hover img { opacity: 0.9; }

.media-label {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox video {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 4px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(80vw, 720px);
  padding: 0.6rem 1.25rem;
  background: rgba(0,0,0,0.75);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}

@media (max-width: 480px) {
  .media-grid { grid-template-columns: 1fr; }
  .lightbox-caption { bottom: 1rem; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .media-card, .media-card video, .media-card img, .lightbox { transition: none; }
}
