/*
  CapoSino Casino – Custom Stylesheet
  Theme: Élégance Luxe (Champagne Gold + Deep Sapphire + Velvet)
*/

/* =============================================
   RESET & BASE
   ============================================= */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  word-break: break-word;
  overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.text-shadow-gold {
  text-shadow: 0 2px 20px rgba(232, 184, 0, 0.45), 0 1px 4px rgba(0,0,0,0.8);
}

/* =============================================
   HERO
   ============================================= */
.hero-bg {
  background-color: #07030d;
}

.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(7, 22, 85, 0.80) 0%,
    rgba(10, 9, 32, 0.88) 50%,
    rgba(42, 17, 66, 0.75) 100%
  );
}

/* Sparkle / particles layer */
.sparkle-layer {
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 2px 2px at 10% 20%, rgba(232,184,0,0.7) 0%, transparent 100%),
    radial-gradient(ellipse 1px 1px at 30% 70%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(ellipse 2px 2px at 55% 15%, rgba(232,184,0,0.5) 0%, transparent 100%),
    radial-gradient(ellipse 1px 1px at 75% 45%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 2px 2px at 90% 80%, rgba(232,184,0,0.6) 0%, transparent 100%),
    radial-gradient(ellipse 1px 1px at 20% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(ellipse 1px 1px at 65% 60%, rgba(232,184,0,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 2px 2px at 45% 85%, rgba(255,255,255,0.3) 0%, transparent 100%);
  animation: sparkle-pulse 4s ease-in-out infinite alternate;
}

@keyframes sparkle-pulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Parallax helper */
.parallax-hero {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

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

.bonus-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(232,184,0,0.08) 60deg,
    transparent 120deg
  );
  animation: badge-rotate 8s linear infinite;
}

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

/* =============================================
   GAME CARDS
   ============================================= */
.game-card {
  cursor: pointer;
}

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

.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* =============================================
   PROVIDER TAGS (WORD CLOUD)
   ============================================= */
.provider-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
  line-height: 1.4;
}

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

/* =============================================
   MARQUEE ANIMATION
   ============================================= */
.marquee-track {
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

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

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

/* =============================================
   NAVIGATION
   ============================================= */
#site-header {
  transition: background-color 0.3s ease;
}

.burger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =============================================
   FAQ
   ============================================= */
.faq-answer {
  animation: faq-reveal 0.25s ease;
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
  color: #f9cf1b;
}

/* =============================================
   PROSE / ARTICLE CONTENT
   ============================================= */
.prose-casino {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5 {
  color: #fce258;
  font-family: Georgia, serif;
  font-weight: 700;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  margin-bottom: 1.25em;
}

.prose-casino a {
  color: #7fa3ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

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

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

.prose-casino li {
  margin-bottom: 0.5em;
}

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

.prose-casino em {
  color: #b9ccff;
  font-style: italic;
}

.prose-casino blockquote {
  border-left: 4px solid #4a78f5;
  padding-left: 1rem;
  margin-left: 0;
  color: #9ca3af;
  font-style: italic;
}

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

.prose-casino code {
  background: #0a2270;
  color: #fce258;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #071655;
  border: 1px solid #1239b0;
  border-radius: 8px;
  padding: 1em 1.25em;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.prose-casino pre code {
  background: transparent;
  padding: 0;
  font-size: 0.875em;
}

/* PROSE TABLE SCROLL — mandatory classes */
.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;
}

/* General prose table styling */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose-casino thead tr {
  background-color: #0d2d8c;
}

.prose-casino thead th {
  padding: 0.6rem 0.9rem;
  text-align: left;
  color: #fce258;
  font-weight: 700;
  white-space: nowrap;
}

.prose-casino tbody tr {
  border-top: 1px solid #1239b0;
}

.prose-casino tbody tr:hover {
  background-color: rgba(30, 79, 216, 0.12);
}

.prose-casino tbody td {
  padding: 0.6rem 0.9rem;
  color: #d1d5db;
}

/* =============================================
   PROSE CONTENT (SINGLE PAGE ALIAS)
   ============================================= */
.prose-content {
  color: #d1d5db;
  line-height: 1.75;
}

.prose-content h1,
.prose-content h2,
.prose-content h3,
.prose-content h4 {
  color: #fce258;
  font-family: Georgia, serif;
  font-weight: 700;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
}

.prose-content h1 { font-size: 2rem; }
.prose-content h2 { font-size: 1.5rem; }
.prose-content h3 { font-size: 1.25rem; }

.prose-content p { margin-bottom: 1.25em; }

.prose-content a {
  color: #7fa3ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-content a:hover { color: #fce258; }

.prose-content ul,
.prose-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

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

.prose-content li { margin-bottom: 0.5em; }

.prose-content strong {
  color: #fce258;
  font-weight: 700;
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1.5em;
}

.prose-content thead tr {
  background-color: #0d2d8c;
}

.prose-content thead th {
  padding: 0.6rem 0.9rem;
  text-align: left;
  color: #fce258;
  font-weight: 700;
  white-space: nowrap;
}

.prose-content tbody tr {
  border-top: 1px solid #1239b0;
}

.prose-content tbody td {
  padding: 0.6rem 0.9rem;
  color: #d1d5db;
}

/* Table wrapper for Markdown content */
.prose-content .overflow-x-auto,
.prose-casino .overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: 0.5rem;
  overscroll-behavior-x: contain;
}

/* =============================================
   SCROLLBAR CUSTOM
   ============================================= */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #100920;
}

::-webkit-scrollbar-thumb {
  background: #1239b0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a78f5;
}

/* =============================================
   UTILITY / HELPERS
   ============================================= */
.max-w-site {
  max-width: 1440px;
}

/* Ensure all tables are scrollable */
table {
  word-break: normal;
}

/* Prevent images from breaking layout */
img {
  max-width: 100%;
  height: auto;
}

/* =============================================
   ANIMATIONS – ENTRANCE
   ============================================= */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.6s ease forwards;
}

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

.shimmer-gold {
  background: linear-gradient(90deg, #e8b800 0%, #fce258 40%, #c99a00 60%, #e8b800 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 640px) {
  .hero-bg {
    background-attachment: scroll;
  }

  .parallax-hero {
    background-attachment: scroll;
  }

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

  .provider-tag {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 1023px) {
  #site-header .desktop-nav {
    display: none;
  }
}
