/* =========================================================
   AndromedaSino Casino – Custom CSS
   Theme: Nebula Crown (Sapphire Blue + Radiant Gold)
   ========================================================= */

/* === GLOBAL === */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0a0e1a;
  color: #f3f4f6;
}

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

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0d1528;
}
::-webkit-scrollbar-thumb {
  background: #1a6fe8;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f5c518;
}

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

/* === MANDATORY PROSE TABLE SCROLL === */
.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 STYLING === */
.prose-casino {
  color: #d1d5db;
  line-height: 1.75;
  max-width: none;
  word-break: break-word;
}

.prose-casino h1 {
  color: #f5c518;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  margin-top: 0;
}

.prose-casino h2 {
  color: #f5c518;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(26, 111, 232, 0.3);
}

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

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

.prose-casino p {
  margin-bottom: 1em;
  color: #d1d5db;
}

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

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

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

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

.prose-casino ul li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.4em;
  color: #d1d5db;
}

.prose-casino ul li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #f5c518;
  font-size: 0.75em;
  top: 0.25em;
}

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

.prose-casino ol li {
  margin-bottom: 0.4em;
  color: #d1d5db;
}

.prose-casino blockquote {
  border-left: 4px solid #1a6fe8;
  padding-left: 1em;
  margin-left: 0;
  color: #9ca3af;
  font-style: italic;
  background: rgba(26, 111, 232, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75em 1em;
}

.prose-casino code {
  background: rgba(26, 111, 232, 0.15);
  color: #60a5fa;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #0d1528;
  border: 1px solid rgba(26, 111, 232, 0.3);
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin-bottom: 1em;
}

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

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

.prose-casino thead tr {
  background: #111e3a;
  border-bottom: 2px solid rgba(26, 111, 232, 0.4);
}

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

.prose-casino tbody tr {
  border-bottom: 1px solid rgba(26, 111, 232, 0.2);
  transition: background 0.2s;
}

.prose-casino tbody tr:hover {
  background: rgba(26, 111, 232, 0.08);
}

.prose-casino tbody td {
  padding: 0.65em 1em;
  color: #d1d5db;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(26, 111, 232, 0.3);
  margin: 2em 0;
}

/* === HERO SECTION === */
.hero-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

/* === STARS LAYER === */
.stars-layer {
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(245,197,24,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(96,165,250,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 75%, rgba(245,197,24,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 90% 80%, rgba(245,197,24,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 55%, rgba(96,165,250,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 30%, rgba(255,255,255,0.7) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.4; }
  50%  { opacity: 0.8; }
  100% { opacity: 0.5; }
}

/* === BONUS BADGE === */
.bonus-badge {
  position: relative;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 197, 24, 0.2), 0 0 60px rgba(245, 197, 24, 0.1); }
  50%       { box-shadow: 0 0 40px rgba(245, 197, 24, 0.4), 0 0 80px rgba(245, 197, 24, 0.2); }
}

/* === NAV LINK === */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f5c518;
  transition: width 0.3s ease;
}

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

/* === CTA BUTTON === */
.cta-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cta-btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.cta-btn-primary:hover::before {
  transform: translateX(100%);
}

.cta-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(245, 197, 24, 0.5);
}

/* === REVIEW CARDS === */
.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 111, 232, 0.15);
}

/* === PROMO CARDS === */
.promo-card {
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a6fe8, #f5c518, #1a6fe8);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.promo-card:hover::before {
  transform: scaleX(1);
}

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

.game-card:hover {
  box-shadow: 0 16px 40px rgba(245, 197, 24, 0.2);
}

/* === WORD CLOUD === */
.word-cloud {
  line-height: 1.8;
}

.provider-tag {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  color: #f5c518 !important;
  transform: scale(1.1);
}

/* === STEP BADGES === */
.step-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover .step-badge {
  transform: scale(1.1);
}

/* === FAQ === */
.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  transition: background 0.2s;
}

.faq-trigger:hover {
  background: rgba(26, 111, 232, 0.1);
}

.faq-item {
  transition: border-color 0.2s;
}

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

.faq-answer {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === MARQUEE === */
.marquee-wrapper {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

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

/* === NEBULA BACKGROUND DECORATION === */
.nebula-bg {
  position: relative;
  overflow: hidden;
}

.nebula-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 111, 232, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.nebula-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

/* === PARALLAX BASE === */
.parallax-layer {
  will-change: transform;
}

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

  .hero-section h1 { font-size: 1.75rem; }
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: 90vh;
  }
}

/* === UTILITY === */
.text-shadow-gold {
  text-shadow: 0 0 20px rgba(245, 197, 24, 0.5);
}

.border-glow-gold {
  box-shadow: 0 0 15px rgba(245, 197, 24, 0.3);
}

.border-glow-blue {
  box-shadow: 0 0 15px rgba(26, 111, 232, 0.3);
}

/* === CONTAINER MAX WIDTH === */
.max-w-container {
  max-width: 1440px;
}
