/* ==========================================================
   JossCasino – Custom CSS
   Northern Prestige Theme: Icy Sapphire, Platinum & Gold
   ========================================================== */

/* ── Base Reset ─────────────────────────────────────────── */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

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

/* ── Typography ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── CTA Buttons ─────────────────────────────────────────── */
.cta-primary {
  background: linear-gradient(90deg, #c9a84c 0%, #e8c96a 50%, #c9a84c 100%);
  background-size: 200% auto;
  color: #06101f;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
  animation: gold-shimmer 3s linear infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary:hover {
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.5);
  transform: scale(1.04);
}

.cta-secondary {
  text-decoration: none;
  display: inline-block;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes gold-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes aurora-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

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

@keyframes float-badge {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.3); }
  50%       { box-shadow: 0 0 40px rgba(201, 168, 76, 0.7); }
}

/* ── Bonus Badge Glow ─────────────────────────────────────── */
.bonus-glow {
  animation: glow-pulse 2.5s ease-in-out infinite, float-badge 4s ease-in-out infinite;
}

/* ── Marquee Strip ────────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

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

/* ── Promo Cards ──────────────────────────────────────────── */
.promo-card {
  background: linear-gradient(145deg, #0d1e38 0%, #1a3a6b22 100%);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-6px);
  border-color: #c9a84c !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,168,76,0.15);
}

/* ── Game Cards ───────────────────────────────────────────── */
.game-card {
  background: #0d1e38;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 16px rgba(201,168,76,0.2);
}

/* ── Step Cards ───────────────────────────────────────────── */
.step-card {
  background: linear-gradient(160deg, #0d1e38 0%, #1a3a6b20 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.step-badge {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
}

/* ── Review Blocks ────────────────────────────────────────── */
.review-block {
  background: linear-gradient(160deg, #0d1e38 0%, #0a1628 100%);
  transition: box-shadow 0.3s ease;
}

.review-block:hover {
  box-shadow: 0 0 30px rgba(26,58,107,0.3);
}

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

.provider-tag {
  color: #a0afc4;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(26,58,107,0.25);
  border: 1px solid rgba(30,58,95,0.6);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  color: #e8c96a;
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.4);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-item {
  background: #0d1e38;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(201,168,76,0.5) !important;
}

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

.faq-answer {
  border-top: 1px solid rgba(30,58,95,0.5);
  padding-top: 1rem;
}

/* ── Payment Icon Badge ───────────────────────────────────── */
.payment-icon-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(13,30,56,0.8);
  border: 1px solid rgba(30,58,95,0.6);
  font-size: 1.25rem;
  min-width: 3.5rem;
}

/* ── Inner Page Quick Links ───────────────────────────────── */
.inner-quick-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a0afc4;
  background: rgba(13,30,56,0.8);
  border: 1px solid rgba(30,58,95,0.6);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.inner-quick-link:hover {
  color: #e8c96a;
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.08);
}

/* ── Nav Links ────────────────────────────────────────────── */
.nav-link {
  text-decoration: none;
}

.mobile-nav-link {
  text-decoration: none;
}

/* ── Prose Casino (inner page content) ───────────────────── */
.prose-casino {
  color: #d4dce8;
  line-height: 1.8;
  word-break: break-word;
}

.prose-casino h1 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.prose-casino h2 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
  border-bottom: 1px solid rgba(30,58,95,0.6);
  padding-bottom: 0.4rem;
}

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

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

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

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

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

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

.prose-casino ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.prose-casino ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #a0afc4;
}

.prose-casino ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a84c;
}

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

.prose-casino ol li {
  margin-bottom: 0.5rem;
  color: #a0afc4;
  padding-left: 0.25rem;
}

.prose-casino blockquote {
  border-left: 3px solid #c9a84c;
  padding-left: 1rem;
  margin-left: 0;
  color: #a0afc4;
  font-style: italic;
}

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

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

.prose-casino thead tr {
  background: linear-gradient(90deg, #0d1e38, #1a3a6b);
}

.prose-casino th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #edf1f7;
  font-weight: 700;
  border-bottom: 1px solid rgba(30,58,95,0.8);
  white-space: nowrap;
}

.prose-casino td {
  padding: 0.75rem 1rem;
  color: #a0afc4;
  border-bottom: 1px solid rgba(30,58,95,0.4);
}

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

/* Ensure overflow-x works on all markdown-rendered tables */
.prose-casino div.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

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

::-webkit-scrollbar-track {
  background: #06101f;
}

::-webkit-scrollbar-thumb {
  background: #1a3a6b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c9a84c;
}

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

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

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background: rgba(201,168,76,0.3);
  color: #ffffff;
}

/* ── Accessibility / Focus ────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-balance {
  text-wrap: balance;
}

/* ── Aurora Background Animation ─────────────────────────── */
.aurora-bg {
  position: relative;
  overflow: hidden;
}

.aurora-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(13,148,136,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(26,58,107,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, rgba(91,63,166,0.06) 0%, transparent 60%);
  animation: aurora-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

/* ── Mobile Responsive Adjustments ───────────────────────── */
@media (max-width: 640px) {
  .prose-casino h1 {
    font-size: 1.6rem;
  }
  .prose-casino h2 {
    font-size: 1.2rem;
  }
}

/* ── Ensure inner page single has no extra top margin ────── */
article.prose-casino {
  padding-top: 0;
}
