/* Custom animations and styling for Huippu Kasino */

/* Keyframe animations */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) rotate(5deg);
  }
  70% {
    transform: scale(0.9) rotate(-2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Parallax animations */
.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.parallax-float-delayed {
  animation: parallaxFloat 8s ease-in-out infinite;
  animation-delay: -2s;
}

/* Marquee animations */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 30s linear infinite;
}

/* 3D puffy button styles */
.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-3d:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.btn-3d:active {
  transform: translateY(-2px) scale(0.98);
}

/* Puffy card styles */
.card-puffy {
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff, inset 5px 5px 10px rgba(255, 255, 255, 0.5);
  transition: all 0.4s ease;
}

.card-puffy:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 25px 25px 80px #d9d9d9, -25px -25px 80px #ffffff, inset 8px 8px 15px rgba(255, 255, 255, 0.6);
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
  border: 4px solid #fff;
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.3);
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Game card hover effects */
.game-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.prose ul {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

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

/* Mobile burger menu animation */
.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

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

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #1d4ed8, #1e40af);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .card-puffy {
    border-radius: 16px;
    box-shadow: 10px 10px 30px #d9d9d9, -10px -10px 30px #ffffff;
  }

  .game-card:hover {
    transform: translateY(-8px) scale(1.02);
  }
}

/* Payment method icons styling */
.payment-icon {
  width: 48px;
  height: 32px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: all 0.3s ease;
}

.payment-icon:hover {
  filter: grayscale(0);
  transform: scale(1.1);
}

/* FAQ accordion styling */
.faq-item {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: #f8fafc;
  transform: translateX(4px);
}

/* Step indicator styling */
.step-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
