@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

/* Custom pixel art styling */
.pixel-art {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Scan lines effect */
.scan-lines::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    transparent 50%, 
    rgba(0, 255, 65, 0.03) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1000;
}

/* Glowing text effect */
.glow-text {
  text-shadow: 
    0 0 5px #00ff41,
    0 0 10px #00ff41,
    0 0 15px #00ff41,
    0 0 20px #00ff41;
}

/* Pixel card hover effect */
.pixel-card:hover {
  box-shadow: 
    0 0 20px rgba(0, 255, 65, 0.3),
    inset 0 0 20px rgba(0, 255, 65, 0.1);
}

/* Generation title styling */
.generation-title {
  text-shadow: 
    2px 2px 0px #0f0f0f,
    0 0 10px #00ff41;
  letter-spacing: 0.1em;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #00ff41;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #39ff14;
}

/* Loading spinner */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #1a1a2e;
  border-top: 3px solid #00ff41;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Button active effect */
button:active {
  transform: scale(0.95);
}

/* Retro button styling */
.retro-button {
  background: linear-gradient(145deg, #00ff41, #39ff14);
  border: 2px solid #00ff41;
  color: #0f0f0f;
  font-weight: bold;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  box-shadow: 
    0 4px 0 #00cc33,
    0 8px 8px rgba(0, 0, 0, 0.3);
}

.retro-button:hover {
  background: linear-gradient(145deg, #39ff14, #00ff41);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 0 #00cc33,
    0 12px 12px rgba(0, 0, 0, 0.4);
}

.retro-button:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 #00cc33,
    0 4px 4px rgba(0, 0, 0, 0.3);
}

/* Modal animation */
.modal-enter {
  opacity: 0;
  transform: scale(0.8);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 200ms, transform 200ms;
}

/* CRT monitor effect */
.crt-effect {
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 255, 65, 0.1) 100%);
  box-shadow: inset 0 0 100px rgba(0, 255, 65, 0.1);
}

/* Pixel border utility */
.pixel-border {
  border-image: url("data:image/svg+xml,%3csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m0 0h100v100h-100z' fill='none' stroke='%2300ff41' stroke-width='2'/%3e%3c/svg%3e") 2;
}

/* Retro focus styles */
input:focus, select:focus, button:focus {
  outline: 2px solid #00ff41;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .scan-lines::before {
    background-size: 100% 2px;
  }
  
  .generation-title {
    font-size: 1.5rem;
  }
  
  .glow-text {
    text-shadow: 
      0 0 3px #00ff41,
      0 0 6px #00ff41,
      0 0 9px #00ff41;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .scan-lines::before {
    display: none;
  }
  
  .pixel-card {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .loading-spinner {
    animation: none;
    border: 3px solid #00ff41;
  }
}

/* Print styles */
@media print {
  .scan-lines::before,
  button,
  input,
  select {
    display: none;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}