/* Custom Animations and Overrides */

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

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

/* Pulse Glow Animation for CTAs */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.8);
  }
}

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

/* Marquee Animation for Game Providers */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee {
  animation: marquee 30s linear infinite;
}

/* Parallax Effect */
.parallax-bg {
  transform: translateZ(-1px) scale(2);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #4a90e2;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5aa0f2;
}

/* Prose Styling for Readability */
.prose {
  color: #e5e7eb;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #d4af37;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose h1 {
  font-size: 2.25em;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.875em;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.5em;
  line-height: 1.4;
}

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

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

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

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

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

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

.prose blockquote {
  border-left: 4px solid #4a90e2;
  padding-left: 1em;
  font-style: italic;
  color: #a8d8ea;
  margin: 1.5em 0;
}

.prose code {
  background-color: #2d1b4e;
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
  color: #a8d8ea;
}

.prose pre {
  background-color: #2d1b4e;
  padding: 1em;
  border-radius: 0.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
}

.prose img {
  border-radius: 0.5em;
  margin: 1.5em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.prose th,
.prose td {
  border: 1px solid #2d1b4e;
  padding: 0.75em;
  text-align: left;
}

.prose th {
  background-color: #2d1b4e;
  font-weight: 600;
  color: #d4af37;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Mobile Menu Overlay */
#mobile-menu {
  backdrop-filter: blur(10px);
}

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

/* Card Hover Effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.3);
}

/* Button Ripple Effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

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