/* ==========================================================================
   behind-the-scenes.css — Behind the Scenes Page Styles
   ========================================================================== */


/* --------------------------------------------------------------------------
   PAGE WRAPPER
   -------------------------------------------------------------------------- */
.bts-page {
  position: relative;
  min-height: 100vh;
  padding-top: var(--navbar-height);
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   BACKGROUND IMAGE
   -------------------------------------------------------------------------- */
.bts-page__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../../assets/images/bg4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   PAGE CONTENT
   -------------------------------------------------------------------------- */
.bts-page__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-12);
}


/* --------------------------------------------------------------------------
   VIDEO GRID — 2x2
   -------------------------------------------------------------------------- */
.bts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}


/* --------------------------------------------------------------------------
   VIDEO CARD
   -------------------------------------------------------------------------- */
.bts-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bts-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #1a1a1a;
}

.bts-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.bts-card__thumb:hover .bts-card__img {
  transform: scale(1.04);
}

/* Play button overlay */
.bts-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.bts-card__play svg {
  width: clamp(44px, 7vw, 64px);
  height: clamp(44px, 7vw, 64px);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform var(--transition-normal);
}

.bts-card__play:hover svg {
  transform: scale(1.12);
}

/* Card title */
.bts-card__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-dark);
  line-height: var(--line-snug);
}

/* Placeholder cards */
.bts-card--empty .bts-card__thumb--placeholder {
  background-color: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.bts-card--empty .bts-card__thumb--placeholder span {
  font-size: 2rem;
  color: rgba(0,0,0,0.20);
}

.bts-card__title--muted {
  color: var(--color-text-mid);
  font-style: italic;
}


/* --------------------------------------------------------------------------
   VIDEO MODAL
   -------------------------------------------------------------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}


.video-modal__inner {
  position: relative;
  z-index: 1;
  width: min(860px, 92vw);
  background: #111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.video-modal.open .video-modal__inner {
  transform: translateY(0);
}

.video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: #1a1a1a;
  gap: var(--space-4);
}

.video-modal__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.85);
  line-height: var(--line-snug);
}

.video-modal__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
}

.video-modal__close:hover {
  background: rgba(255,255,255,0.25);
}

.video-modal__video {
  width: 100%;
  display: block;
  max-height: 70vh;
  background: #000;
}


/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .bts-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.bts-empty-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.bts-empty-state p {
  color: var(--color-text-mid);
  font-size: var(--text-sm);
  margin: 0;
}
