/**
 * PixelAgentViz - Retro 8-bit Dashboard Styling
 * Tailwind-compatible utilities for the canvas visualization
 */

/* Container for the pixel visualization */
.pixel-viz-container {
  position: relative;
  width: 100%;
  background: #050505;
  border: 2px solid rgba(0, 255, 65, 0.5);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 60px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.5rem;
}

.pixel-viz-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 2px,
    rgba(0, 255, 65, 0.03) 4px
  );
  pointer-events: none;
  z-index: 5;
}

.pixel-viz-container::after {
  content: '█ PIXEL AGENT VIZ 0.1';
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 10px;
  color: rgba(0, 255, 65, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 6;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.pixel-viz-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pixel-viz-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 9px;
  color: rgba(0, 255, 65, 0.5);
  z-index: 6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pixel-viz-status {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 10px;
  color: rgba(0, 255, 65, 0.7);
  z-index: 6;
}

.pixel-viz-status-dot {
  width: 8px;
  height: 8px;
  background: #00ff41;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px #00ff41;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #00ff41; }
  50% { opacity: 0.5; box-shadow: 0 0 2px #00ff41; }
}

.pixel-viz-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 9px;
  color: rgba(0, 255, 65, 0.6);
  z-index: 6;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 2px;
}

/* CRT curvature effect (subtle) */
.pixel-viz-crt {
  position: relative;
}

.pixel-viz-crt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
  z-index: 7;
}
