/* Custom animations and styling for Pistolo Casino Theme */

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

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

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

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Parallax effect */
.parallax-layer {
  transition: transform 0.3s ease-out;
}

/* Marquee animation */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  padding-right: 100%;
}

.marquee:hover .marquee-content {
  animation-play-state: paused;
}

/* Floating elements */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse glow for CTAs */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Slide up on scroll */
.slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

/* Tilt effect */
.tilt-effect {
  animation: tilt 4s ease-in-out infinite;
}

/* Prose styling for readability */
.prose {
  color: #e5e7eb;
  line-height: 1.75;
}

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

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

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

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

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

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

.prose a {
  color: #60a5fa;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #93c5fd;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th {
  background: rgba(59, 130, 246, 0.2);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.prose td {
  padding: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.prose tr:nth-child(even) {
  background: rgba(30, 58, 138, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #60a5fa;
}

/* Nerf/Toy Story themed elements */
.nerf-bullet {
  position: relative;
}

.nerf-bullet::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px #fbbf24;
}

/* Island effect for bottom menu */
.island {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(29, 78, 216, 0.95));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 130, 246, 0.2);
}

/* Game card hover effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.game-card:hover::before {
  left: 100%;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 3px solid #fff;
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
  position: relative;
}

.bonus-badge::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(45deg, #fbbf24, #f59e0b, #fbbf24);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Trustpilot star styling */
.star-rating {
  color: #00b67a;
  filter: drop-shadow(0 2px 4px rgba(0, 182, 122, 0.3));
}

/* Calculator styling */
.calculator-input {
  background: rgba(30, 58, 138, 0.5);
  border: 2px solid rgba(59, 130, 246, 0.5);
  color: #fff;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: border-color 0.3s;
}

.calculator-input:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* Responsive utilities */
@media (max-width: 1024px) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    font-size: 1.75rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }
}

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

/* Loading animation for images */
img {
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}
