/* Custom Animations & Styles */

/* Keyframes */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 122, 0, 0.8);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Floating Card Animation */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

/* Glow Effects */
.glow-orange {
  box-shadow: 0 4px 30px rgba(255, 122, 0, 0.4);
}

.glow-subtle {
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
}

/* Game Card Hover Effect */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
  box-shadow: 0 10px 40px rgba(255, 122, 0, 0.3);
}

/* Category Button Hover */
.category-btn {
  transition: all 0.3s ease;
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Prose Styling for Readability */
.prose {
  color: #d1d5db;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #ffffff;
  font-weight: 700;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose a {
  color: #fb923c;
  text-decoration: none;
  transition: color 0.2s;
}

.prose a:hover {
  color: #f97316;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose strong {
  color: #ffffff;
  font-weight: 600;
}

.prose code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.9em;
}

.prose blockquote {
  border-left: 4px solid #fb923c;
  padding-left: 1em;
  font-style: italic;
  color: #9ca3af;
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-lg {
    backdrop-filter: blur(16px);
  }
}

/* Custom Gradient Patterns */
.bg-pattern-dots {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.bg-pattern-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Responsive Image Fixes */
img {
  max-width: 100%;
  height: auto;
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid #fb923c;
  outline-offset: 2px;
}

/* Transition Performance */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent Layout Shift */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Dark Mode Enhancements */
::selection {
  background-color: rgba(255, 122, 0, 0.3);
  color: #ffffff;
}

/* Loading State */
.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
}

/* Slot of the Week Glowing Border */
@keyframes glow-border {
  0%, 100% {
    border-color: rgba(251, 146, 60, 0.8);
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.6),
                0 0 40px rgba(251, 146, 60, 0.4),
                0 0 60px rgba(251, 146, 60, 0.2),
                inset 0 0 20px rgba(251, 146, 60, 0.1);
  }
  50% {
    border-color: rgba(249, 115, 22, 1);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.8),
                0 0 60px rgba(249, 115, 22, 0.6),
                0 0 90px rgba(249, 115, 22, 0.4),
                inset 0 0 30px rgba(249, 115, 22, 0.2);
  }
}

.slot-of-week {
  animation: glow-border 3s ease-in-out infinite;
  border-image: linear-gradient(45deg, #f97316, #fb923c, #fdba74, #fb923c, #f97316) 1;
}
