/* ============================================================
   CrazyBetCasino – custom.css
   Northern Chaos Theme: icy sapphire, gold, aurora, dark
   ============================================================ */

/* ---------- Base ---------- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  word-break: break-word;
}

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

* {
  box-sizing: border-box;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Impact, sans-serif;
  letter-spacing: 0.01em;
}

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

/* ---------- Colours ---------- */
:root {
  --c-dark:    #060d1a;
  --c-navy:    #0a1628;
  --c-sapphire:#1a4a8a;
  --c-blue:    #1e5fc0;
  --c-sky:     #3b9fe8;
  --c-gold:    #f5c518;
  --c-amber:   #e8a020;
  --c-aurora1: #00d4ff;
  --c-aurora2: #7b2fff;
  --c-light:   #e8f4fd;
}

/* ---------- Header ---------- */
.header-bg {
  background: rgba(6, 13, 26, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
}

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

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ---------- Footer ---------- */
.footer-bg {
  background: linear-gradient(180deg, #0a1628 0%, #060d1a 100%);
}

/* ---------- Hero ---------- */
.hero-section {
  min-height: 100vh;
}

.hero-bg-image {
  background-attachment: fixed;
  filter: brightness(0.5) saturate(1.2);
}

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

.aurora-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(123, 47, 255, 0.05) 40%,
    rgba(26, 74, 138, 0.12) 70%,
    rgba(0, 212, 255, 0.06) 100%
  );
}

.aurora-bg-subtle {
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(0, 212, 255, 0.06) 0%,
    transparent 60%
  );
}

/* ---------- Bonus Badge ---------- */
.bonus-badge {
  background: rgba(6, 13, 26, 0.85);
  border-color: var(--c-gold);
}

/* ---------- CTA Buttons ---------- */
.cta-btn-primary,
.cta-btn-hero {
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cta-btn-primary:hover,
.cta-btn-hero:hover {
  transform: translateY(-2px);
}

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

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

.step-badge {
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.4);
}

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

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.18);
}

/* ---------- Marquee ---------- */
.marquee-track {
  will-change: transform;
}

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

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

/* ---------- Review Blocks ---------- */
.review-block {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.review-block:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 24, 0.4);
}

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

.provider-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(26, 74, 138, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--c-aurora1);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.provider-tag:hover {
  background: rgba(26, 74, 138, 0.7);
  color: var(--c-gold);
}

.provider-tag--lg {
  font-size: 0.9rem;
  padding: 5px 13px;
}

.provider-tag--sm {
  font-size: 0.65rem;
  padding: 3px 8px;
  opacity: 0.85;
}

/* ---------- Promo Cards ---------- */
.promo-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.promo-icon {
  transition: transform 0.2s ease;
}

.promo-card:hover .promo-icon {
  transform: scale(1.1);
}

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

.faq-item:hover {
  border-color: rgba(245, 197, 24, 0.3);
}

.faq-question {
  background: transparent;
  border: none;
  cursor: pointer;
}

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

/* ---------- Age Badge ---------- */
.age-badge {
  font-family: 'Oswald', sans-serif;
}

/* ---------- Pulse Glow Animation ---------- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 16px 2px rgba(245, 197, 24, 0.4); }
  50%       { box-shadow: 0 0 40px 8px rgba(245, 197, 24, 0.75); }
}

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

/* ---------- Aurora Animation ---------- */
@keyframes aurora {
  0%   { opacity: 0.3; transform: translateY(0px) scaleX(1); }
  100% { opacity: 0.7; transform: translateY(-20px) scaleX(1.05); }
}

.animate-aurora {
  animation: aurora 8s ease-in-out infinite alternate;
}

/* ============================================================
   PROSE (single pages)
   ============================================================ */

.prose-casino {
  color: #cbd5e1;
  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: #f5c518;
  font-family: 'Oswald', sans-serif;
  margin-top: 1em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.6rem; color: #e8f4fd; }
.prose-casino h3 { font-size: 1.3rem; color: #00d4ff; }

.prose-casino p {
  margin-top: 0;
  margin-bottom: 1.2em;
  line-height: 1.75;
}

.prose-casino a {
  color: #00d4ff;
  text-decoration: underline;
}

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

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

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

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

.prose-casino ul li {
  list-style-type: disc;
  margin-bottom: 0.4em;
  color: #cbd5e1;
}

.prose-casino ol li {
  list-style-type: decimal;
  margin-bottom: 0.4em;
  color: #cbd5e1;
}

.prose-casino blockquote {
  border-left: 4px solid #f5c518;
  padding-left: 1rem;
  margin: 1.5em 0;
  color: #94a3b8;
  font-style: italic;
}

.prose-casino hr {
  border-color: rgba(26, 74, 138, 0.5);
  margin: 2em 0;
}

.prose-casino code {
  background: rgba(26, 74, 138, 0.4);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.875em;
  color: #00d4ff;
}

.prose-casino pre {
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid rgba(26, 74, 138, 0.5);
  border-radius: 8px;
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* ---------- Prose Table Scroll (mandatory) ---------- */
.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 table scroll wrapper (outside prose) */
.overflow-x-auto,
.prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.prose-table-scroll table {
  width: 100%;
  min-width: max-content;
}

.prose-table-scroll table th,
.prose-table-scroll table td {
  white-space: nowrap;
}

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

.prose-casino thead tr {
  background: rgba(26, 74, 138, 0.7);
}

.prose-casino thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #f5c518;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.prose-casino tbody tr {
  border-bottom: 1px solid rgba(26, 74, 138, 0.3);
  transition: background 0.15s ease;
}

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

.prose-casino tbody tr:nth-child(even) {
  background: rgba(10, 22, 40, 0.5);
}

.prose-casino tbody tr:hover {
  background: rgba(26, 74, 138, 0.25);
}

.prose-casino td {
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  vertical-align: top;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.6rem; }
  .prose-casino h2 { font-size: 1.3rem; }
  .prose-casino h3 { font-size: 1.1rem; }

  .hero-section {
    min-height: 100svh;
  }
}

/* ---------- Scrollbar Styling ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--c-sapphire);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-blue);
}

/* ---------- Logo gradient text ---------- */
.logo-text {
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.3));
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(245, 197, 24, 0.3);
  color: #fff;
}
