/* Fix for Last Wins Section - Background Blur Style */

/* Last Wins Container - Main wrapper */
div[style*="linear-gradient(110deg, #1e283f"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 16px !important;
  padding: 16px !important;
}

/* Last Wins Scrollable Container */
div[style*="overflowX: auto"] {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 8px !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Hide scrollbar but keep functionality */
div[style*="overflowX: auto"]::-webkit-scrollbar {
  height: 6px !important;
}

div[style*="overflowX: auto"]::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 3px !important;
}

div[style*="overflowX: auto"]::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 3px !important;
}

div[style*="overflowX: auto"]::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Individual Win Cards - Background Blur Style */
div[style*="minWidth: '200px'"],
div[style*="min-width: 200px"] {
  flex: 0 0 auto !important;
  min-width: 200px !important;
  max-width: 240px !important;
  background: rgba(26, 34, 53, 0.95) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  min-height: 220px !important;
  position: relative !important;
  border: 1px solid #262e48 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Game Image - Full Background with Blur */
div[style*="position: absolute"][style*="top: 0"][style*="zIndex: 0"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  z-index: 0 !important;
}

div[style*="position: absolute"][style*="top: 0"][style*="zIndex: 0"] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: blur(8px) brightness(0.4) !important;
  transform: scale(1.1) !important;
  display: block !important;
}

/* Gradient Overlay */
div[style*="position: absolute"][style*="zIndex: 1"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(180deg, rgba(26, 34, 53, 0.3) 0%, rgba(26, 34, 53, 0.8) 50%, rgba(26, 34, 53, 0.95) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
  border-radius: 12px !important;
}

/* Content Elements Above Blur */
div[style*="position: relative"][style*="zIndex: 2"] {
  position: relative !important;
  z-index: 2 !important;
}

/* Amount Badge */
div[style*="linear-gradient(135deg, #ff9f43"],
div[style*="linear-gradient(135deg, #6b7a99"] {
  border-radius: 8px !important;
  padding: 8px 12px !important;
  text-align: center !important;
  margin-bottom: 8px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Typography fixes */
span[class*="MuiTypography"] {
  display: block !important;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
  /* Last Wins Main Container */
  div[style*="linear-gradient(110deg, #1e283f"] {
    padding: 12px !important;
    margin-bottom: 12px !important;
  }
  
  /* Reduce card size on mobile */
  div[style*="minWidth: '200px'"],
  div[style*="min-width: 200px"] {
    min-width: 180px !important;
    max-width: 200px !important;
    min-height: 200px !important;
    padding: 14px !important;
  }
  
  /* Lighter blur on mobile for better performance */
  div[style*="position: absolute"][style*="top: 0"][style*="zIndex: 0"] img {
    filter: blur(6px) brightness(0.4) !important;
  }
  
  /* Adjust scroll container gap */
  div[style*="overflowX: auto"] {
    gap: 12px !important;
  }
  
  /* Make scrollbar more visible on mobile */
  div[style*="overflowX: auto"]::-webkit-scrollbar {
    height: 4px !important;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  div[style*="minWidth: '200px'"],
  div[style*="min-width: 200px"] {
    min-width: 190px !important;
    max-width: 220px !important;
    min-height: 210px !important;
    padding: 15px !important;
  }
}

/* Desktop - Show more cards */
@media (min-width: 1025px) {
  /* Last Wins Container */
  div[style*="linear-gradient(110deg, #1e283f"] {
    display: block !important;
    visibility: visible !important;
  }
  
  /* Desktop cards */
  div[style*="minWidth: '200px'"],
  div[style*="min-width: 200px"] {
    min-width: 200px !important;
    max-width: 240px !important;
    min-height: 220px !important;
    padding: 16px !important;
  }
  
  /* Show scrollbar on desktop */
  div[style*="overflowX: auto"]::-webkit-scrollbar {
    height: 8px !important;
    display: block !important;
  }
}

/* Animation for pulsing dot */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

div[style*="animation: pulse"] {
  animation: pulse 2s ease-in-out infinite !important;
}

/* Ensure parent containers don't hide the section */
body,
#app,
#root,
main,
.casino-page {
  overflow-x: visible !important;
}

/* Fix for container that might be hiding it */
.MuiContainer-root,
.container {
  overflow: visible !important;
}
