/* Custom animations and overrides */
@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 cloverShimmer {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.6);
  }
}

@keyframes coinFlip {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Parallax elements */
.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 {
  overflow: hidden;
  white-space: nowrap;
}

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

/* Clover and coin effects */
.clover-shimmer {
  animation: cloverShimmer 3s ease-in-out infinite;
}

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

.coin-flip {
  animation: coinFlip 4s ease-in-out infinite;
}

/* Custom gradient backgrounds */
.emerald-gradient {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #fbbf24 100%);
}

.clover-gradient {
  background: linear-gradient(45deg, #065f46 0%, #10b981 25%, #34d399 50%, #fbbf24 75%, #f59e0b 100%);
}

.neon-green-glow {
  background: linear-gradient(135deg, #22c55e 0%, #84cc16 100%);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

/* Enhanced prose styling for markdown content readability */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #374151;
  font-size: 1rem;
}

.prose h2 {
  color: #065f46;
  font-weight: 700;
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  border-bottom: 3px solid #10b981;
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: #047857;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.prose ul li {
  list-style-type: none;
  position: relative;
}

.prose ul li::before {
  content: "🍀";
  position: absolute;
  left: -1.5rem;
  color: #10b981;
}

.prose ol li {
  list-style-type: decimal;
  color: #065f46;
  font-weight: 500;
}

.prose blockquote {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #065f46;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table thead {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
  color: white;
}

.prose table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #10b981;
}

.prose table td {
  padding: 1rem;
  border: 1px solid #d1d5db;
  background: white;
}

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

.prose table tbody tr:hover {
  background: #ecfdf5;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.prose a {
  color: #10b981;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #065f46;
}

/* Responsive prose adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9rem;
  }

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

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

  .prose table {
    font-size: 0.875rem;
  }

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

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border: 2px solid #10b981;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: 2px solid #fbbf24;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

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

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

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

body {
  overflow: auto;
}

/* Responsive utilities */
@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}

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

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}

/* Payment method icons */
.payment-icon {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.payment-icon:hover {
  filter: grayscale(0%);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #d1d5db;
}

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

.faq-answer.active {
  max-height: 200px;
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #fbbf24 100%);
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Step guide styling */
.step-badge {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Provider cloud styling */
.provider-tag {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #10b981;
  color: #065f46;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  transform: translateY(-2px);
}
