/*
 ================================================================
  BetSider Casino – Custom CSS
  Theme: Élégance Royale (Champagne Gold + Deep Navy)
  Target: Hugo v0.128+ | Mobile-First
 ================================================================
*/

/* ── Reset & Base ── */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  word-break: break-word;
  overflow-x: hidden;
  background-color: #090e24;
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar Styling ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090e24;
}
::-webkit-scrollbar-thumb {
  background: #c8962b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e8a800;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  word-break: break-word;
}

/* ── Utility ── */
.bg-navy-750 {
  background-color: #162040;
}

/* ── Table Overflow ── */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  word-break: normal;
}

/* ── Prose Casino (single pages) ── */
.prose-casino {
  color: #cbd5e1;
  max-width: 72ch;
  line-height: 1.8;
  word-break: break-word;
}

.prose-casino h1 {
  color: #f3c53a;
  font-size: 2rem;
  font-family: Georgia, serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.prose-casino h2 {
  color: #f3c53a;
  font-size: 1.5rem;
  font-family: Georgia, serif;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #1e3368;
  padding-bottom: 0.4rem;
}

.prose-casino h3 {
  color: #e8c87f;
  font-size: 1.2rem;
  font-family: Georgia, serif;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  margin-bottom: 1.2rem;
  color: #cbd5e1;
}

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

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

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

.prose-casino ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.prose-casino ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #e8a800;
  font-size: 0.6rem;
  top: 0.35em;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.prose-casino ol li {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.prose-casino blockquote {
  border-left: 4px solid #e8a800;
  background: #111d45;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  color: #e8c87f;
  font-style: italic;
}

.prose-casino strong {
  color: #f9f0da;
  font-weight: 700;
}

.prose-casino em {
  color: #e8c87f;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #1e3368;
  margin: 2rem 0;
}

/* Prose Table Scroll */
.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;
}

.prose-casino table {
  font-size: 0.875rem;
  border-collapse: collapse;
}

.prose-casino table th {
  background: #1e3368;
  color: #f3c53a;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 700;
  border: 1px solid #2e4a8a;
}

.prose-casino table td {
  padding: 0.6rem 1rem;
  border: 1px solid #1e3368;
  color: #cbd5e1;
}

.prose-casino table tr:nth-child(even) {
  background: #111d45;
}

.prose-casino table tr:hover {
  background: #162040;
}

/* ── Animations ── */

/* Sparkle overlay */
@keyframes sparkle-float {
  0%, 100% { opacity: 0.2; transform: translateY(0) scale(1); }
  50% { opacity: 0.7; transform: translateY(-20px) scale(1.3); }
}

.sparkle-overlay {
  background-image:
    radial-gradient(circle, rgba(232, 168, 0, 0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(248, 228, 160, 0.15) 1px, transparent 1px),
    radial-gradient(circle, rgba(200, 150, 43, 0.2) 1px, transparent 1px);
  background-size: 120px 120px, 80px 80px, 60px 60px;
  background-position: 0 0, 40px 40px, 20px 60px;
  animation: sparkle-float 8s ease-in-out infinite;
}

/* Bonus glow pulse */
@keyframes bonus-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(232, 168, 0, 0.3),
      0 0 60px rgba(232, 168, 0, 0.1);
  }
  50% {
    box-shadow:
      0 0 40px rgba(232, 168, 0, 0.6),
      0 0 100px rgba(232, 168, 0, 0.25),
      0 0 160px rgba(232, 168, 0, 0.1);
  }
}

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

/* Scroll bounce */
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-bounce {
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* Step badge pulse */
@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 168, 0, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(232, 168, 0, 0); }
}

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

/* Card hover lift */
.game-card,
.promo-card,
.review-card,
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(232, 168, 0, 0.15);
}

.promo-card:hover,
.review-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(232, 168, 0, 0.1);
}

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

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

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

/* Provider word cloud */
.provider-cloud {
  line-height: 2;
}

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

.provider-tag:hover {
  color: #f3c53a !important;
  transform: scale(1.1);
}

/* CTA button animations */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.cta-primary:hover::after {
  left: 120%;
}

/* FAQ transitions */
.faq-answer {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

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

/* Parallax hero effect */
@media (prefers-reduced-motion: no-preference) {
  .bg-hero-pattern {
    will-change: transform;
  }
}

/* Casino CSS pattern for guide section */
.bg-casino-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(232, 168, 0, 0.05) 0px,
      rgba(232, 168, 0, 0.05) 1px,
      transparent 1px,
      transparent 50%
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(232, 168, 0, 0.05) 0px,
      rgba(232, 168, 0, 0.05) 1px,
      transparent 1px,
      transparent 50%
    );
  background-size: 30px 30px;
}

/* ── Responsive Adjustments ── */
@media (max-width: 639px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .prose-casino h1 {
    font-size: 1.6rem;
  }
  .prose-casino h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 1023px) {
  .game-card {
    flex-shrink: 0;
  }
}

/* ── Focus accessibility ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e8a800;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Selection ── */
::selection {
  background: rgba(232, 168, 0, 0.3);
  color: #fff;
}

/* ── Max container width ── */
.max-w-site {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sticky header offset for anchors ── */
[id] {
  scroll-margin-top: 4.5rem;
}
