/* AI Lens HUD Style Sheet */

/* Custom HUD background grid pattern */
.hud-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(0, 242, 254, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 254, 0.08) 1px, transparent 1px);
}

/* Reticle slow spin */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 14s linear infinite;
}

/* Laser scanline animation */
@keyframes scanline {
  0% { top: 0%; opacity: 0.8; }
  50% { opacity: 1; }
  100% { top: 98%; opacity: 0.8; }
}

.scanline-animation {
  animation: scanline 2.2s ease-in-out infinite alternate;
}

/* Audio Waveform Bars */
.wave-bar {
  width: 3px;
  background: #00f2fe;
  border-radius: 2px;
  transition: height 0.15s ease;
}

.waveform-active .wave-bar:nth-child(odd) {
  animation: pulse-wave 0.4s ease-in-out infinite alternate;
}
.waveform-active .wave-bar:nth-child(even) {
  animation: pulse-wave 0.6s ease-in-out infinite alternate 0.1s;
}

@keyframes pulse-wave {
  0% { height: 4px; background: #00f2fe; }
  50% { height: 28px; background: #38bdf8; }
  100% { height: 12px; background: #4facfe; }
}

/* Slide in drawer */
@keyframes slide-left {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.animate-slide-left {
  animation: slide-left 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Target Reticle Hover */
.hud-bounding-box {
  position: absolute;
  border: 1.5px solid #00f2fe;
  background-color: rgba(0, 242, 254, 0.12);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
}

.hud-bounding-box:hover {
  border-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
  z-index: 30;
}

.hud-bounding-tag {
  position: absolute;
  top: -22px;
  left: -1px;
  background: #060b13;
  border: 1px solid #00f2fe;
  color: #00f2fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

/* Custom Scrollbar for HUD panels */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 11, 19, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.4);
}