/* Monkeyzino Custom CSS */
/* Animations: Shimmer + Float */

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(250, 204, 21, 0.7);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Shimmer effect class */
.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(250, 204, 21, 0.15) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite linear;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #facc15 0%,
    #fef08a 50%,
    #facc15 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3s infinite linear;
}

/* Float animation class */
.float {
  animation: float 3s ease-in-out infinite;
}

.float-slow {
  animation: float 4.5s ease-in-out infinite;
}

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

/* Pulse glow for CTAs */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Fade in animation */
.fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.slide-in {
  animation: slide-in 0.5s ease-out forwards;
}

/* Prose readability */
.prose-readable {
  font-size: 1rem;
  line-height: 1.75;
  color: #d1d5db;
}

.prose-readable h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose-readable h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #facc15;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose-readable p {
  margin-bottom: 1rem;
}

.prose-readable ul,
.prose-readable ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

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

.prose-readable a {
  color: #facc15;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-readable a:hover {
  color: #fef08a;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(250, 204, 21, 0.15);
}

/* Badge styles */
.badge-rtp {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.badge-jackpot {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.badge-bonus {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.badge-popular {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Tab active state */
.tab-active {
  background-color: #facc15;
  color: #000000;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Glass effect */
.glass {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Gradient border */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #facc15 0%, #f97316 50%, #facc15 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Star rating */
.star-filled {
  color: #facc15;
}

.star-empty {
  color: #374151;
}

/* Mobile menu transition */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 500px;
}

/* Latest bets table row colors */
.bet-win {
  background-color: rgba(34, 197, 94, 0.15);
}

.bet-lose {
  background-color: rgba(239, 68, 68, 0.15);
}

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

/* ========== Sidebar ========== */
.casino-sidebar {
  scrollbar-width: thin;
  scrollbar-color: #374151 transparent;
}

.casino-sidebar::-webkit-scrollbar {
  width: 4px;
}

.casino-sidebar::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 2px;
}

.sidebar-overlay {
  transition: opacity 0.3s ease;
}

/* Sidebar collapsed state on desktop */
.sidebar-collapsed .casino-sidebar {
  width: 0;
  padding: 0;
  overflow: hidden;
  border-right: none;
}

.sidebar-collapsed .casino-sidebar nav {
  opacity: 0;
}

/* Sidebar chevron rotation */
.sidebar-group-btn[aria-expanded="true"] .sidebar-chevron {
  transform: rotate(0deg);
}

.sidebar-group-btn[aria-expanded="false"] .sidebar-chevron {
  transform: rotate(-90deg);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background-color: #facc15;
  color: #000000;
}
