/* Custom animations and overrides */

/* Keyframe animations */
@keyframes bonus-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
  }
}

@keyframes floating-slow {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes floating-fast {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(-180deg);
  }
}

@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);
  }
}

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

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

.floating-fast {
  animation: floating-fast 4s ease-in-out infinite;
}

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

.tilt-hover:hover {
  animation: tilt 0.5s ease-in-out;
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.game-card:hover::before {
  left: 100%;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

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

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.875rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

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

.prose a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.2s;
}

.prose a:hover {
  color: #ffed4e;
  text-decoration: underline;
}

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

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

.prose blockquote {
  border-left: 4px solid #ffd700;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #d1d5db;
}

.prose code {
  background-color: #374151;
  color: #ffd700;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose pre {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

.prose th,
.prose td {
  border: 1px solid #374151;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background-color: #ffd700;
  color: #000000;
  font-weight: 600;
}

.prose tr:nth-child(even) {
  background-color: #1f2937;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bonus-pulse {
    animation-duration: 2s;
  }

  .floating-slow,
  .floating-fast {
    animation-duration: 3s;
  }

  .game-card:hover {
    transform: none;
  }
}

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

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Casino-specific effects */
.casino-glow {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.casino-glow:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
