/* =========================================
   Draca Casino – Custom CSS
   Neon Eclipse Theme
   ========================================= */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   SCROLLBAR STYLING
   ========================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0A0612;
}
::-webkit-scrollbar-thumb {
  background: #7B2FFF;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9D5FFF;
}

/* =========================================
   SELECTION
   ========================================= */
::selection {
  background: rgba(123, 47, 255, 0.35);
  color: #F0E6FF;
}

/* =========================================
   NEON ANIMATIONS
   ========================================= */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(123,47,255,0.4), 0 0 30px rgba(123,47,255,0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(123,47,255,0.9), 0 0 60px rgba(123,47,255,0.4);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px #7B2FFF, 0 0 20px #7B2FFF, 0 0 40px #7B2FFF;
  }
  20%, 24%, 55% {
    opacity: 0.8;
    text-shadow: none;
  }
}

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.animate-marquee {
  animation: marquee 30s linear infinite;
}

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

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

.animate-neon-flicker {
  animation: neonFlicker 3s infinite;
}

.animate-slide-in-up {
  animation: slideInUp 0.6s ease-out forwards;
}

/* Shimmer gold text */
.shimmer-gold {
  background: linear-gradient(90deg, #FFD700 0%, #FF8C00 25%, #FFD700 50%, #FF8C00 75%, #FFD700 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* =========================================
   NEON BORDER EFFECTS
   ========================================= */
.neon-border-violet {
  border: 1px solid #7B2FFF;
  box-shadow: 0 0 8px rgba(123,47,255,0.4), inset 0 0 8px rgba(123,47,255,0.1);
}

.neon-border-crimson {
  border: 1px solid #FF1F4B;
  box-shadow: 0 0 8px rgba(255,31,75,0.4), inset 0 0 8px rgba(255,31,75,0.1);
}

.neon-border-gold {
  border: 1px solid #FFD700;
  box-shadow: 0 0 8px rgba(255,215,0,0.4), inset 0 0 8px rgba(255,215,0,0.1);
}

/* =========================================
   MARQUEE WRAPPER
   ========================================= */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

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

/* =========================================
   BONUS BADGE
   ========================================= */
.bonus-badge {
  position: relative;
}

.bonus-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #7B2FFF, #FF1F4B, #7B2FFF);
  background-size: 200% 200%;
  animation: shimmer 3s linear infinite;
  z-index: -1;
  border-radius: 1rem;
}

/* =========================================
   PROVIDER WORD CLOUD
   ========================================= */
.providers-cloud {
  line-height: 1.8;
}

.provider-tag {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #7B2FFF;
}

.faq-btn {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-btn:hover {
  background-color: rgba(123, 47, 255, 0.08);
}

.faq-answer {
  transition: all 0.3s ease;
}

/* =========================================
   TABLE SCROLL UTILITY
   ========================================= */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* =========================================
   PROSE CASINO THEME
   ========================================= */
.prose-casino {
  color: #B89FD8;
  max-width: 100%;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #F0E6FF;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.6em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; color: #9D5FFF; }
.prose-casino h3 { font-size: 1.25rem; color: #FF4F6F; }

.prose-casino p {
  margin-bottom: 1em;
  line-height: 1.75;
}

.prose-casino a {
  color: #9D5FFF;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: #FFD700;
}

.prose-casino ul,
.prose-casino ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.prose-casino ul { list-style-type: disc; }
.prose-casino ol { list-style-type: decimal; }

.prose-casino li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.prose-casino strong,
.prose-casino b {
  color: #F0E6FF;
  font-weight: 700;
}

.prose-casino em,
.prose-casino i {
  color: #9D5FFF;
  font-style: italic;
}

.prose-casino blockquote {
  border-left: 4px solid #7B2FFF;
  background: #1A1030;
  padding: 0.75em 1em;
  margin: 1.5em 0;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #F0E6FF;
}

.prose-casino hr {
  border-color: #2A1A45;
  margin: 2em 0;
}

.prose-casino code {
  background: #1A1030;
  color: #9D5FFF;
  padding: 0.1em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #120B20;
  border: 1px solid #2A1A45;
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0;
}

.prose-casino th {
  background: #1A1030;
  color: #7B6A9B;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.65em 0.85em;
  border-bottom: 2px solid #2A1A45;
  text-align: left;
}

.prose-casino td {
  padding: 0.6em 0.85em;
  border-bottom: 1px solid #2A1A45;
  color: #B89FD8;
}

.prose-casino tr:hover td {
  background: rgba(123, 47, 255, 0.05);
}

.prose-casino .prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

.prose-casino .prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* =========================================
   PARALLAX HELPER
   ========================================= */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* =========================================
   STICKY HEADER
   ========================================= */
#site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.game-card:hover {
  transform: translateY(-4px);
}

/* =========================================
   BUTTON EFFECTS
   ========================================= */
.btn-neon-violet {
  background: linear-gradient(135deg, #7B2FFF, #4A1FA8);
  color: white;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.75rem 2rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-neon-violet:hover {
  box-shadow: 0 0 25px rgba(123,47,255,0.6);
  transform: translateY(-1px);
}

.btn-neon-crimson {
  background: linear-gradient(135deg, #FF1F4B, #A8001F);
  color: white;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.75rem 2rem;
  transition: all 0.2s ease;
}

.btn-neon-crimson:hover {
  box-shadow: 0 0 25px rgba(255,31,75,0.6);
  transform: translateY(-1px);
}

/* =========================================
   RESPONSIVE TABLES (mobile card layout)
   ========================================= */
@media (max-width: 1023px) {
  .responsive-table {
    display: block !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .responsive-table thead {
    display: none !important;
  }

  .responsive-table tbody {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
  }

  .responsive-table tr {
    display: block !important;
    background: #1A1030;
    border: 1px solid #2A1A45;
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .responsive-table tr:hover {
    background: #1A1030;
  }

  .responsive-table td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2A1A45;
    white-space: normal;
    text-align: right;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table td::before {
    content: attr(data-label);
    flex: 1;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7B6A9B;
    line-height: 1.3;
  }

  .responsive-table td:first-child {
    justify-content: flex-start;
    background: rgba(123, 47, 255, 0.08);
    font-size: 0.875rem;
    text-align: left;
  }

  .responsive-table td:first-child::before {
    display: none;
  }

  .responsive-table.payments-table td:first-child span {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1024px) {
  .responsive-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================
   RESPONSIVE FIXES
   ========================================= */
@media (max-width: 640px) {
  .bonus-badge {
    width: 90vw;
    max-width: 360px;
  }

  .prose-casino h1 { font-size: 1.6rem; }
  .prose-casino h2 { font-size: 1.3rem; }
  .prose-casino h3 { font-size: 1.1rem; }
}

/* =========================================
   NEON LIGHT TRAIL SVG DECORATIONS
   ========================================= */
.neon-trail {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  filter: blur(2px);
}

/* =========================================
   FOOTER GRADIENT LINE
   ========================================= */
.footer-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #7B2FFF, #FF1F4B, #7B2FFF, transparent);
}
