/* /css/bedbugops-intro-video.css */

/*
 * BedbugOps Hero Intro Video
 * Isolated styling for the 9:16 homepage intro video.
 */

.scene.scene-video {
  position: relative;

  min-height: 520px;

  padding: 28px 28px 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    radial-gradient(
      650px 420px at 20% 12%,
      rgba(255, 176, 32, 0.16),
      transparent 58%
    ),
    radial-gradient(
      620px 440px at 90% 88%,
      rgba(255, 77, 46, 0.16),
      transparent 58%
    ),
    linear-gradient(
      145deg,
      #0b1f3b 0%,
      #101d33 48%,
      #0b1020 100%
    );
}


/* Soft branded glow behind the portrait video */

.scene.scene-video::before {
  content: "";

  position: absolute;

  width: 78%;
  max-width: 430px;

  aspect-ratio: 1 / 1;

  left: 50%;
  top: 48%;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 176, 32, 0.18) 0%,
      rgba(255, 77, 46, 0.08) 38%,
      transparent 72%
    );

  filter: blur(12px);

  pointer-events: none;
}


/* ---------------------------------------------------------
   Inline 9:16 video
   --------------------------------------------------------- */

.bedbugops-intro-video-shell {
  position: relative;

  width: min(100%, 330px);

  aspect-ratio: 9 / 16;

  overflow: hidden;

  border-radius: 26px;

  border: 1px solid rgba(247, 244, 239, 0.18);

  background: #0b1020;

  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    0 10px 26px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.03);

  isolation: isolate;

  cursor: zoom-in;
}


.bedbugops-intro-video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  background: #0b1020;

  transform: translateZ(0);

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}


/* Gentle bottom fade */

.bedbugops-intro-video-shade {
  position: absolute;

  z-index: 1;

  left: 0;
  right: 0;
  bottom: 0;

  height: 28%;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(11, 16, 32, 0.08) 35%,
      rgba(11, 16, 32, 0.58) 100%
    );
}


/* Click target covering the complete video */

.bedbugops-intro-expand-hit {
  position: absolute;

  z-index: 3;

  inset: 0;

  width: 100%;
  height: 100%;

  padding: 0;
  margin: 0;

  border: 0;

  appearance: none;
  -webkit-appearance: none;

  background: transparent;

  cursor: zoom-in;
}


.bedbugops-intro-expand-hit:focus-visible {
  outline: 3px solid #ffb020;
  outline-offset: -5px;

  border-radius: 24px;
}


/* Expand pill */

.bedbugops-intro-expand-label {
  position: absolute;

  z-index: 4;

  right: 14px;
  bottom: 14px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 8px 11px;

  border: 1px solid rgba(247, 244, 239, 0.25);

  border-radius: 999px;

  background: rgba(11, 16, 32, 0.72);

  color: #f7f4ef;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;

  letter-spacing: 0.01em;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  pointer-events: none;

  transition:
    transform 180ms ease,
    background-color 180ms ease;
}


.bedbugops-intro-video-shell:hover
.bedbugops-intro-expand-label {
  transform: translateY(-2px);

  background: rgba(11, 16, 32, 0.9);
}


/* ---------------------------------------------------------
   Existing scene note integration
   --------------------------------------------------------- */

.scene.scene-video .intro-scene-note {
  left: 16px;
  right: 16px;
  bottom: 16px;

  justify-content: center;
}


.scene.scene-video .scene-note .pill {
  background: rgba(247, 244, 239, 0.94);

  color: #0b1f3b;

  border-color: rgba(247, 244, 239, 0.34);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


.scene.scene-video .scene-note .pill.hot {
  background:
    linear-gradient(
      135deg,
      #ff4d2e 0%,
      #ffb020 100%
    );

  color: #0b1020;
}


/* ---------------------------------------------------------
   Fullscreen-style video modal
   --------------------------------------------------------- */

.bedbugops-intro-modal {
  position: fixed;

  z-index: 99999;

  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 28px;

  background: rgba(5, 10, 20, 0.88);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


.bedbugops-intro-modal.is-open {
  display: flex;
}


.bedbugops-intro-modal-panel {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: min(94vw, 1100px);
  height: min(92vh, 920px);

  pointer-events: none;
}


.bedbugops-intro-modal-video-wrap {
  position: relative;

  height: 100%;

  max-height: 880px;

  aspect-ratio: 9 / 16;

  overflow: hidden;

  border-radius: 24px;

  border: 1px solid rgba(247, 244, 239, 0.2);

  background: #000;

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.52);

  pointer-events: auto;
}


.bedbugops-intro-modal-video {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  background: #000;
}


/* Modal close button */

.bedbugops-intro-modal-close {
  position: fixed;

  z-index: 2;

  top: 22px;
  right: 22px;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid rgba(247, 244, 239, 0.22);

  border-radius: 50%;

  background: rgba(11, 16, 32, 0.86);

  color: #f7f4ef;

  font-size: 27px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    background-color 160ms ease,
    transform 160ms ease;
}


.bedbugops-intro-modal-close:hover {
  background: rgba(255, 77, 46, 0.95);

  transform: scale(1.04);
}


.bedbugops-intro-modal-close:focus-visible {
  outline: 3px solid #ffb020;
  outline-offset: 3px;
}


/* Prevent page scrolling while modal is open */

html.bedbugops-intro-modal-open,
body.bedbugops-intro-modal-open {
  overflow: hidden;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .scene.scene-video {
    min-height: auto;

    padding:
      28px
      20px
      28px;
  }


  .bedbugops-intro-video-shell {
    width: min(72vw, 330px);
  }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 640px) {
  .scene.scene-video {
    padding:
      18px
      16px
      66px;

    border-radius: 22px;
  }


  .bedbugops-intro-video-shell {
    width: min(82vw, 315px);

    border-radius: 22px;

    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.28),
      0 8px 18px rgba(0, 0, 0, 0.18);
  }


  .bedbugops-intro-expand-label {
    right: 10px;
    bottom: 10px;

    padding: 7px 9px;

    font-size: 11px;
  }


  .scene.scene-video .intro-scene-note {
    left: 10px;
    right: 10px;
    bottom: 12px;
  }


  .bedbugops-intro-modal {
    padding: 14px;
  }


  .bedbugops-intro-modal-panel {
    width: 100%;
    height: 92dvh;
  }


  .bedbugops-intro-modal-video-wrap {
    max-width: 100%;
    max-height: 88dvh;

    border-radius: 18px;
  }


  .bedbugops-intro-modal-close {
    top: 12px;
    right: 12px;

    width: 44px;
    height: 44px;
  }
}


/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .bedbugops-intro-expand-label,
  .bedbugops-intro-modal-close {
    transition: none;
  }


  .bedbugops-intro-video-shell:hover
  .bedbugops-intro-expand-label {
    transform: none;
  }
}