/* Crazytower Casino - Custom Styles */
/* Animations: 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, 221, 0, 0.15) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #ffd700 0%,
    #fff176 25%,
    #ffd700 50%,
    #fff176 75%,
    #ffd700 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  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 floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

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

.float-slow {
  animation: floatSlow 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;
}

/* Glow Effects */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.2);
  }
}

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

/* Button Hover Effects */
.cta-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Card Hover Effects */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.15);
}

/* Prose Readability */
.prose-custom {
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.prose-custom p {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

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

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

.prose-custom li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.prose-custom a {
  color: #ffd700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.prose-custom a:hover {
  color: #fff176;
}

/* Badge Styles */
.badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-jackpot {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
}

.badge-high-rtp {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
}

.badge-popular {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
}

.badge-bonus-buy {
  background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
  color: #1a1a1a;
}

/* Tab Styles */
.tab-btn {
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  border-bottom-color: #ffd700;
  color: #ffd700;
}

.tab-btn:hover:not(.active) {
  color: #fff176;
}

/* Smooth Scroll Offset for Fixed Header */
html {
  scroll-padding-top: 80px;
}

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

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

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

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

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Star Rating */
.star-filled {
  color: #ffd700;
}

.star-empty {
  color: #444;
}

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

.quiz-option:hover {
  background-color: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
}

.quiz-option.selected {
  background-color: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

/* Gradient Backgrounds */
.gradient-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

.gradient-dark {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* Glass Effect */
.glass {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}
