/* ============================================================
   CarinaBet Casino – Custom CSS
   Champagne-gold & deep sapphire luxury theme
   ============================================================ */

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

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

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #A07830;
  --sapphire: #0A2463;
  --sapphire-light: #1A3A8C;
  --sapphire-dark: #061440;
  --velvet: #1A0A2E;
  --velvet-light: #2D1450;
  --velvet-dark: #0D0518;
  --champagne: #F5E6C8;
  --champagne-light: #FFF5E0;
  --champagne-dark: #D4C4A0;
  --transition: 0.25s ease;
}

/* ============================================================
   Typography & Base
   ============================================================ */
* {
  box-sizing: border-box;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a {
  transition: color var(--transition), opacity var(--transition);
}

/* ============================================================
   Prose Styling (for single pages / content)
   ============================================================ */
.prose-casino {
  color: var(--champagne);
  line-height: 1.8;
  font-size: 1rem;
}

.prose-casino h1 {
  color: var(--gold);
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(201, 168, 76, 0.3);
  padding-bottom: 0.75rem;
}

.prose-casino h2 {
  color: var(--gold);
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-casino h3 {
  color: var(--gold-light);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-casino h4 {
  color: var(--champagne);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  margin-bottom: 1rem;
  color: rgba(245, 230, 200, 0.85);
}

.prose-casino ul,
.prose-casino ol {
  margin: 1rem 0 1rem 1.5rem;
  color: rgba(245, 230, 200, 0.85);
}

.prose-casino li {
  margin-bottom: 0.4rem;
}

.prose-casino ul li::marker {
  color: var(--gold);
}

.prose-casino ol li::marker {
  color: var(--gold);
  font-weight: bold;
}

.prose-casino strong {
  color: var(--champagne);
  font-weight: 700;
}

.prose-casino em {
  color: var(--champagne-dark);
  font-style: italic;
}

.prose-casino a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-casino a:hover {
  color: var(--gold-light);
}

.prose-casino blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(10, 36, 99, 0.3);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--champagne-dark);
  font-style: italic;
}

.prose-casino code {
  background: rgba(10, 36, 99, 0.4);
  color: var(--gold-light);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.prose-casino pre {
  background: rgba(10, 36, 99, 0.5);
  border: 1px solid rgba(10, 36, 99, 0.6);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  margin: 2rem 0;
}

/* ============================================================
   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;
}

/* ============================================================
   Prose Tables (inline in .prose-casino)
   ============================================================ */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  overflow: hidden;
  border-radius: 0.5rem;
}

.prose-casino table thead {
  background: rgba(10, 36, 99, 0.7);
}

.prose-casino table thead th {
  padding: 0.65rem 1rem;
  color: var(--gold);
  font-weight: 700;
  text-align: left;
  border: 1px solid rgba(10, 36, 99, 0.5);
}

.prose-casino table tbody tr:nth-child(odd) {
  background: rgba(26, 10, 46, 0.5);
}

.prose-casino table tbody tr:nth-child(even) {
  background: rgba(10, 36, 99, 0.1);
}

.prose-casino table tbody tr:hover {
  background: rgba(10, 36, 99, 0.2);
}

.prose-casino table tbody td {
  padding: 0.6rem 1rem;
  color: rgba(245, 230, 200, 0.8);
  border: 1px solid rgba(10, 36, 99, 0.3);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* Sparkle/particle overlay */
.sparkle-overlay {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10, 36, 99, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Sparkle animated dots */
.sparkle-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(201, 168, 76, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(245, 230, 200, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, rgba(201, 168, 76, 0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 60%, rgba(245, 230, 200, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 25%, rgba(201, 168, 76, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(245, 230, 200, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 75%, rgba(201, 168, 76, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 65%, rgba(245, 230, 200, 0.5) 0%, transparent 100%);
  animation: sparkleAnim 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes sparkleAnim {
  0%   { opacity: 0.4; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* ============================================================
   Bonus Badge
   ============================================================ */
.bonus-badge {
  position: relative;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.2), 0 0 40px rgba(201, 168, 76, 0.05); }
  50%       { box-shadow: 0 0 30px rgba(201, 168, 76, 0.4), 0 0 60px rgba(201, 168, 76, 0.15); }
}

/* ============================================================
   CTA Buttons
   ============================================================ */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  transform: translateY(-50%);
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ============================================================
   Games Marquee / Horizontal Scroll
   ============================================================ */
.games-marquee-track {
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0 1.5rem;
}

.games-marquee-inner {
  display: flex;
  gap: 1.5rem;
  padding: 0 1.5rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

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

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

/* ============================================================
   Provider Word Cloud
   ============================================================ */
.provider-cloud {
  gap: 0.5rem 0.75rem;
  line-height: 1.6;
}

.provider-tag {
  display: inline-block;
  transition: transform var(--transition), opacity var(--transition);
  cursor: default;
}

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

/* ============================================================
   Step Cards
   ============================================================ */
.step-card {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.15);
}

.step-badge {
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover .step-badge {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

/* ============================================================
   Promo Cards
   ============================================================ */
.promo-card {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.promo-card:hover {
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.12);
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-item {
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: rgba(201, 168, 76, 0.5);
}

.faq-item summary {
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary i {
  transform: rotate(180deg);
}

/* ============================================================
   Navigation
   ============================================================ */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--transition);
}

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

/* Burger menu lines animation */
.burger-line {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ============================================================
   Game Cards
   ============================================================ */
.game-card {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.2);
}

/* ============================================================
   Scrollbar Styling (Webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.7);
}

/* ============================================================
   Selection Color
   ============================================================ */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--champagne);
}

/* ============================================================
   Focus Styles
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Responsive Container
   ============================================================ */
.max-w-container {
  max-width: 1440px;
}

/* ============================================================
   Utility: overflow tables
   ============================================================ */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ============================================================
   Parallax shimmer on sections
   ============================================================ */
@keyframes sectionShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ============================================================
   Animation: fade in up
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

/* ============================================================
   Payment table (homepage)
   ============================================================ */
.payment-table-wrap {
  max-width: 100%;
}

@media (min-width: 768px) {
  .payment-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .payment-table {
    min-width: 720px;
  }
}

@media (max-width: 767px) {
  .payment-table {
    display: block;
    width: 100%;
  }

  .payment-table thead,
  .payment-table thead th:nth-child(2),
  .payment-table tbody td:nth-child(2) {
    display: none !important;
  }

  .payment-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .payment-table tbody tr {
    display: block;
    border: 1px solid rgba(10, 36, 99, 0.4);
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(26, 10, 46, 0.5);
  }

  .payment-table tbody tr:nth-child(even) {
    background: rgba(10, 36, 99, 0.15);
  }

  .payment-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(10, 36, 99, 0.25);
    text-align: right;
    white-space: normal;
  }

  .payment-table tbody td:last-child {
    border-bottom: none;
  }

  .payment-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--gold);
    text-align: left;
    flex: 0 0 42%;
    padding-right: 0.5rem;
  }

  .payment-table tbody td[data-label="Method"] {
    justify-content: flex-start;
    background: rgba(10, 36, 99, 0.45);
    font-size: 1rem;
    font-weight: 700;
    color: var(--champagne);
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  }

  .payment-table tbody td[data-label="Method"]::before {
    display: none;
  }
}

/* ============================================================
   Responsive adjustments
   ============================================================ */
@media (max-width: 640px) {
  .prose-casino h1 {
    font-size: 1.75rem;
  }

  .prose-casino h2 {
    font-size: 1.4rem;
  }

  .prose-casino h3 {
    font-size: 1.15rem;
  }

  .games-marquee-inner {
    gap: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    background-attachment: scroll;
  }
}
