/* ClawScanner PRO v3.0 — Cyber-Forensic Glass & Neon Background Theme */

:root {
  --claw-emerald: #10b981;
  --claw-cyan: #38bdf8;
  --claw-blue: #3b82f6;
  --claw-bg: #050810;
}

html.dark {
  background-color: #050810 !important;
}

html.dark body {
  background-color: transparent !important;
  position: relative;
  overflow-x: hidden;
}

/* Fixed animated canvas + aurora + grid layers behind content */
#claw-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#claw-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.claw-aurora {
  position: absolute;
  border-radius: 9999px;
  filter: blur(110px);
  opacity: 0.22;
  animation: clawFloat 16s ease-in-out infinite alternate;
}

.claw-aurora-1 {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}

.claw-aurora-2 {
  width: 560px;
  height: 560px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  animation-delay: -6s;
}

.claw-aurora-3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 52%;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  opacity: 0.14;
  animation-delay: -11s;
}

.claw-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 46px 46px;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 45%, transparent 100%);
}

.claw-scanbeam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.45) 35%, rgba(56, 189, 248, 0.6) 50%, rgba(16, 185, 129, 0.45) 65%, transparent 100%);
  box-shadow: 0 0 22px 2px rgba(16, 185, 129, 0.35);
  opacity: 0.5;
  animation: clawScanSweep 9s linear infinite;
}

@keyframes clawFloat {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.96); }
}

@keyframes clawScanSweep {
  0% { top: -4%; opacity: 0; }
  10% { opacity: 0.55; }
  90% { opacity: 0.55; }
  100% { top: 104%; opacity: 0; }
}

/* Do not override position on body children (preserves absolute/fixed elements) */
#toastContainer {
  position: fixed !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  max-width: 24rem;
  width: auto;
}

/* Frosted glass elevation for dark surfaces */
html.dark .bg-void-900 {
  background-color: rgba(12, 17, 27, 0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html.dark .bg-void-850 {
  background-color: rgba(18, 25, 39, 0.74) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.dark .bg-void-950\/80 {
  background-color: rgba(5, 8, 16, 0.75) !important;
}

/* Subtle cyber glow on borders & cards */
html.dark .border-void-border {
  border-color: rgba(56, 189, 248, 0.14) !important;
}

.claw-card-hover {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.claw-card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 12px 32px -12px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.18);
}

/* Radar pulse badge for Web Scanner hero */
.claw-radar-ring {
  position: relative;
}

.claw-radar-ring::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 9999px;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.24) 0deg, transparent 70deg, transparent 360deg);
  border: 1px solid rgba(16, 185, 129, 0.16);
  animation: clawRadarSpin 5.5s linear infinite;
  pointer-events: none;
}

@keyframes clawRadarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Light mode compatibility on scanner.html */
html.light #claw-bg-layer {
  opacity: 0.14;
}

/* Custom neon scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #070b14; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #10b981, #3b82f6);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #34d399, #60a5fa);
}
