/* ===================================================
   NORDABET CASINO — custom.css
   Northern Crown design system
   =================================================== */

/* ----------------------------------------
   BASE RESET & BOX MODEL
   ---------------------------------------- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  word-break: break-word;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-color: #0a0f1e;
  color: #c0cfe0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* ----------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  word-break: break-word;
}

/* ----------------------------------------
   AURORA ANIMATION
   ---------------------------------------- */
@keyframes aurora {
  0%, 100% { opacity: 0.3; transform: translateY(0px) scaleX(1); }
  50%       { opacity: 0.65; transform: translateY(-12px) scaleX(1.06); }
}

.aurora-wave {
  animation: aurora 8s ease-in-out infinite;
  will-change: transform, opacity;
}

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

.marquee-container {
  animation: marquee 35s linear infinite;
  will-change: transform;
}

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

/* ----------------------------------------
   FLOAT ANIMATION
   ---------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

/* ----------------------------------------
   GLOW PULSE ANIMATION
   ---------------------------------------- */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 8px #5bc8f5, 0 0 16px rgba(91,200,245,0.3);
  }
  50% {
    box-shadow: 0 0 18px #5bc8f5, 0 0 36px rgba(91,200,245,0.5);
  }
}

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

/* ----------------------------------------
   HEADER / STICKY NAV
   ---------------------------------------- */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background-color: rgba(6, 11, 22, 0.98);
  box-shadow: 0 2px 24px rgba(91, 200, 245, 0.1);
}

/* Burger bar animation */
#burger-btn[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#burger-btn[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#burger-btn[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.burger-bar {
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* ----------------------------------------
   GAME CARDS
   ---------------------------------------- */
.game-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

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

.faq-item:hover {
  border-color: rgba(91, 200, 245, 0.35);
}

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

/* ----------------------------------------
   PROVIDER TAG WORD CLOUD
   ---------------------------------------- */
.provider-tag {
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

/* ----------------------------------------
   PARALLAX HERO SUPPORT
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .aurora-wave,
  .marquee-container,
  .animate-float,
  .animate-glow-pulse {
    animation: none;
  }
}

/* ----------------------------------------
   TABLE OVERRIDES — scrollable on mobile
   ---------------------------------------- */
.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

thead th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
}

tbody td {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ----------------------------------------
   PROSE CASINO — article content styling
   ---------------------------------------- */
.prose-casino {
  color: #c0cfe0;
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.prose-casino h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5bc8f5;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(91,200,245,0.2);
}

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

.prose-casino h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #8fa8c8;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

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

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

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

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #5bc8f5;
  padding-left: 1rem;
  color: #8fa8c8;
  font-style: italic;
  margin: 1.5rem 0;
  background: rgba(13,27,53,0.5);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
}

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

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

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(91,200,245,0.2);
  margin: 2rem 0;
}

.prose-casino code {
  background: rgba(26,58,107,0.5);
  color: #5bc8f5;
  padding: 0.1em 0.4em;
  border-radius: 0.3rem;
  font-size: 0.9em;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}

.prose-casino pre {
  background: rgba(6,11,22,0.9);
  border: 1px solid rgba(91,200,245,0.2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

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

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-casino thead th {
  background-color: rgba(26,58,107,0.7);
  color: #5bc8f5;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose-casino tbody tr {
  border-bottom: 1px solid rgba(26,58,107,0.4);
  transition: background-color 0.2s ease;
}

.prose-casino tbody tr:nth-child(even) {
  background-color: rgba(13,27,53,0.5);
}

.prose-casino tbody tr:hover {
  background-color: rgba(26,58,107,0.3);
}

.prose-casino tbody td {
  padding: 0.65rem 1rem;
  color: #c0cfe0;
  vertical-align: middle;
}

/* ----------------------------------------
   GENERAL BUTTON RESETS
   ---------------------------------------- */
button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* ----------------------------------------
   SECTION UTILITY
   ---------------------------------------- */
.section-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5bc8f5;
  margin-bottom: 0.5rem;
}

/* ----------------------------------------
   NORD GRADIENT BORDERS (decorative)
   ---------------------------------------- */
.border-gradient-nord {
  border-image: linear-gradient(90deg, #5bc8f5, #4de8c2) 1;
}

/* ----------------------------------------
   SCROLL INDICATOR
   ---------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #060b16;
}

::-webkit-scrollbar-thumb {
  background: rgba(91, 200, 245, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(91, 200, 245, 0.55);
}

/* ----------------------------------------
   FOCUS VISIBLE ACCESSIBILITY
   ---------------------------------------- */
:focus-visible {
  outline: 2px solid #5bc8f5;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------------
   RESPONSIVE ADJUSTMENTS
   ---------------------------------------- */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.6rem; }
  .prose-casino h2 { font-size: 1.25rem; }
  .prose-casino h3 { font-size: 1.05rem; }

  thead th {
    font-size: 0.65rem;
    padding: 0.5rem 0.75rem;
  }

  tbody td {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}
