/* Custom Animations and Styles */

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Mobile Menu Fixes */
#mobileMenu {
  pointer-events: none;
  background-color: #460a56 !important;
}

#mobileMenu.mobile-menu-open {
  pointer-events: auto;
  transform: translateX(0) !important;
  background-color: #460a56 !important;
}

#mobileMenu > div {
  background-color: #460a56 !important;
}

@media (min-width: 1024px) {
  #mobileMenu {
    display: none !important;
  }
}

/* Mobile Menu Backdrop */
#mobileMenuBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobileMenuBackdrop.active {
  display: block;
  opacity: 1;
}

/* Gradient Animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.8), 0 0 60px rgba(217, 70, 239, 0.4);
  }
}

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

/* Glow Effect */
.glow-effect {
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.3);
}

.glow-effect:hover {
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.5), 0 0 50px rgba(217, 70, 239, 0.3);
}

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

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

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

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

.game-card:hover {
  transform: translateY(-5px);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #460a56;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b1fa8;
}

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

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

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

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

.prose a:hover {
  color: #8b1fa8;
}

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

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

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

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

/* Table Responsive */
@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
  }

  th,
  td {
    padding: 0.5rem 0.25rem;
  }
}

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

details[open] summary {
  margin-bottom: 1rem;
}

/* Hover Effects for Interactive Elements */
a,
button {
  transition: all 0.2s ease;
}

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

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

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

/* Gradient Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(217, 70, 239, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 31, 168, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Parallax Scroll Effect */
@media (min-width: 1024px) {
  .parallax-element {
    transform-style: preserve-3d;
  }
}

/* ===== JACKPOTS CAROUSEL STYLES ===== */

.jackpots-carousel-wrapper {
  position: relative;
  padding: 2rem 0;
}

.jackpots-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

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

.jackpot-card {
  flex: 0 0 350px;
  perspective: 1000px;
}

.jackpot-card-inner {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(139, 31, 168, 0.15) 50%, rgba(251, 191, 36, 0.15) 100%);
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.jackpot-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(251, 191, 36, 0.1) 50%, 
    transparent 70%);
  animation: jackpot-shine 3s linear infinite;
}

@keyframes jackpot-shine {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.jackpot-card:hover .jackpot-card-inner {
  transform: translateY(-10px) rotateX(5deg);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 20px 50px rgba(251, 191, 36, 0.4);
}

.jackpot-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.jackpot-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.jackpot-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.jackpot-amount {
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.jackpot-amount .currency {
  font-size: 1.5rem;
  color: #fbbf24;
  font-weight: 700;
}

.jackpot-amount .amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fbbf24;
  display: block;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  animation: jackpot-pulse 2s ease-in-out infinite;
  transition: all 0.2s ease;
}

@keyframes jackpot-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.jackpot-provider {
  text-align: center;
  color: #a0a0a0;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.jackpot-leaders {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.leader-title {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leader-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, transparent 100%);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.leader-item:last-child {
  margin-bottom: 0;
}

.leader-item:hover {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
  transform: translateX(5px);
}

.leader-rank {
  font-weight: 700;
  color: #fbbf24;
  font-size: 0.85rem;
  min-width: 40px;
}

.leader-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  flex: 1;
  text-align: center;
}

.leader-score {
  color: #22c55e;
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 80px;
  text-align: right;
}

.jackpot-play-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  padding: 0.875rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.jackpot-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.jackpot-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: none;
  color: #000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 5px 20px rgba(251, 191, 36, 0.4);
}

.jackpot-carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.6);
}

.jackpot-carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.jackpot-carousel-btn.prev {
  left: -25px;
}

.jackpot-carousel-btn.next {
  right: -25px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .jackpot-card {
    flex: 0 0 280px;
  }

  .jackpot-card-inner {
    padding: 1.5rem;
  }

  .jackpot-amount .amount {
    font-size: 2rem;
  }

  .jackpot-carousel-btn {
    width: 40px;
    height: 40px;
  }

  .jackpot-carousel-btn.prev {
    left: -20px;
  }

  .jackpot-carousel-btn.next {
    right: -20px;
  }
}
