/* PiratePots Custom CSS - Keyframes & Prose Readability */

/* Animation 1: Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.3) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #fbbf24 0%,
    #fef3c7 25%,
    #fbbf24 50%,
    #fef3c7 75%,
    #fbbf24 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Animation 2: Float Effect */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

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

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

/* Pulse Glow for CTAs */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.7);
  }
}

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

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

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

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

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

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

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

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

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

/* 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(251, 191, 36, 0.15);
}

/* Badge Styles */
.badge-jackpot {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-rtp {
  background: linear-gradient(135deg, #10b981, #059669);
}

.badge-bonus {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.badge-popular {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Tab Active State */
.tab-active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  font-weight: 600;
}

/* Gradient Backgrounds */
.bg-gradient-dark {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.bg-gradient-card {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

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

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

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

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

/* Focus States for Accessibility */
*:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* Smooth transitions */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero gradient overlay */
.hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.9) 50%,
    rgba(15, 23, 42, 0.95) 100%
  );
}

/* Gold border glow */
.border-glow {
  border: 2px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

/* Live bets table animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.4s ease-out;
}

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

.star-empty {
  color: #475569;
}
