/* Custom styles for Pokemon Collection */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P:wght@400&family=Inter:wght@400;600;700&display=swap');

.pokemon-title {
  font-family: 'Press Start 2P', cursive;
  text-shadow: 3px 3px 0px #FFD700, 6px 6px 0px #FF6B6B;
  letter-spacing: 2px;
}

.pokemon-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.pixel-art {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pokeball-spinner {
  border-bottom-color: #EF4444;
  border-left-color: #EF4444;
  border-right-color: #FFFFFF;
  animation: pokeball-spin 1s linear infinite;
}

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

.pokemon-button {
  background: linear-gradient(45deg, #DC2626, #EF4444);
  border: 3px solid #FFFFFF;
  text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
  position: relative;
}

.pokemon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.4);
}

.pokemon-button:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-radius: 50%;
  transform: translateY(-50%);
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card hover effects */
.bg-white:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive improvements */
@media (max-width: 640px) {
  .pokemon-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Loading animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.3s ease;
}

/* Improve button accessibility */
button:focus {
  outline: 3px solid #60A5FA;
  outline-offset: 2px;
}

/* Custom scrollbar for modal */
.overflow-y-auto::-webkit-scrollbar {
  width: 8px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}