/* ==========================================================================
   ReelDuck Casino - Duck Dash Pop Theme
   Custom CSS: Keyframes, Animations & Prose Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --duck-yellow: #ffd93d;
  --duck-orange: #ff6b35;
  --duck-pink: #ff61d8;
  --duck-blue: #00d4ff;
  --duck-green: #7ed957;
  --duck-purple: #9d4edd;
  --duck-dark: #1a1a2e;
  --duck-darker: #0f0f1a;
  --duck-light: #fafafa;
  --duck-gray: #2d2d44;
  --duck-text-muted: #a0a0b8;
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes bounce-gentle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

@keyframes bounce-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-0.75rem) rotate(2deg);
  }
  66% {
    transform: translateY(-0.25rem) rotate(-2deg);
  }
}

@keyframes particle-rise {
  0% {
    opacity: 0;
    transform: translateY(100%) scale(0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

@keyframes particle-drift {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(1rem) translateY(-2rem);
  }
  50% {
    transform: translateX(-0.5rem) translateY(-4rem);
  }
  75% {
    transform: translateX(1.5rem) translateY(-6rem);
  }
  100% {
    transform: translateX(0) translateY(-8rem);
  }
}

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(255, 217, 61, 0.4);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(255, 217, 61, 0.8);
  }
}

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

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Animation Utility Classes
   -------------------------------------------------------------------------- */
.animate-bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}

.animate-bounce-pop {
  animation: bounce-pop 1.5s ease-in-out infinite;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-particle {
  animation: particle-rise 4s ease-out infinite;
}

.animate-particle-drift {
  animation: particle-drift 6s ease-in-out infinite;
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-wiggle {
  animation: wiggle 0.5s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}

/* --------------------------------------------------------------------------
   Particle System
   -------------------------------------------------------------------------- */
.particle-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
}

.particle:nth-child(1) {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--duck-yellow);
  left: 10%;
  animation: particle-rise 5s ease-out infinite;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--duck-pink);
  left: 25%;
  animation: particle-rise 6s ease-out infinite;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  width: 0.625rem;
  height: 0.625rem;
  background: var(--duck-blue);
  left: 40%;
  animation: particle-rise 4.5s ease-out infinite;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  width: 0.25rem;
  height: 0.25rem;
  background: var(--duck-green);
  left: 55%;
  animation: particle-rise 5.5s ease-out infinite;
  animation-delay: 0.5s;
}

.particle:nth-child(5) {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--duck-orange);
  left: 70%;
  animation: particle-rise 4s ease-out infinite;
  animation-delay: 1.5s;
}

.particle:nth-child(6) {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--duck-purple);
  left: 85%;
  animation: particle-rise 6.5s ease-out infinite;
  animation-delay: 2.5s;
}

.particle:nth-child(7) {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--duck-yellow);
  left: 15%;
  animation: particle-rise 5.2s ease-out infinite;
  animation-delay: 3s;
}

.particle:nth-child(8) {
  width: 0.25rem;
  height: 0.25rem;
  background: var(--duck-pink);
  left: 95%;
  animation: particle-rise 4.8s ease-out infinite;
  animation-delay: 0.8s;
}

/* --------------------------------------------------------------------------
   Component Overrides
   -------------------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(135deg, var(--duck-yellow) 0%, var(--duck-orange) 100%);
  color: var(--duck-dark);
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-0.125rem) scale(1.02);
  box-shadow: 0 0.625rem 2.5rem rgba(255, 217, 61, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 0.125rem solid var(--duck-yellow);
  color: var(--duck-yellow);
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--duck-yellow);
  color: var(--duck-dark);
  transform: scale(1.02);
}

.card-pop {
  background: var(--duck-gray);
  border-radius: 1.5rem;
  border: 0.0625rem solid rgba(255, 217, 61, 0.2);
  transition: all 0.3s ease;
}

.card-pop:hover {
  transform: translateY(-0.25rem);
  border-color: var(--duck-yellow);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
}

.badge-pop {
  background: linear-gradient(135deg, var(--duck-pink) 0%, var(--duck-purple) 100%);
  color: white;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
}

.number-badge {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--duck-yellow) 0%, var(--duck-orange) 100%);
  color: var(--duck-dark);
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.marquee-content {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Table Responsive Wrapper
   -------------------------------------------------------------------------- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 1rem;
}

/* --------------------------------------------------------------------------
   Prose Styling for Markdown Content
   -------------------------------------------------------------------------- */
.prose {
  color: var(--duck-light);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: var(--duck-yellow);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.75rem;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--duck-yellow), var(--duck-orange));
  border-radius: 0.125rem;
}

.prose h3 {
  color: var(--duck-blue);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose h4 {
  color: var(--duck-pink);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: rgba(250, 250, 250, 0.9);
}

.prose a {
  color: var(--duck-yellow);
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--duck-orange);
}

.prose strong {
  color: var(--duck-light);
  font-weight: 700;
}

.prose em {
  font-style: italic;
  color: rgba(250, 250, 250, 0.85);
}

.prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: rgba(250, 250, 250, 0.9);
}

.prose ul li::before {
  content: "🦆";
  position: absolute;
  left: 0;
  font-size: 0.875rem;
}

.prose ol {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
  counter-reset: item;
}

.prose ol li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  counter-increment: item;
  color: rgba(250, 250, 250, 0.9);
}

.prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-orange));
  color: var(--duck-dark);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.prose thead {
  background: linear-gradient(135deg, var(--duck-gray) 0%, rgba(45, 45, 68, 0.8) 100%);
}

.prose th {
  color: var(--duck-yellow);
  font-weight: 700;
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 0.125rem solid var(--duck-yellow);
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1.25rem;
  border-bottom: 0.0625rem solid rgba(255, 217, 61, 0.15);
  color: rgba(250, 250, 250, 0.85);
}

.prose tbody tr {
  transition: background 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(255, 217, 61, 0.05);
}

.prose blockquote {
  border-left: 0.25rem solid var(--duck-yellow);
  background: rgba(255, 217, 61, 0.08);
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0 1rem 1rem 0;
  font-style: italic;
  color: rgba(250, 250, 250, 0.9);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  background: var(--duck-gray);
  color: var(--duck-pink);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-family: "Fira Code", monospace;
}

.prose pre {
  background: var(--duck-darker);
  border: 0.0625rem solid rgba(255, 217, 61, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: none;
  padding: 0;
  color: var(--duck-light);
}

.prose hr {
  border: none;
  height: 0.125rem;
  background: linear-gradient(90deg, transparent, var(--duck-yellow), transparent);
  margin: 2.5rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
    line-height: 1.7;
  }

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

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

  .prose th,
  .prose td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .number-badge {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Navigation Overrides
   -------------------------------------------------------------------------- */
.nav-link {
  position: relative;
  color: var(--duck-light);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: var(--duck-yellow);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--duck-yellow);
}

.nav-link:hover::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section Patterns
   -------------------------------------------------------------------------- */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 20% 80%, var(--duck-yellow) 0.25rem, transparent 0.25rem),
    radial-gradient(circle at 80% 20%, var(--duck-pink) 0.1875rem, transparent 0.1875rem),
    radial-gradient(circle at 40% 40%, var(--duck-blue) 0.125rem, transparent 0.125rem),
    radial-gradient(circle at 60% 70%, var(--duck-orange) 0.25rem, transparent 0.25rem);
  background-size: 12.5rem 12.5rem;
}

/* --------------------------------------------------------------------------
   Decorative Shapes
   -------------------------------------------------------------------------- */
.shape-circle {
  border-radius: 50%;
}

.shape-blob {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.gradient-yellow-orange {
  background: linear-gradient(135deg, var(--duck-yellow) 0%, var(--duck-orange) 100%);
}

.gradient-pink-purple {
  background: linear-gradient(135deg, var(--duck-pink) 0%, var(--duck-purple) 100%);
}

.gradient-blue-green {
  background: linear-gradient(135deg, var(--duck-blue) 0%, var(--duck-green) 100%);
}

/* --------------------------------------------------------------------------
   Scrollbar Styling
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: var(--duck-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--duck-gray);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--duck-yellow);
}

/* --------------------------------------------------------------------------
   Game Card Styles
   -------------------------------------------------------------------------- */
.game-card {
  flex-shrink: 0;
  width: 11.25rem;
  transition: transform 0.3s ease;
}

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

.game-card img {
  border-radius: 1rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-item {
  border: 0.0625rem solid rgba(255, 217, 61, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--duck-yellow);
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: var(--duck-gray);
  color: var(--duck-light);
  font-weight: 600;
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(45, 45, 68, 0.5);
}

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

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Footer Styling
   -------------------------------------------------------------------------- */
.footer-link {
  color: var(--duck-text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--duck-yellow);
}

/* --------------------------------------------------------------------------
   Provider Cloud
   -------------------------------------------------------------------------- */
.provider-tag {
  background: var(--duck-gray);
  color: var(--duck-light);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 0.0625rem solid rgba(255, 217, 61, 0.2);
  transition: all 0.2s ease;
}

.provider-tag:hover {
  border-color: var(--duck-yellow);
  color: var(--duck-yellow);
}
