/* SirBetalot Custom Styles */
/* 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 spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Shimmer effect for CTAs and highlights */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(250, 204, 21, 0.1) 0%,
    rgba(250, 204, 21, 0.4) 50%,
    rgba(250, 204, 21, 0.1) 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;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite linear;
}

/* Float animation for cards and images */
.float {
  animation: float 4s ease-in-out infinite;
}

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

.float-delay-2 {
  animation: float 4s ease-in-out infinite;
  animation-delay: 1s;
}

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

/* Pulse glow for primary 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;
}

/* Prose readability */
.prose-readable {
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

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

.prose-readable h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.prose-readable h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.prose-readable ul,
.prose-readable ol {
  margin-bottom: 1.25rem;
  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-popular {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

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

.badge-rtp {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

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

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

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

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

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

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

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

/* Quiz styles */
.quiz-option {
  transition: all 0.2s ease;
}

.quiz-option:hover {
  background-color: rgba(250, 204, 21, 0.1);
  border-color: #facc15;
}

.quiz-option.selected {
  background-color: rgba(250, 204, 21, 0.2);
  border-color: #facc15;
}

/* Table responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Review stars */
.star-filled {
  color: #facc15;
}

.star-empty {
  color: #404040;
}

/* Hero panel gradient border */
.hero-panel {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, #facc15 0%, #854d0e 50%, #facc15 100%);
  border-radius: inherit;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Bento grid layout */
.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
  }
  
  .bento-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .bento-wide {
    grid-column: span 2;
  }
  
  .bento-tall {
    grid-row: span 2;
  }
}

/* Live bet indicator */
.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-glow 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px #22c55e;
}

/* Winner card overlay */
.winner-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    transparent 100%
  );
}
