/* 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 cloverSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Maple Clover Theme Variables */
:root {
  --emerald-primary: #10b981;
  --emerald-dark: #047857;
  --ruby-accent: #dc2626;
  --gold-foil: #fbbf24;
  --wood-brown: #92400e;
  --clover-green: #16a34a;
  --maple-amber: #f59e0b;
}

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

.parallax-slow {
  animation: parallaxFloat 8s ease-in-out infinite reverse;
}

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

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

/* Clover decorations */
.clover-decoration {
  animation: cloverSpin 4s ease-in-out infinite;
  color: var(--clover-green);
}

/* Gold foil effect */
.gold-foil {
  background: linear-gradient(
    90deg,
    var(--gold-foil) 0%,
    #fde047 25%,
    var(--gold-foil) 50%,
    #fde047 75%,
    var(--gold-foil) 100%
  );
  background-size: 200% 100%;
  animation: goldShimmer 3s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Emerald-Ruby gradients */
.emerald-ruby-gradient {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--ruby-accent) 100%);
}

.emerald-ruby-gradient-soft {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}

/* Wood backdrop texture */
.wood-backdrop {
  background: linear-gradient(45deg, var(--wood-brown) 0%, #a16207 50%, var(--wood-brown) 100%);
  position: relative;
}

.wood-backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
}

/* Clover pattern background */
.clover-pattern {
  background-image: radial-gradient(circle at 25% 25%, var(--clover-green) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--emerald-primary) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Maple leaf SVG pattern */
.maple-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f59e0b' fill-opacity='0.1'%3E%3Cpath d='M30 5l5 10h10l-8 6 3 9-10-7-10 7 3-9-8-6h10z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

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

.prose h1,
.prose h2,
.prose h3 {
  color: var(--emerald-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 2rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

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

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

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

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

.prose th,
.prose td {
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background-color: var(--emerald-primary);
  color: white;
  font-weight: 600;
}

.prose tr:nth-child(even) {
  background-color: rgba(16, 185, 129, 0.05);
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, var(--gold-foil) 0%, var(--maple-amber) 100%);
  border: 3px solid var(--emerald-primary);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  transform: perspective(1000px) rotateX(5deg);
}

/* CTA button enhancements */
.cta-primary {
  background: linear-gradient(
    135deg,
    var(--emerald-primary) 0%,
    var(--ruby-accent)    100%
  );
  color: white; /* or whatever gives sufficient contrast */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.cta-secondary {
  border: 2px solid var(--emerald-primary);
  color: var(--emerald-primary);
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: var(--emerald-primary);
  color: white;
  transform: translateY(-1px);
}

/* Game card styling */
.game-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--gold-foil);
  box-shadow: 0 15px 30px rgba(251, 191, 36, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 1023px) {
  .prose h1 {
    font-size: 2rem;
  }

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

  .marquee-content {
    animation-duration: 20s;
  }
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--emerald-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-dark);
}
