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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(65, 105, 225, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(65, 105, 225, 0.8);
  }
}

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

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

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

/* Utility Classes */
.anime-float {
  animation: float 6s ease-in-out infinite;
}

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

.anime-glow {
  box-shadow: 0 0 20px rgba(65, 105, 225, 0.4);
}

.anime-text-glow {
  text-shadow: 0 0 30px rgba(65, 105, 225, 0.6);
}

.anime-tilt {
  animation: tilt 4s ease-in-out infinite;
}

/* Prose Styling for Readability */
.prose {
  color: #d1d5db;
  line-height: 1.75;
}

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

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

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

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

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

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

.prose a:hover {
  color: #4169e1;
}

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

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose code {
  color: #ff6b9d;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}

.prose blockquote {
  border-left: 4px solid #4169e1;
  padding-left: 1rem;
  font-style: italic;
  color: #9ca3af;
}

.prose img {
  border-radius: 0.5rem;
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose th {
  background-color: rgba(65, 105, 225, 0.2);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose td {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

::-webkit-scrollbar-track {
  background: #0a1628;
}

::-webkit-scrollbar-thumb {
  background: #4169e1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00d4ff;
}

/* Details/Summary Enhancement */
details summary {
  transition: color 0.2s;
}

details[open] summary {
  color: #00d4ff;
}

details summary::-webkit-details-marker {
  color: #4169e1;
}

/* Button Hover Effects */
button,
a[class*="px-"] {
  transition: all 0.3s ease;
}

/* Mobile Menu Animation */
#mobile-menu {
  animation: slideIn 0.3s ease-out;
}

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

/* Card Hover Effects */
.group:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

/* Text Balance for Better Typography */
h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

/* Loading State */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Bonus Slider Styles */
.bonus-slider-container {
  position: relative;
  overflow: hidden;
}

.bonus-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.bonus-slide {
  flex: 0 0 100%;
  width: 100%;
}

/* Slider Indicators */
.indicator {
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #ff6b9d !important;
  transform: scale(1.2);
}

.indicator:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Calculator Input Styles */
input[type="number"], 
select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
}

input[type="number"]:focus,
select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00d4ff;
  outline: none;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

input[type="number"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Bonus Card Animations */
.bonus-slide .bg-gradient-to-br {
  background-attachment: fixed;
  transition: all 0.3s ease;
}

.bonus-slide:hover .bg-gradient-to-br {
  transform: scale(1.02);
}

/* Pros/Cons List Styling */
.bonus-slide ul li {
  position: relative;
  padding-left: 8px;
}

/* Wagering Display Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wagering-amount {
  animation: countUp 0.3s ease-out;
}

/* Slider Navigation Buttons */
#prevBonus, #nextBonus {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#prevBonus:hover, #nextBonus:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#prevBonus:active, #nextBonus:active {
  transform: scale(0.95);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .bonus-slide .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .bonus-slide .text-5xl {
    font-size: 2.5rem;
  }
  
  .bonus-slide .text-6xl {
    font-size: 3rem;
  }
}
