/* CSS Animations & Custom Styles */

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
  }
}

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

@keyframes parallax-bg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

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

/* CTA Pulse Animation */
.cta-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Game Card Hover Effects */
.game-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.5s;
}

.game-card:hover::before {
  left: 100%;
}

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

.category-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.category-btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Provider Tag Hover */
.provider-tag {
  transition: all 0.3s ease;
  cursor: default;
}

.provider-tag:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(255, 215, 0, 0.2));
  transform: translateY(-2px);
}

/* Animated Background Pattern */
body {
  background-size: 400% 400%;
  animation: parallax-bg 20s ease infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #ffd700);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffd700, #d4af37);
}

/* Prose Styling for Content Readability */
.prose-custom {
  line-height: 1.7;
}

.prose-custom p {
  margin-bottom: 1rem;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  color: #d4af37;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.prose-custom ul,
.prose-custom ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
}

.prose-custom a {
  color: #d4af37;
  text-decoration: underline;
}

.prose-custom a:hover {
  color: #ffd700;
}

/* Details/Summary Custom Styling */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Responsive Video Embeds */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Print Styles */
@media print {
  .no-print,
  header,
  footer,
  #stickyBanner {
    display: none !important;
  }
}

/* Accessibility: Focus States */
a:focus,
button:focus,
summary:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Optimizations (Already dark by default) */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}
