/* ============================================
   REELDUCK CASINO - Custom CSS
   Duck Dash Pop NL Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #ff6b35;
  --color-primary-hover: #ff8c5a;
  --color-secondary: #ffd23f;
  --color-accent: #3cdfff;
  --color-dark: #1a1a2e;
  --color-darker: #0f0f1a;
  --color-surface: #252542;
  --color-surface-light: #2e2e4d;
  --color-text: #f8f8ff;
  --color-text-muted: #b8b8d0;
  --color-success: #4ade80;
  --color-warning: #fbbf24;
}

/* --- Global Overflow Control --- */
html {
  overflow-x: clip;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

/* --- Keyframe Animations --- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-1.25rem) rotate(2deg);
  }
}

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

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

@keyframes particle-float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

@keyframes duck-bounce {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  30% {
    transform: translateY(-0.625rem) scaleY(1.05);
  }
  50% {
    transform: translateY(0) scaleY(0.95);
  }
  70% {
    transform: translateY(-0.3125rem) scaleY(1.02);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    transform: translateY(1.875rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

/* --- Animation Utility Classes --- */
.animate-float {
  animation: float 4s ease-in-out 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-duck-bounce {
  animation: duck-bounce 2s ease-in-out infinite;
}
.animate-fade-up {
  animation: fade-up 0.6s ease-out forwards;
}
.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}
.animate-wave {
  animation: wave 2s ease-in-out infinite;
}

/* --- Particle System --- */
.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: particle-float linear infinite;
  pointer-events: none;
}

.particle:nth-child(odd) {
  background: var(--color-accent);
  width: 0.375rem;
  height: 0.375rem;
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  left: 20%;
  animation-duration: 10s;
  animation-delay: 1s;
}
.particle:nth-child(3) {
  left: 30%;
  animation-duration: 7s;
  animation-delay: 2s;
}
.particle:nth-child(4) {
  left: 40%;
  animation-duration: 9s;
  animation-delay: 0.5s;
}
.particle:nth-child(5) {
  left: 50%;
  animation-duration: 11s;
  animation-delay: 1.5s;
}
.particle:nth-child(6) {
  left: 60%;
  animation-duration: 8s;
  animation-delay: 2.5s;
}
.particle:nth-child(7) {
  left: 70%;
  animation-duration: 10s;
  animation-delay: 0.8s;
}
.particle:nth-child(8) {
  left: 80%;
  animation-duration: 7s;
  animation-delay: 1.8s;
}
.particle:nth-child(9) {
  left: 90%;
  animation-duration: 9s;
  animation-delay: 3s;
}
.particle:nth-child(10) {
  left: 15%;
  animation-duration: 12s;
  animation-delay: 0.3s;
}

/* --- Parallax Effects --- */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.parallax-slow {
  transform: translateY(calc(var(--scroll) * 0.1));
}
.parallax-medium {
  transform: translateY(calc(var(--scroll) * 0.3));
}
.parallax-fast {
  transform: translateY(calc(var(--scroll) * 0.5));
}

/* --- Button Styles --- */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: var(--color-text);
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.625rem 1.875rem rgba(255, 107, 53, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  border: 0.125rem solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 0.8125rem 1.875rem;
  border-radius: 0.625rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* --- Card Styles --- */
.card-glow {
  background: var(--color-surface);
  border-radius: 1rem;
  border: 0.0625rem solid rgba(255, 210, 63, 0.2);
  transition: all 0.3s ease;
}

.card-glow:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 1.875rem rgba(255, 210, 63, 0.15);
  transform: translateY(-0.3125rem);
}

/* --- Bonus Badge --- */
.bonus-badge {
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-light));
  border: 0.125rem solid var(--color-secondary);
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--color-secondary), transparent);
  animation: spin-slow 8s linear infinite;
  opacity: 0.1;
}

/* --- Navigation --- */
.nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0.125rem;
  background: var(--color-secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

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

/* --- Mobile Menu --- */
.burger-menu {
  background: var(--color-dark);
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  z-index: 100;
}

.burger-line {
  display: block;
  width: 1.5rem;
  height: 0.1875rem;
  background: var(--color-text);
  margin: 0.3125rem 0;
  border-radius: 0.125rem;
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

/* --- Table Responsive --- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 1.5rem 0;
}

.table-responsive table {
  min-width: 100%;
  border-collapse: collapse;
}

/* --- Game Cards --- */
.game-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--color-surface);
  transition: all 0.3s ease;
}

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

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

.game-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(15, 15, 26, 0.95));
}

/* --- Step Cards --- */
.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  box-shadow: 0 0.5rem 1.5rem rgba(255, 107, 53, 0.3);
}

/* --- Promo Cards --- */
.promo-card {
  background: linear-gradient(145deg, var(--color-surface), var(--color-surface-light));
  border-radius: 1rem;
  padding: 1.75rem;
  border: 0.0625rem solid rgba(60, 223, 255, 0.2);
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0.5rem 2rem rgba(60, 223, 255, 0.15);
}

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--color-surface);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 0.0625rem solid rgba(255, 210, 63, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--color-secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

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

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

/* --- Provider Cloud --- */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-surface-light);
  border-radius: 2rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: var(--color-primary);
  color: var(--color-text);
}

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

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

/* --- Age Badge --- */
.age-badge {
  width: 3rem;
  height: 3rem;
  border: 0.1875rem solid var(--color-warning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-warning);
  font-size: 0.875rem;
}

/* ============================================
   PROSE STYLING
   ============================================ */

.prose {
  color: var(--color-text);
  max-width: 100%;
  line-height: 1.8;
  font-size: 1rem;
}

/* --- Headings --- */
.prose h2 {
  color: var(--color-secondary);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 0.125rem solid rgba(255, 210, 63, 0.3);
  line-height: 1.3;
}

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

.prose h4 {
  color: var(--color-primary);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* --- Paragraphs --- */
.prose p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  font-size: clamp(0.9375rem, 2vw, 1rem);
}

.prose p:first-of-type {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--color-text);
}

/* --- Links --- */
.prose a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 210, 63, 0.4);
  text-underline-offset: 0.1875rem;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

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

.prose ul {
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

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

.prose ol {
  list-style: none;
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.75rem;
  counter-increment: prose-counter;
  color: var(--color-text-muted);
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  width: 1.625rem;
  height: 1.625rem;
  background: var(--color-primary);
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Tables --- */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(255, 210, 63, 0.2);
}

.prose table {
  width: 100%;
  min-width: 25rem;
  border-collapse: collapse;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
}

.prose thead {
  background: var(--color-surface-light);
}

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

.prose td {
  padding: 0.875rem 1rem;
  color: var(--color-text-muted);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.05);
}

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

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

/* --- Blockquotes --- */
.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-light));
  border-left: 0.25rem solid var(--color-secondary);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: var(--color-text);
  position: relative;
}

.prose blockquote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 2.5rem;
  color: var(--color-secondary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.prose blockquote p {
  margin-bottom: 0;
  color: var(--color-text);
}

/* --- Code --- */
.prose code {
  background: var(--color-surface-light);
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--color-accent);
  font-family: "Monaco", "Consolas", monospace;
}

.prose pre {
  background: var(--color-darker);
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(60, 223, 255, 0.2);
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: var(--color-text);
}

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

/* --- Horizontal Rule --- */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  margin: 2.5rem 0;
}

/* --- Strong & Em --- */
.prose strong {
  color: var(--color-text);
  font-weight: 700;
}

.prose em {
  color: var(--color-accent);
}

/* --- Definition Lists --- */
.prose dl {
  margin: 1.5rem 0;
}

.prose dt {
  color: var(--color-secondary);
  font-weight: 600;
  margin-top: 1rem;
}

.prose dd {
  color: var(--color-text-muted);
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 48rem) {
  .prose {
    font-size: 0.9375rem;
  }

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

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

  .prose blockquote {
    padding: 1rem 1rem 1rem 1.5rem;
  }
}

/* --- SVG Decorations --- */
.svg-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.duck-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%3Cpath d='M30 15c-3 0-6 2-6 5s1 4 3 5c-2 1-5 3-5 7s4 8 8 8 8-4 8-8-3-6-5-7c2-1 3-2 3-5s-3-5-6-5z' fill='%23FFD23F' fill-opacity='0.03'/%3E%3C/svg%3E");
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-surface-light);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- Focus States --- */
*:focus-visible {
  outline: 0.125rem solid var(--color-secondary);
  outline-offset: 0.125rem;
}

/* --- Selection --- */
::selection {
  background: var(--color-secondary);
  color: var(--color-dark);
}
