/* ============================================
   SPACE CAMP PRODUCTIONS — Home Page
   ============================================ */

/* ── Home Header (static, sits above grid) ── */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.home-logo { display: block; }
.home-logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.home-logo-img:hover { opacity: 0.75; }

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.home-nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}
.home-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.home-nav-links a:hover { color: var(--white); }
.home-nav-links a:hover::after { width: 100%; }

/* ── Full-width Video Grid ── */
.hg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: 100%;
  background: var(--border); /* gap color */
}

/* Cell */
.hg-cell {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}
.hg-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
  background: var(--surface);
}
.hg-cell:hover .hg-thumb { transform: scale(1.04); }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-frame {
  width: 88vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
}
.lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

/* Info overlay — fades in on hover */
.hg-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.hg-cell:hover .hg-info { opacity: 1; }

.hg-cat {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.hg-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

/* Footer sub on home */
.footer-logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hg-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .home-header { padding: 1.25rem 1.5rem; }
  .home-logo-img { height: 40px; }
  .home-nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hg-grid { grid-template-columns: repeat(2, 1fr); }
  .hg-info { opacity: 1; }
}
@media (max-width: 480px) {
  .hg-grid { grid-template-columns: 1fr; }
}
