/* Custom animations and prose styling */

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

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Parallax effect */
.parallax-layer {
  transition: transform 0.3s ease-out;
}

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

/* Prose styling for readability */
.prose {
  max-width: 65ch;
  line-height: 1.6;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 600;
  font-size: 1.25em;
}

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

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

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

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

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

.prose th,
.prose td {
  padding: 0.75em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.prose th {
  background: rgba(147, 51, 234, 0.2);
  font-weight: 600;
}

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

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

::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

/* Burger menu animation */
.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Game card hover effect */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(234, 179, 8, 0.3);
}

/* CTA button effects */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

/* Trustpilot star rating */
.star-rating {
  color: #00b67a;
}

/* Mobile bottom menu island */
.bottom-menu-island {
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 46, 0.95);
  border-top: 2px solid rgba(147, 51, 234, 0.3);
}

/* Sidebar transition */
.sidebar {
  transition: transform 0.3s ease-in-out;
}

.sidebar-hidden {
  transform: translateX(-100%);
}

/* Payment method logos */
.payment-logo {
  filter: grayscale(0.3);
  transition: filter 0.3s ease;
}

.payment-logo:hover {
  filter: grayscale(0);
}

/* Bonus calculator */
.calculator-input {
  background: rgba(147, 51, 234, 0.1);
  border: 2px solid rgba(147, 51, 234, 0.3);
  transition: border-color 0.3s ease;
}

.calculator-input:focus {
  outline: none;
  border-color: #eab308;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Carousel */
.carousel-container {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  scroll-snap-align: start;
}

/* Responsive utilities */
@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    z-index: 40;
  }
}
