/* Custom animations and styling for Best Bingo Hugo Theme */

/* 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(255, 107, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 0, 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;
  }
}

@keyframes slideInUp {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Clash Cartoon Style Elements */
.clash-border {
  border: 4px solid #2d1b69;
  border-radius: 16px;
  position: relative;
}

.clash-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b00, #ffd700, #ff6b00);
  border-radius: 18px;
  z-index: -1;
}

.clash-button {
  background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
  border: 3px solid #2d1b69;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.clash-button::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;
}

.clash-button:hover::before {
  left: 100%;
}

.clash-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.clash-button-secondary {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  border: 3px solid #2d1b69;
}

.clash-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 3px solid #2d1b69;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.clash-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b00, #ffd700, #8b5cf6, #10b981);
}

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

.parallax-float:nth-child(2n) {
  animation-delay: -2s;
}

.parallax-float:nth-child(3n) {
  animation-delay: -4s;
}

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

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

/* Bonus Badge Styling */
.bonus-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border: 4px solid #2d1b69;
  border-radius: 20px;
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Game Card Hover Effects */
.game-card {
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.game-card:hover {
  transform: translateY(-8px) rotate(2deg);
  border-color: #ff6b00;
  box-shadow: 0 15px 35px rgba(255, 107, 0, 0.3);
}

/* Step Number Badges */
.step-badge {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border: 3px solid #2d1b69;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
  animation: bounceIn 0.6s ease-out;
}

/* Payment Method Icons */
.payment-icon {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  transition: all 0.3s ease;
}

.payment-icon:hover {
  border-color: #ff6b00;
  transform: scale(1.1);
}

/* Prose Styling for Readability */
.prose-content {
  line-height: 1.7;
  color: #374151;
}

.prose-content h2 {
  color: #2d1b69;
  font-weight: 800;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.prose-content h3 {
  color: #ff6b00;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

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

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

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

.prose-content li::marker {
  color: #ff6b00;
}

/* Table Styling */
.clash-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 3px solid #2d1b69;
  border-radius: 12px;
  overflow: hidden;
}

.clash-table th {
  background: linear-gradient(135deg, #2d1b69 0%, #4c1d95 100%);
  color: white;
  font-weight: 800;
  padding: 1rem;
  text-align: left;
}

.clash-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

.clash-table tr:nth-child(even) td {
  background: #f9fafb;
}

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

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

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Accordion */
.faq-item {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: #ff6b00;
}

.faq-question {
  background: #f9fafb;
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 700;
  color: #2d1b69;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f3f4f6;
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-item.active .faq-answer {
  padding: 1.25rem;
  max-height: 500px;
}

/* Responsive Design Helpers */
@media (max-width: 768px) {
  .clash-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .bonus-badge {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .step-badge {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Utility Classes */
.text-clash-primary {
  color: #2d1b69;
}
.text-clash-orange {
  color: #ff6b00;
}
.text-clash-purple {
  color: #8b5cf6;
}
.text-clash-green {
  color: #10b981;
}
.bg-clash-primary {
  background-color: #2d1b69;
}
.bg-clash-orange {
  background-color: #ff6b00;
}
.border-clash-primary {
  border-color: #2d1b69;
}
.border-clash-orange {
  border-color: #ff6b00;
}
