/* =============================================
   GO4CASINO - Custom CSS
   Momentum Dash Arena Flow Theme
   ============================================= */

/* ----- CSS Custom Properties ----- */
:root {
  --color-primary: #6366f1;
  --color-primary-glow: rgba(99, 102, 241, 0.4);
  --color-secondary: #f59e0b;
  --color-secondary-glow: rgba(245, 158, 11, 0.3);
  --color-accent: #10b981;
  --color-dark: #0f172a;
  --color-dark-lighter: #1e293b;
  --color-dark-card: #1a2332;
  --color-light: #f8fafc;
  --color-muted: #94a3b8;
  --color-danger: #ef4444;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --glow-soft: 0 0 2rem var(--color-primary-glow);
  --glow-arrow: 0 0 1.5rem var(--color-secondary-glow);
}

/* ----- Base Overrides ----- */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
  background: linear-gradient(180deg, var(--color-dark) 0%, #0c1220 100%);
  min-height: 100vh;
}

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1rem var(--color-primary-glow);
  }
  50% {
    box-shadow: 0 0 2.5rem var(--color-primary-glow), 0 0 3.5rem var(--color-secondary-glow);
  }
}

@keyframes arrow-flow {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

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

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

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes parallax-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(0.5rem, -0.5rem) rotate(1deg);
  }
  50% {
    transform: translate(0, -1rem) rotate(0deg);
  }
  75% {
    transform: translate(-0.5rem, -0.5rem) rotate(-1deg);
  }
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* ----- Animation Classes ----- */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

.animate-arrow-flow {
  animation: arrow-flow 12s linear infinite;
}

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

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

.animate-fade-in-up {
  animation: fade-in-up 0.8s var(--transition-smooth) forwards;
}

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

.animate-parallax-drift {
  animation: parallax-drift 20s ease-in-out infinite;
}

.animate-badge-pulse {
  animation: badge-pulse 2.5s ease-in-out infinite;
}

/* Staggered delays */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}

/* ----- SVG Arrow Patterns ----- */
.arrow-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.15;
}

.arrow-pattern svg {
  position: absolute;
  width: 3rem;
  height: 3rem;
  fill: var(--color-primary);
  filter: drop-shadow(0 0 0.5rem var(--color-primary-glow));
}

.arrow-row {
  display: flex;
  gap: 4rem;
  animation: arrow-flow 15s linear infinite;
}

.arrow-row:nth-child(2) {
  animation-delay: -5s;
  top: 33%;
}

.arrow-row:nth-child(3) {
  animation-delay: -10s;
  top: 66%;
}

/* ----- Glow Effects ----- */
.glow-soft {
  box-shadow: var(--glow-soft);
}

.glow-accent {
  box-shadow: 0 0 1.5rem rgba(16, 185, 129, 0.35);
}

.glow-secondary {
  box-shadow: var(--glow-arrow);
}

.text-glow {
  text-shadow: 0 0 1.5rem var(--color-primary-glow);
}

.hover-glow {
  transition: box-shadow 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth);
}

.hover-glow:hover {
  box-shadow: 0 0 2rem var(--color-primary-glow), 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
  transform: translateY(-0.25rem);
}

/* ----- Button Styles ----- */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
  color: var(--color-light);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  box-shadow: 0 0 1.5rem var(--color-primary-glow);
  transform: translateY(-0.125rem);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
  box-shadow: var(--glow-arrow);
}

/* ----- Card Styles ----- */
.card-dark {
  background: var(--color-dark-card);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 1rem;
  transition: all 0.4s var(--transition-smooth);
}

.card-dark:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4), 0 0 1rem var(--color-primary-glow);
}

/* ----- Bonus Badge ----- */
.bonus-badge {
  background: linear-gradient(145deg, var(--color-dark-card), var(--color-dark-lighter));
  border: 2px solid var(--color-secondary);
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-secondary-glow) 0%, transparent 70%);
  opacity: 0.3;
}

.bonus-amount {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-secondary);
  text-shadow: 0 0 1rem var(--color-secondary-glow);
}

/* ----- Game Cards ----- */
.game-card {
  flex: 0 0 auto;
  width: 16rem;
  background: var(--color-dark-card);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.game-card:hover {
  transform: translateY(-0.5rem) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4), 0 0 1.5rem var(--color-primary-glow);
}

.game-card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  transition: transform 0.5s var(--transition-smooth);
}

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

/* ----- Step Cards ----- */
.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-light);
  box-shadow: 0 0 1.5rem var(--color-primary-glow);
  position: relative;
}

.step-badge::after {
  content: "";
  position: absolute;
  inset: -0.25rem;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0.5;
}

.step-connector {
  position: absolute;
  top: 1.75rem;
  left: calc(50% + 2rem);
  width: calc(100% - 4rem);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* ----- Tables ----- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  background: var(--color-dark-card);
}

.payment-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
}

.payment-table th,
.payment-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--color-light);
}

.payment-table th {
  background: rgba(99, 102, 241, 0.15);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.payment-table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

/* ----- Provider Cloud ----- */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-dark-lighter);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 2rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  transition: all 0.3s var(--transition-smooth);
}

.provider-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-light);
  background: rgba(99, 102, 241, 0.15);
}

/* ----- Promo Cards ----- */
.promo-card {
  background: linear-gradient(145deg, var(--color-dark-card), var(--color-dark-lighter));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.promo-card:hover {
  transform: translateY(-0.375rem);
  border-color: var(--color-primary);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.3), 0 0 1rem var(--color-primary-glow);
}

/* ----- FAQ Accordion ----- */
.faq-item {
  background: var(--color-dark-card);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

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

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

.faq-question .icon {
  transition: transform 0.3s var(--transition-smooth);
  color: var(--color-primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--transition-smooth), padding 0.4s;
}

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

.faq-answer p {
  color: var(--color-muted);
  line-height: 1.7;
}

/* ----- Navigation ----- */
.nav-sticky {
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.nav-link {
  color: var(--color-light);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s var(--transition-smooth);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s var(--transition-smooth);
}

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

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  transform: translateX(100%);
  transition: transform 0.4s var(--transition-smooth);
  z-index: 50;
  padding-top: 5rem;
}

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

.burger {
  background: var(--color-dark);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

/* ----- Hero Section ----- */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
}

/* ----- Footer ----- */
.footer-dark {
  background: var(--color-dark);
  border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.age-badge {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--color-danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-danger);
  font-weight: 700;
  font-size: 0.875rem;
}

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

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-light);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
  position: relative;
}

.prose h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4rem;
  height: 2px;
  background: var(--color-primary);
}

.prose h3 {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  font-weight: 600;
  color: var(--color-light);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.3s;
}

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

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

.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: rgba(248, 250, 252, 0.85);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-primary);
  border-radius: 50%;
}

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

.prose ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  counter-increment: ol-counter;
  color: rgba(248, 250, 252, 0.85);
}

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

.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-dark-card);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: rgba(248, 250, 252, 0.9);
}

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

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

.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  background: var(--color-dark-card);
}

.prose table th,
.prose table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.prose table th {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.prose table td {
  color: rgba(248, 250, 252, 0.85);
}

.prose table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

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

.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
  margin: 2.5rem 0;
}

.prose code {
  background: var(--color-dark-lighter);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--color-secondary);
}

/* ----- Utility Classes ----- */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 1024px) {
  .step-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .bonus-badge {
    padding: 1.5rem;
  }

  .game-card {
    width: 14rem;
  }

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

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

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

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

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