/* Custom animations and overrides for Monsieur Lapin Casino */

/* Paper texture background */
body {
  background-image: radial-gradient(circle at 20% 50%, rgba(120, 119, 109, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(120, 119, 109, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(120, 119, 109, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px, 70px 70px;
}

/* Whimsical hand-drawn borders */
.hand-drawn-border {
  position: relative;
  border: 3px solid #2d2d2d;
  border-radius: 15px;
}

.hand-drawn-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #2d2d2d;
  border-radius: 18px;
  opacity: 0.6;
  transform: rotate(0.5deg);
}

/* Parallax animation */
@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(5px) rotate(-0.5deg);
  }
}

.parallax-element {
  animation: parallax-float 6s ease-in-out infinite;
}

/* Marquee animation */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.marquee {
  animation: marquee 20s linear infinite;
}

/* Bonus badge wobble */
@keyframes bonus-wobble {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(2deg) scale(1.05);
  }
  75% {
    transform: rotate(-2deg) scale(1.05);
  }
}

.bonus-badge {
  animation: bonus-wobble 3s ease-in-out infinite;
}

/* Crayon stroke effect */
.crayon-stroke {
  position: relative;
  overflow: hidden;
}

.crayon-stroke::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 48%,
    rgba(45, 45, 45, 0.1) 49%,
    rgba(45, 45, 45, 0.1) 51%,
    transparent 52%
  );
  pointer-events: none;
}

/* Watercolor wash effect */
.watercolor-bg {
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.8) 0%,
    rgba(218, 165, 32, 0.6) 30%,
    rgba(255, 140, 0, 0.4) 70%,
    rgba(245, 245, 220, 0.9) 100%
  );
  position: relative;
}

.watercolor-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 140, 0, 0.3) 20%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(218, 165, 32, 0.2) 30%, transparent 60%);
  pointer-events: none;
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  transform-origin: center;
}

.game-card:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 10px 25px rgba(45, 45, 45, 0.3);
}

/* Button styles with hand-drawn feel */
.btn-primary {
  background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
  border: 3px solid #2d2d2d;
  border-radius: 25px;
  position: relative;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 3px solid #2d2d2d;
  border-radius: 25px;
  color: #2d2d2d;
  position: relative;
  transform: rotate(0.5deg);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #f5f5dc;
  transform: rotate(0deg) scale(1.05);
}

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

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

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

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

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

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

.prose li::marker {
  color: #ff8c00;
}

/* Rabbit mascot positioning */
.rabbit-mascot {
  width: 60px;
  height: 60px;
  position: absolute;
  z-index: 10;
}

/* Mobile navigation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Trustpilot stars */
.star-rating {
  color: #ff8c00;
  font-size: 1.2rem;
}

/* Calculator form styling */
.calculator-form {
  background: rgba(245, 245, 220, 0.9);
  border: 3px solid #2d2d2d;
  border-radius: 20px;
  position: relative;
}

.calculator-form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 2px solid #ff8c00;
  border-radius: 22px;
  opacity: 0.5;
  transform: rotate(-0.3deg);
}

/* Payment method icons */
.payment-icon {
  width: 60px;
  height: 40px;
  border: 2px solid #2d2d2d;
  border-radius: 8px;
  background: #ff8c00;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.payment-icon:hover {
  transform: scale(1.1) rotate(2deg);
  background: #ff8c00;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hand-drawn-border::before {
    transform: rotate(0.2deg);
  }

  .btn-primary,
  .btn-secondary {
    transform: rotate(0deg);
  }

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

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

/* FAQ accordion styling */
.faq-item {
  border: 2px solid #2d2d2d;
  border-radius: 15px;
  margin-bottom: 1rem;
  background: rgba(245, 245, 220, 0.8);
}

.faq-question {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 140, 0, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
}
