/* ============================================================
   CHEF'S HAVEN — Video Cards & Video Lightbox
   ============================================================ */

/* ── Grids ───────────────────────────────────────────────── */
.vid-grid {
  display: grid;
  gap: clamp(12px, 1.5vw, 20px);
  margin-bottom: 56px;
}

.vid-grid--home {
  grid-template-columns: repeat(4, 1fr);
}

.vid-grid--gallery {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

/* ── Card shell ──────────────────────────────────────────── */
.vid-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #0e0e0e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  display: block;
  text-decoration: none;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 9:16 aspect frame ───────────────────────────────────── */
.vid-card__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #080808;
}

/* ── Video element ───────────────────────────────────────── */
.vid-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Hover overlay ───────────────────────────────────────── */
.vid-card__hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.78) 0%,
    rgba(8, 8, 8, 0.12) 42%,
    transparent 68%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vid-card__cta {
  font-family: var(--font-body, 'Sora', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 40px;
  background: rgba(8, 8, 8, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* ── Category label (gallery cards) ─────────────────────── */
.vid-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px 14px;
  font-family: var(--font-body, 'Sora', sans-serif);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red, #c64827);
  background: linear-gradient(to top, rgba(8, 8, 8, 0.88) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ── Hover effects (pointer devices only) ────────────────── */
@media (hover: hover) {
  .vid-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.62);
  }

  .vid-card:hover .vid-card__hover {
    opacity: 1;
  }

  .vid-card:hover .vid-card__label {
    opacity: 1;
  }
}

/* ── Video Lightbox ──────────────────────────────────────── */
.vid-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vid-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.vid-lightbox__inner {
  position: relative;
  width: min(360px, 88vw);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
}

.vid-lightbox__video {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: cover;
}

.vid-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.65);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.vid-lightbox__close:hover {
  background: rgba(198, 72, 39, 0.88);
}

/* ── Responsive: Tablet ──────────────────────────────────── */
@media (max-width: 1024px) {
  .vid-grid--home,
  .vid-grid--gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: Mobile ──────────────────────────────────── */
@media (max-width: 600px) {
  .vid-grid--home,
  .vid-grid--gallery {
    grid-template-columns: 1fr;
  }

  .vid-grid {
    margin-bottom: 40px;
  }
}
