/* XOS Wallet Checker Styles */
body {
  background-color: #0a0a23;
  color: white;
  overflow-x: hidden;
}

/* Enhanced animations for better user experience */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px 0 rgba(255, 193, 7, 0.3);
  }
  50% {
    box-shadow: 0 0 25px 5px rgba(255, 193, 7, 0.6);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s infinite;
}

/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
  width: 6px;
}

@media (min-width: 640px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 193, 7, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 193, 7, 0.8);
}

/* Enhanced backdrop blur effect */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

/* Improved focus states for accessibility */
input:focus {
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

button:focus {
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
  outline: none;
}

/* Loading spinner enhancement */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Text selection styling */
::selection {
  background-color: rgba(255, 193, 7, 0.3);
  color: white;
}

/* Clean card transitions */
.bg-gradient-to-br {
  transition: all 0.3s ease;
}

.bg-gradient-to-br:hover {
  transform: translateY(-2px);
}

/* Mobile-specific improvements */
@media (max-width: 640px) {
  .backdrop-blur-md {
    backdrop-filter: blur(8px);
  }
  
  /* Improve touch targets */
  button {
    min-height: 44px;
  }
  
  /* Better text readability on smaller screens */
  .font-mono {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  
  /* Responsive padding adjustments */
  .rounded-xl {
    border-radius: 0.75rem;
  }
  
  /* Ensure proper spacing in grid layouts */
  .grid {
    gap: 0.75rem;
  }
}

/* Tablet-specific optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Optimize grid layouts for tablet */
  .grid-cols-1.sm\:grid-cols-2.xl\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  /* Better button sizing for tablets */
  button {
    min-height: 48px;
  }
}

/* Desktop enhancements */
@media (min-width: 1025px) {
  /* Enhanced hover effects for desktop */
  .hover\:bg-gray-700\/30:hover {
    background-color: rgba(55, 65, 81, 0.4);
    transform: translateY(-1px);
  }
  
  /* Improved card shadows for better depth */
  .bg-black\/30 {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .animate-pulse-glow,
  .animate-spin,
  .transition-all,
  .transition-colors {
    animation: none;
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .border-yellow-500\/20 {
    border-color: rgba(255, 193, 7, 0.5);
  }
  
  .text-gray-400 {
    color: rgba(156, 163, 175, 0.9);
  }
}

/* Focus visible for keyboard navigation */
.focus-visible:focus-visible {
  outline: 2px solid rgba(255, 193, 7, 0.8);
  outline-offset: 2px;
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ensure proper text wrapping */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile landscape optimizations */
@media (max-width: 926px) and (orientation: landscape) {
  .py-4.sm\:py-6 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .min-h-screen {
    min-height: 100vh;
  }
}