/* PiratePots Custom CSS */
/* Animation Styles: Shimmer + Float */

/* Shimmer Animation */
@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 ease-in-out infinite;
}

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

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

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

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

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

.float-delay-1 {
  animation-delay: 0.5s;
}

.float-delay-2 {
  animation-delay: 1s;
}

.float-delay-3 {
  animation-delay: 1.5s;
}

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

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

/* Subtle border glow */
@keyframes border-glow {
  0%, 100% {
    border-color: rgba(251, 191, 36, 0.3);
  }
  50% {
    border-color: rgba(251, 191, 36, 0.7);
  }
}

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

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

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

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

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

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

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

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

.prose 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);
}

/* Tab styles */
.tab-btn {
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Badge styles */
.badge-rtp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.badge-jackpot {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

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

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

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

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

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

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

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 400px;
}

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

.star-empty {
  color: #374151;
}

/* Bento grid */
.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 auto auto;
  }
  
  .bento-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .bento-wide {
    grid-column: span 2;
  }
  
  .bento-tall {
    grid-row: span 2;
  }
}

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

.quiz-option:hover {
  background-color: rgba(251, 191, 36, 0.1);
  border-color: #fbbf24;
}

.quiz-option.selected {
  background-color: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
}

/* Win/Loss indicators */
.bet-win {
  color: #22c55e;
}

.bet-loss {
  color: #ef4444;
}

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

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

/* Selection styling */
::selection {
  background-color: rgba(251, 191, 36, 0.3);
  color: #fff;
}
