/*
 * UniversalSlots Casino – Custom CSS
 * Northern Galaxy Theme: icy sapphire, silver, aurora, deep midnight
 */

/* ============================================================
   BASE
============================================================ */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

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

/* ============================================================
   AURORA BACKGROUND EFFECT
============================================================ */
.aurora-bg {
  background:
    radial-gradient(ellipse 80% 40% at 20% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 10%, rgba(74, 158, 221, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 20% at 50% 5%, rgba(0, 234, 255, 0.06) 0%, transparent 70%);
  animation: auroraPulse 8s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
  0% {
    opacity: 0.5;
    transform: translateY(0px) scaleX(1);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-15px) scaleX(1.05);
  }
  100% {
    opacity: 0.6;
    transform: translateY(-5px) scaleX(0.98);
  }
}

/* ============================================================
   STARS BACKGROUND
============================================================ */
.stars-bg {
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(192, 207, 224, 0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, rgba(0, 212, 255, 0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 8%, rgba(192, 207, 224, 0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 55%, rgba(0, 212, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(192, 207, 224, 0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 40%, rgba(0, 212, 255, 0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 70%, rgba(192, 207, 224, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(0, 212, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 90%, rgba(192, 207, 224, 0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 5% 50%, rgba(0, 234, 255, 0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 80%, rgba(192, 207, 224, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 65%, rgba(0, 212, 255, 0.5) 0%, transparent 100%);
  animation: starTwinkle 5s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* ============================================================
   MARQUEE ANIMATION
============================================================ */
.marquee-track {
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

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

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

/* ============================================================
   PARALLAX
============================================================ */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ============================================================
   NAVIGATION
============================================================ */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #4a9edd);
  border-radius: 2px;
  transition: left 0.25s ease, right 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 8px;
  right: 8px;
}

/* ============================================================
   PROVIDER TAG (word cloud)
============================================================ */
.provider-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: default;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  line-height: 1.4;
}

.provider-tag:hover {
  text-shadow: 0 0 12px currentColor;
}

/* ============================================================
   GLOW ANIMATIONS
============================================================ */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), 0 0 80px rgba(0, 212, 255, 0.2);
  }
}

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

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

.animate-float {
  animation: floatAnim 4s ease-in-out infinite;
}

/* ============================================================
   TABLE SCROLL WRAPPER
============================================================ */
.table-scroll-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-scroll-wrap table {
  width: max-content;
  min-width: 640px;
  border-collapse: collapse;
}

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

@media (min-width: 768px) {
  .table-scroll-wrap {
    overflow-x: hidden;
  }

  .table-scroll-wrap table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
  }

  .table-scroll-wrap th,
  .table-scroll-wrap td {
    white-space: normal;
  }
}

.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;
  width: max-content;
  min-width: 100%;
}

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

/* All tables scrollable on mobile */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ============================================================
   PROSE STYLING (single pages)
============================================================ */
.prose-casino {
  color: #c0cfe0;
  max-width: 100%;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #c0cfe0;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.prose-casino h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #c0cfe0;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(26, 58, 110, 0.5);
  padding-bottom: 0.5rem;
}

.prose-casino h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #4a9edd;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

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

.prose-casino p {
  color: #8ba8c8;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.prose-casino a {
  color: #00d4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

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

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

.prose-casino ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
  space-y: 0.5rem;
}

.prose-casino ul li {
  position: relative;
  padding-left: 1.5rem;
  color: #8ba8c8;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.prose-casino ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #00d4ff;
  font-size: 0.75rem;
  top: 0.35em;
}

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

.prose-casino ol li {
  color: #8ba8c8;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.prose-casino ol li::marker {
  color: #00d4ff;
  font-weight: 700;
}

.prose-casino blockquote {
  border-left: 3px solid #00d4ff;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(26, 58, 110, 0.2);
  border-radius: 0 8px 8px 0;
  color: #8ba8c8;
  font-style: italic;
}

.prose-casino code {
  background: rgba(26, 58, 110, 0.4);
  color: #00d4ff;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose-casino pre {
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid rgba(26, 58, 110, 0.4);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.prose-casino pre code {
  background: none;
  padding: 0;
  color: #c0cfe0;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.prose-casino thead tr {
  background: rgba(26, 58, 110, 0.4);
  border-bottom: 2px solid rgba(26, 58, 110, 0.6);
}

.prose-casino thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #00d4ff;
  font-weight: 700;
  white-space: nowrap;
}

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

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

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

.prose-casino tbody tr:nth-child(even):hover {
  background: rgba(26, 58, 110, 0.15);
}

.prose-casino tbody td {
  padding: 0.75rem 1rem;
  color: #8ba8c8;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(26, 58, 110, 0.4);
  margin: 2rem 0;
}

/* ============================================================
   RESPONSIVE UTILITIES
============================================================ */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.75rem; }
  .prose-casino h2 { font-size: 1.4rem; }
  .prose-casino h3 { font-size: 1.15rem; }

  table {
    font-size: 0.8rem;
  }
}

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

::-webkit-scrollbar-track {
  background: #050d1a;
}

::-webkit-scrollbar-thumb {
  background: #1a3a6e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00d4ff;
}

/* ============================================================
   SELECTION
============================================================ */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #c0cfe0;
}

/* ============================================================
   FOCUS
============================================================ */
:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #00d4ff 0%, #4a9edd 100%);
  color: #050d1a;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  transform: scale(1.03);
  color: #050d1a;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 1rem;
  background: transparent;
  color: #00d4ff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(0, 212, 255, 0.4);
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  color: #00d4ff;
}

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

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

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

  .aurora-bg {
    background-attachment: scroll;
  }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
  #site-header,
  .marquee-track,
  .aurora-bg,
  .stars-bg {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .prose-casino p,
  .prose-casino li,
  .prose-casino td {
    color: #333;
  }
}
