/*
 * JackCasino Arctic Royale – Custom CSS
 * All animations, utilities, and prose styles
 */

/* =========================================================
   ROOT & RESET
   ========================================================= */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

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

/* =========================================================
   CSS CUSTOM PROPERTIES (Arctic Royale Palette)
   ========================================================= */
:root {
  --arctic-midnight:  #050d1a;
  --arctic-deep:      #081428;
  --arctic-navy:      #0a1e3a;
  --arctic-cyan:      #00d4ff;
  --arctic-ice:       #7fe8ff;
  --arctic-silver:    #c0d8e8;
  --arctic-frost:     #e8f4fb;
  --arctic-gold:      #f0c040;
}

/* =========================================================
   KEYFRAME ANIMATIONS
   ========================================================= */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
  50%       { box-shadow: 0 0 32px rgba(0, 212, 255, 0.85); }
}

@keyframes frostIn {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes frostParticle {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 0.6; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

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

/* =========================================================
   MARQUEE / GAME STRIP
   ========================================================= */
.marquee-track {
  animation: marquee 30s linear infinite;
  will-change: transform;
}

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

/* =========================================================
   FLOAT ANIMATION
   ========================================================= */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* =========================================================
   PULSE GLOW
   ========================================================= */
.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* =========================================================
   FROST IN
   ========================================================= */
.animate-frost-in {
  animation: frostIn 0.9s ease-out both;
}

/* =========================================================
   FROST PARTICLES (CSS only)
   ========================================================= */
.frost-particles {
  pointer-events: none;
  overflow: hidden;
}

.frost-particles::before,
.frost-particles::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.08);
  animation: frostParticle 12s linear infinite;
}

.frost-particles::before {
  width: 6px;
  height: 6px;
  top: 80%;
  left: 20%;
  animation-duration: 14s;
  animation-delay: -4s;
}

.frost-particles::after {
  width: 4px;
  height: 4px;
  top: 90%;
  left: 70%;
  animation-duration: 18s;
  animation-delay: -8s;
}

/* =========================================================
   PARALLAX HERO
   ========================================================= */
.parallax-hero {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* =========================================================
   GRADIENT UTILITIES
   ========================================================= */
.bg-cyan-gradient {
  background: linear-gradient(135deg, #00d4ff, #0080a0);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #f0c040, #c08010);
}

.bg-frost-gradient {
  background: linear-gradient(135deg, #050d1a 0%, #0a1e3a 50%, #050d1a 100%);
}

/* =========================================================
   SHADOW UTILITIES
   ========================================================= */
.shadow-glow-cyan {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}

.shadow-glow-gold {
  box-shadow: 0 0 20px rgba(240, 192, 64, 0.4);
}

/* =========================================================
   SHIMMER EFFECT (for badges / CTAs)
   ========================================================= */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0)   0%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0)   100%
  );
  background-size: 200% auto;
  animation: shimmer 2.5s linear infinite;
}

/* =========================================================
   STICKY HEADER
   ========================================================= */
header.sticky {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* =========================================================
   PROSE CASINO STYLES
   ========================================================= */
.prose-casino {
  color: var(--arctic-silver);
  line-height: 1.75;
  max-width: 100%;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: var(--arctic-cyan);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  margin-bottom: 1em;
  color: var(--arctic-silver);
}

.prose-casino a {
  color: var(--arctic-cyan);
  text-decoration: underline;
}

.prose-casino a:hover {
  color: var(--arctic-ice);
}

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

.prose-casino ul li {
  list-style-type: disc;
  margin-bottom: 0.4em;
  color: var(--arctic-silver);
}

.prose-casino ol li {
  list-style-type: decimal;
  margin-bottom: 0.4em;
  color: var(--arctic-silver);
}

.prose-casino blockquote {
  border-left: 4px solid var(--arctic-cyan);
  padding-left: 1em;
  color: var(--arctic-ice);
  font-style: italic;
  margin: 1.5em 0;
}

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

.prose-casino em {
  color: var(--arctic-ice);
}

.prose-casino code {
  background: var(--arctic-navy);
  color: var(--arctic-cyan);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: var(--arctic-navy);
  color: var(--arctic-frost);
  padding: 1em 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose-casino hr {
  border-color: var(--arctic-navy);
  margin: 2em 0;
}

/* ---- TABLE STYLES within prose ---- */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--arctic-silver);
}

.prose-casino thead tr {
  background: var(--arctic-navy);
  color: var(--arctic-cyan);
}

.prose-casino th {
  text-align: left;
  padding: 0.6em 0.9em;
  font-weight: 600;
}

.prose-casino td {
  padding: 0.6em 0.9em;
  border-top: 1px solid rgba(10, 30, 58, 0.8);
}

.prose-casino tbody tr:hover {
  background: rgba(10, 30, 58, 0.5);
}

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

/* Global table overflow safety */
.overflow-x-auto,
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-scroll table,
table th,
table td {
  word-break: normal;
  overflow-wrap: normal;
}

.payments-table {
  width: 100%;
  table-layout: auto;
}

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

.payments-table th:first-child,
.payments-table td:first-child {
  white-space: normal;
  min-width: 7.5rem;
}

@media (max-width: 639px) {
  .payments-table {
    width: max-content;
    min-width: 42rem;
  }

  .payments-table th,
  .payments-table td {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-item {
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

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

/* =========================================================
   GAME CARD HOVER
   ========================================================= */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* =========================================================
   SCROLLBAR STYLING
   ========================================================= */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--arctic-midnight);
}

::-webkit-scrollbar-thumb {
  background: var(--arctic-navy);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--arctic-cyan);
}

/* =========================================================
   UTILITY: WORD BREAK
   ========================================================= */
* {
  word-break: break-word;
}

/* Preserve normal word break for certain elements */
pre, code {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* =========================================================
   RESPONSIVE CONTAINERS
   ========================================================= */
.max-w-site {
  max-width: 1440px;
}

/* =========================================================
   MOBILE ADJUSTMENTS
   ========================================================= */
@media (max-width: 768px) {
  .marquee-track {
    animation-duration: 20s;
  }

  .prose-casino h1 { font-size: 1.6rem; }
  .prose-casino h2 { font-size: 1.3rem; }
  .prose-casino h3 { font-size: 1.1rem; }
}

/* =========================================================
   FOCUS STYLES (Accessibility)
   ========================================================= */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--arctic-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  header, footer, .faq-item button::after {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
