/* Custom Animations and Styles */

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

/* Dragon text glow effect */
.dragon-text-glow {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 0 40px rgba(212, 175, 55, 0.3);
}

/* Pulse glow animation for CTAs */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(212, 175, 55, 0.4);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Floating card animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

/* Category card hover effect */
.category-card {
  transition: all 0.3s ease;
}

.category-card:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  border-color: rgba(212, 175, 55, 0.6);
}

/* Game card hover effect */
.game-card {
  transition: all 0.3s ease;
}

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

/* CTA Banner slide-in animation */
.cta-banner-animate {
  animation: slideInFromBottom 0.5s ease-out forwards;
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Parallax effect for background */
body {
  background-attachment: fixed;
  background-size: cover;
}

/* Marquee animation for providers (optional) */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Tilt effect on hover (subtle) */
@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
}

/* Smooth carousel scrolling */
.scroll-smooth {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Tab transition */
.game-tab {
  transition: all 0.3s ease;
}

.game-tab-content {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer effect for new items */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(212, 175, 55, 0.3) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Stagger animation for lists */
.stagger-item {
  animation: slideInStagger 0.5s ease-out backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInStagger {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
  75% {
    transform: rotate(-1deg);
  }
}

/* Prose styling for better readability */
.prose {
  color: #e5e7eb;
}

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

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

.prose a {
  color: #d4af37;
  text-decoration: underline;
  transition: color 0.2s;
}

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

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

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

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

.prose code {
  background-color: rgba(212, 175, 55, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

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

::-webkit-scrollbar-track {
  background: #0a1628;
}

::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f4d03f;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

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

/* Responsive utilities */
@media (max-width: 768px) {
  .dragon-text-glow {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  }
}

/* Focus styles for accessibility */
a:focus,
button: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;
  }
}
