/* ========================================
   GAMBANA CASINO - CUSTOM STYLES
   Gambawave Crest Theme
   ======================================== */

/* ----------------------------------------
   ROOT VARIABLES
   ---------------------------------------- */
:root {
  --gamba-deep: #0a0e1a;
  --gamba-navy: #0f172a;
  --gamba-indigo: #1e1b4b;
  --gamba-purple: #6366f1;
  --gamba-violet: #8b5cf6;
  --gamba-cyan: #06b6d4;
  --gamba-teal: #14b8a6;
  --gamba-gold: #f59e0b;
  --gamba-cream: #fef3c7;
}

/* ----------------------------------------
   GLOBAL OVERFLOW CONTROL
   ---------------------------------------- */
html,
body {
  overflow-x: clip;
  overflow-y: auto;
}

/* ----------------------------------------
   PARTICLE ANIMATIONS
   ---------------------------------------- */
.particle {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: radial-gradient(circle, var(--gamba-purple), transparent);
  border-radius: 50%;
  opacity: 0.4;
  animation: floatParticle 12s ease-in-out infinite;
}

@keyframes floatParticle {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-2rem) translateX(1rem) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-1rem) translateX(-0.5rem) scale(0.8);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-3rem) translateX(0.75rem) scale(1.1);
    opacity: 0.5;
  }
}

/* ----------------------------------------
   WAVE PATH ANIMATIONS
   ---------------------------------------- */
.wave-path-1 {
  animation: waveFlow1 8s ease-in-out infinite;
}

.wave-path-2 {
  animation: waveFlow2 10s ease-in-out infinite;
}

.wave-path-3 {
  animation: waveFlow3 12s ease-in-out infinite;
}

@keyframes waveFlow1 {
  0%,
  100% {
    d: path("M0,160 Q360,80 720,160 T1440,160");
  }
  50% {
    d: path("M0,160 Q360,200 720,160 T1440,160");
  }
}

@keyframes waveFlow2 {
  0%,
  100% {
    d: path("M0,200 Q360,120 720,200 T1440,200");
  }
  50% {
    d: path("M0,200 Q360,240 720,200 T1440,200");
  }
}

@keyframes waveFlow3 {
  0%,
  100% {
    d: path("M0,240 Q360,160 720,240 T1440,240");
  }
  50% {
    d: path("M0,240 Q360,280 720,240 T1440,240");
  }
}

/* ----------------------------------------
   MARQUEE ANIMATION
   ---------------------------------------- */
.marquee-container {
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

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

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

/* Duplicate items for seamless loop */
.marquee-track::after {
  content: "";
  display: inline-flex;
}

/* ----------------------------------------
   NAVIGATION STYLES
   ---------------------------------------- */
.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: linear-gradient(to right, var(--gamba-purple), var(--gamba-cyan));
  transition: width 0.3s ease;
}

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

/* ----------------------------------------
   BURGER MENU ANIMATION
   ---------------------------------------- */
.burger-line {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  background: white;
  margin: 0.25rem 0;
  transition: all 0.3s ease;
  border-radius: 0.125rem;
}

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

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

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

/* ----------------------------------------
   BONUS BADGE GLOW
   ---------------------------------------- */
.bonus-badge {
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(139, 92, 246, 0.5);
  }
}

/* ----------------------------------------
   BUTTON HOVER EFFECTS
   ---------------------------------------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.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%;
}

/* ----------------------------------------
   GAME CARD HOVER
   ---------------------------------------- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.25rem 2.5rem rgba(99, 102, 241, 0.2);
}

/* ----------------------------------------
   STEP CARD ANIMATION
   ---------------------------------------- */
.step-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ----------------------------------------
   PROMO CARD EFFECTS
   ---------------------------------------- */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 2rem rgba(99, 102, 241, 0.15);
}

/* ----------------------------------------
   FAQ ANIMATIONS
   ---------------------------------------- */
.faq-item {
  transition: border-color 0.3s ease;
}

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

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

/* ----------------------------------------
   TABLE RESPONSIVE WRAPPER
   ---------------------------------------- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* ----------------------------------------
   REVIEW SCROLL CONTAINER
   ---------------------------------------- */
.review-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gamba-purple) var(--gamba-indigo);
}

.review-scroll::-webkit-scrollbar {
  height: 0.5rem;
}

.review-scroll::-webkit-scrollbar-track {
  background: var(--gamba-indigo);
  border-radius: 0.25rem;
}

.review-scroll::-webkit-scrollbar-thumb {
  background: var(--gamba-purple);
  border-radius: 0.25rem;
}

/* ========================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ======================================== */

.prose {
  color: #d1d5db;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 0.125rem solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(to right, var(--gamba-purple), var(--gamba-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose h3 {
  color: #f3f4f6;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h4 {
  color: #e5e7eb;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.5em;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

/* Links */
.prose a {
  color: var(--gamba-cyan);
  text-decoration: none;
  border-bottom: 0.0625rem solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.prose a:hover {
  color: var(--gamba-teal);
  border-bottom-color: var(--gamba-teal);
}

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

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

.prose ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 0.5em;
  height: 0.5em;
  background: linear-gradient(135deg, var(--gamba-purple), var(--gamba-cyan));
  border-radius: 50%;
}

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

.prose ol li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
  counter-increment: prose-counter;
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  background: linear-gradient(135deg, var(--gamba-purple), var(--gamba-violet));
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  font-weight: 600;
  color: white;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
}

.prose thead {
  background: rgba(99, 102, 241, 0.2);
}

.prose th {
  padding: 1em;
  text-align: left;
  font-weight: 600;
  color: #f3f4f6;
  border-bottom: 0.125rem solid var(--gamba-purple);
}

.prose td {
  padding: 1em;
  border-bottom: 0.0625rem solid rgba(99, 102, 241, 0.2);
  color: #d1d5db;
}

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

/* Blockquotes */
.prose blockquote {
  margin: 2em 0;
  padding: 1.5em 1.5em 1.5em 2em;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-left: 0.25rem solid var(--gamba-purple);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #e5e7eb;
}

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

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

/* Code */
.prose code {
  background: rgba(99, 102, 241, 0.2);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--gamba-cyan);
}

.prose pre {
  background: var(--gamba-indigo);
  padding: 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: #e5e7eb;
}

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(to right, transparent, var(--gamba-purple), var(--gamba-cyan), transparent);
  margin: 3em 0;
}

/* Strong and Emphasis */
.prose strong {
  color: #ffffff;
  font-weight: 600;
}

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

/* Responsive Typography Adjustments */
@media (max-width: 640px) {
  .prose {
    line-height: 1.7;
  }

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

  .prose ul li,
  .prose ol li {
    padding-left: 1.25em;
  }

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

/* ----------------------------------------
   ADDITIONAL UTILITY CLASSES
   ---------------------------------------- */

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

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 0.125rem solid var(--gamba-cyan);
  outline-offset: 0.125rem;
}

/* Selection highlight */
::selection {
  background: rgba(99, 102, 241, 0.4);
  color: white;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
