/* Custom animations and styling for Rich Gringo Casino */

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

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

@keyframes particle {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.6);
  }
}

/* Animation classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

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

.animate-particle {
  animation: particle 4s ease-out infinite;
}

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

/* Custom Mexican theme colors */
:root {
  --mexican-yellow: #ffc107;
  --mexican-green: #28a745;
  --deep-blue: #1a237e;
  --dark-blue: #0d47a1;
}

/* Prose styling for readability */
.prose {
  color: #e3f2fd;
  line-height: 1.7;
}

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

.prose strong {
  color: var(--mexican-yellow);
  font-weight: 600;
}

.prose ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

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

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--mexican-yellow), #ffb300);
  color: #1a237e;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--mexican-green), #1e7e34);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, var(--mexican-yellow), #ffb300);
  color: var(--deep-blue);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}

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

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

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

::-webkit-scrollbar-track {
  background: var(--deep-blue);
}

::-webkit-scrollbar-thumb {
  background: var(--mexican-yellow);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffb300;
}

/* Focus states for accessibility */
.focus-visible:focus {
  outline: 2px solid var(--mexican-yellow);
  outline-offset: 2px;
}

/* Mobile menu animations */
.mobile-menu {
  transition: all 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu.closed {
  transform: translateX(-100%);
}

/* Particle background */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--mexican-yellow);
  border-radius: 50%;
  opacity: 0.6;
}

/* Responsive utilities */
@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}
