/**
 * AEYE Bot Rain Animation Styles
 * Canvas positioning and responsive design for coin/bill rain effect
 */

.bot-rain-canvas {
  position: fixed;
  top: 0;
  height: 100vh;
  pointer-events: none; /* Allow clicks to pass through */
  z-index: 15; /* Above robots (z-index: 10), below UI elements */
  mix-blend-mode: screen; /* Blend with background for glow effect */
  opacity: 0.9;
}

.bot-rain-canvas.left {
  left: 0;
  width: 25vw;
}

.bot-rain-canvas.right {
  right: 0;
  width: 25vw;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .bot-rain-canvas.left,
  .bot-rain-canvas.right {
    width: 35vw; /* Slightly wider on mobile */
  }

  .bot-rain-canvas {
    opacity: 0.7; /* Reduce opacity on mobile for better readability */
  }
}

/* Tablet size adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .bot-rain-canvas.left,
  .bot-rain-canvas.right {
    width: 30vw;
  }
}

/* Ultra-wide screen adjustments */
@media (min-width: 1920px) {
  .bot-rain-canvas.left,
  .bot-rain-canvas.right {
    width: 20vw; /* Narrower on very wide screens */
  }
}

/* Performance optimization: Reduce animation on low-end devices */
@media (prefers-reduced-motion: reduce) {
  .bot-rain-canvas {
    display: none; /* Disable animation for accessibility */
  }
}

/* Subtle pulsing glow effect for canvas container */
@keyframes canvasGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.2));
  }
}

.bot-rain-canvas {
  animation: canvasGlow 4s ease-in-out infinite;
}

/* Loading state - fade in animation */
.bot-rain-canvas {
  animation: fadeInCanvas 1.5s ease-out;
}

@keyframes fadeInCanvas {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}

/*
 * Robot SVG enhancement - subtle glow when raining cash
 * Applied to existing .brain-left and .brain-right elements
 */
@keyframes botGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px #00ff88) drop-shadow(0 0 40px #0ff);
  }
  50% {
    filter: drop-shadow(0 0 30px #00ff88) drop-shadow(0 0 60px #0ff);
  }
}

/* This will enhance the existing robot SVGs */
body:has(.bot-rain-canvas) .brain-left,
body:has(.bot-rain-canvas) .brain-right {
  animation: botGlow 3s ease-in-out infinite;
}
