/* =========================================================
   lighting.css
   Ambient wall lighting is baked into the photo now, so this
   file's scope narrows to the TV screen's own light effects:
   static noise, scanlines, the warm "on" glow, and the
   tracking line — all ported from the reference build.
   ========================================================= */

.tv__static {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 2px);
  background-size: 100% 3px, 3px 100%;
  opacity: 0.06;
  animation: tv-noise 0.2s steps(3) infinite;
  z-index: 1;
}

@keyframes tv-noise {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-1%, 1%); }
  66%  { transform: translate(1%, -1%); }
  100% { transform: translate(0, 0); }
}

.tv__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

.tv__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 180, 84, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-med) ease;
  z-index: 1;
  pointer-events: none;
}

.tv__screen.is-on .tv__glow { opacity: 1; }

.tv__tracking {
  position: absolute;
  left: 0; right: 0;
  height: 1.5%;
  top: 60%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  z-index: 2;
}

.tv__screen.is-on .tv__tracking {
  opacity: 0.35;
  animation: tv-tracking 2.6s linear infinite;
}

@keyframes tv-tracking {
  0%   { top: 0%; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tv__static,
  .tv__tracking {
    animation: none;
  }
}
