/* =============================================================
   CapoSino Casino – Custom CSS
   Northern Luxe Theme: Sapphire, Gold, Aurora on Dark
   ============================================================= */

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

body {
  background-color: #050d1a;
  color: #c8d8e8;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  word-break: break-word;
  overflow-x: hidden;
}

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

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #0e2d5e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4a017;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: break-word;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

/* --- Aurora Hero Animation --- */
@keyframes auroraShift {
  0%   { background-position: 0% 50%; opacity: 0.15; }
  50%  { background-position: 100% 50%; opacity: 0.25; }
  100% { background-position: 0% 50%; opacity: 0.15; }
}

.aurora-wave {
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(0, 201, 167, 0.08) 25%,
    rgba(42, 111, 212, 0.12) 50%,
    rgba(0, 201, 167, 0.06) 75%,
    transparent 100%
  );
  background-size: 400% 400%;
  animation: auroraShift 10s ease infinite;
  pointer-events: none;
}

/* --- Parallax hero --- */
@media (min-width: 768px) {
  #hero {
    background-attachment: fixed;
  }
}

/* --- Bonus Badge --- */
.bonus-badge {
  background: linear-gradient(135deg, rgba(14,45,94,0.95) 0%, rgba(10,22,40,0.98) 100%);
  border: 2px solid rgba(212, 160, 23, 0.7);
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.35), inset 0 0 30px rgba(212, 160, 23, 0.05);
  backdrop-filter: blur(10px);
}

/* --- CTA Button Base --- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #d4a017, #f0c040, #d4a017);
  background-size: 200% auto;
  color: #050d1a;
  font-weight: 800;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  animation: shimmerBtn 3s linear infinite;
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.4);
  text-decoration: none;
}

.cta-primary:hover {
  box-shadow: 0 0 35px rgba(212, 160, 23, 0.7);
  transform: translateY(-1px);
  color: #050d1a;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* --- Step Cards --- */
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(42, 111, 212, 0.2);
}

/* --- Promo Cards --- */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

/* --- Review Cards --- */
.review-card {
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 8px 32px rgba(42, 111, 212, 0.2);
}

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

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(212, 160, 23, 0.25);
}

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

.marquee-wrapper {
  position: relative;
  overflow: hidden;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #0a1628, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #0a1628, transparent);
}

.marquee-track {
  animation: marqueeScroll 28s linear infinite;
}

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

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

.provider-tag {
  cursor: default;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.provider-tag:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.4);
}

/* --- FAQ Items --- */
.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(42, 111, 212, 0.2);
}

.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
}

.faq-trigger:focus {
  outline: 2px solid #d4a017;
  outline-offset: -2px;
}

/* --- Tables (overflow & scroll) --- */
.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

table {
  border-collapse: collapse;
  min-width: 520px;
  width: 100%;
}

th, td {
  word-break: normal;
  white-space: nowrap;
}

@media (max-width: 640px) {
  th, td {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* --- Prose (Single pages) --- */
.prose-casino {
  color: #c8d8e8;
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1 {
  color: #f0c040;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  margin-top: 0;
  line-height: 1.2;
}

.prose-casino h2 {
  color: #f0c040;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(14, 45, 94, 0.6);
}

.prose-casino h3 {
  color: #a8d8f0;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino h4 {
  color: #a8d8f0;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.prose-casino p {
  margin-bottom: 1rem;
  color: #c8d8e8;
}

.prose-casino a {
  color: #00c9a7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

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

.prose-casino ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #c8d8e8;
}

.prose-casino ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #c8d8e8;
}

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

.prose-casino blockquote {
  border-left: 4px solid #d4a017;
  padding-left: 1rem;
  color: #a8d8f0;
  font-style: italic;
  margin: 1.5rem 0;
  background: rgba(14, 45, 94, 0.2);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1rem 1rem 1.25rem;
}

.prose-casino code {
  background: rgba(14, 45, 94, 0.5);
  color: #00c9a7;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: rgba(14, 45, 94, 0.5);
  border: 1px solid rgba(42, 111, 212, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  min-width: 400px;
}

.prose-casino th {
  background: rgba(14, 45, 94, 0.7);
  color: #f0c040;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid rgba(42, 111, 212, 0.3);
  white-space: nowrap;
}

.prose-casino td {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(42, 111, 212, 0.2);
  color: #c8d8e8;
  white-space: nowrap;
}

.prose-casino tr:nth-child(even) {
  background: rgba(14, 45, 94, 0.15);
}

.prose-casino tr:hover {
  background: rgba(42, 111, 212, 0.1);
}

.prose-casino img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(14, 45, 94, 0.6);
  margin: 2rem 0;
}

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

/* --- Nav Link Active State --- */
.nav-link.active,
.nav-link:focus-visible {
  color: #f0c040;
  background-color: rgba(14, 45, 94, 0.4);
}

/* --- Sticky Header Shadow on Scroll --- */
#site-header {
  transition: box-shadow 0.3s ease;
}

/* --- Utility: Text glow --- */
.text-glow-gold {
  text-shadow: 0 0 16px rgba(212, 160, 23, 0.7);
}

.text-glow-aurora {
  text-shadow: 0 0 16px rgba(0, 201, 167, 0.6);
}

/* --- Responsive Container --- */
.container-site {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-site {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-site {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* --- Section dividers --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42, 111, 212, 0.4), transparent);
  margin: 0;
}

/* --- Burger Menu Lines transform handled in JS, base styles --- */
.burger-line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Mobile Responsive tweaks --- */
@media (max-width: 768px) {
  .marquee-track {
    animation-duration: 18s;
  }

  .bonus-badge {
    padding: 1.25rem;
  }
}

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

/* --- Image base --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Ensure prose images don't overflow --- */
.prose-casino figure {
  max-width: 100%;
  overflow: hidden;
}
