/* =============================================================
   NoodleSpin Casino – Custom CSS
   Bohemian Twist: Ruby Red + Gold on Dark Polished backdrop
   ============================================================= */

/* --- Base reset & overflow handling --- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body {
  background-color: #0D0D0D;
  color: #F5F0E8;
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1A1A1A; }
::-webkit-scrollbar-thumb { background: #C0152B; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #D4A017; }

/* =============================================================
   TYPOGRAPHY
   ============================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #F0C040;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: #888888;
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

/* =============================================================
   BUTTONS
   ============================================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, #C0152B, #8B0E1D);
  color: #F0C040;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #D4A017;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E8213C, #C0152B);
  box-shadow: 0 0 18px rgba(192, 21, 43, 0.5);
  transform: translateY(-1px);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, #C0152B, #8B0E1D);
  color: #F0C040;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 0.75rem;
  border: 2px solid #D4A017;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(192, 21, 43, 0.4);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #E8213C, #C0152B);
  box-shadow: 0 6px 30px rgba(192, 21, 43, 0.65);
  transform: translateY(-2px) scale(1.02);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem;
  background: transparent;
  color: #F0C040;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 0.75rem;
  border: 2px solid #D4A017;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-hero-secondary:hover {
  background: rgba(212, 160, 23, 0.15);
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
  transform: translateY(-2px);
}

.btn-game-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.4rem 0;
  background: linear-gradient(135deg, #C0152B, #8B0E1D);
  color: #F0C040;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid #D4A017;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-game-cta:hover {
  background: linear-gradient(135deg, #E8213C, #C0152B);
  box-shadow: 0 3px 12px rgba(192, 21, 43, 0.5);
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #C0152B, #8B0E1D);
  color: #F0C040;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #D4A017;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-promo:hover {
  background: linear-gradient(135deg, #E8213C, #C0152B);
  box-shadow: 0 4px 16px rgba(192, 21, 43, 0.5);
  transform: translateY(-1px);
}

.btn-step-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.5rem;
  background: linear-gradient(135deg, #D4A017, #A07010);
  color: #0D0D0D;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #F0C040;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-step-cta:hover {
  background: linear-gradient(135deg, #F0C040, #D4A017);
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.5);
  transform: translateY(-1px);
}

/* =============================================================
   NAVIGATION
   ============================================================= */

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  color: #F5F0E8;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #F0C040;
  background: rgba(192, 21, 43, 0.15);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #F5F0E8;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: #F0C040;
  background: rgba(192, 21, 43, 0.15);
  border-left-color: #C0152B;
}

.footer-link {
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #F0C040;
}

/* =============================================================
   CARDS & COMPONENTS
   ============================================================= */

.game-card {
  display: flex;
  flex-direction: column;
}

.review-card {
  background: #1A1A1A;
  border: 1px solid rgba(192, 21, 43, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.promo-card {
  background: #1A1A1A;
  border: 1px solid rgba(192, 21, 43, 0.2);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 8px 30px rgba(192, 21, 43, 0.2);
  transform: translateY(-4px);
}

.promo-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-card {
  background: #1A1A1A;
  border: 1px solid rgba(192, 21, 43, 0.25);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 8px 24px rgba(192, 21, 43, 0.2);
}

.step-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #C0152B, #8B0E1D);
  border: 2px solid #D4A017;
  color: #F0C040;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Single timeline connector between step icons (desktop) */
@media (min-width: 768px) {
  .steps-connector-grid::before {
    content: '';
    position: absolute;
    top: 4rem;
    left: calc((100% - 4rem) / 6 + 2rem);
    right: calc((100% - 4rem) / 6 + 2rem);
    height: 2px;
    background: linear-gradient(90deg, #C0152B 0%, #D4A017 50%, #C0152B 100%);
    pointer-events: none;
    z-index: 0;
  }

  .steps-connector-grid .step-card {
    position: relative;
    z-index: 1;
  }
}

/* Bonus badge pulse animation */
.bonus-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(192, 21, 43, 0.4), 0 0 40px rgba(212, 160, 23, 0.2); }
  50% { box-shadow: 0 0 35px rgba(192, 21, 43, 0.7), 0 0 60px rgba(212, 160, 23, 0.4); }
}

/* =============================================================
   PROVIDER WORD CLOUD
   ============================================================= */

.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.provider-tag {
  color: #D4A017;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
  line-height: 1.2;
}

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

/* =============================================================
   FAQ
   ============================================================= */

.faq-item {
  background: #1A1A1A;
  border: 1px solid rgba(192, 21, 43, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(212, 160, 23, 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #F5F0E8;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(192, 21, 43, 0.1);
}

.faq-question[aria-expanded="true"] {
  color: #F0C040;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 0.5rem;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
  color: #F0C040;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: #888888;
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-answer-open {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

/* =============================================================
   TABLES
   ============================================================= */

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table th {
  background: rgba(192, 21, 43, 0.15);
  color: #F0C040;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(192, 21, 43, 0.3);
  white-space: nowrap;
}

table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #D0C8BC;
  vertical-align: middle;
}

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

table tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* =============================================================
   PROSE CASINO (Single pages)
   ============================================================= */

.prose-casino {
  color: #D0C8BC;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 100%;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #F0C040;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.prose-casino h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F0C040;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(212, 160, 23, 0.25);
}

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

.prose-casino p {
  margin-bottom: 1.1rem;
  color: #D0C8BC;
}

.prose-casino a {
  color: #F0C040;
  text-decoration: underline;
  text-decoration-color: rgba(240, 192, 64, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.prose-casino a:hover {
  color: #D4A017;
  text-decoration-color: #D4A017;
}

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

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

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

.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
  counter-reset: item;
  list-style: none;
}

.prose-casino ol li {
  counter-increment: item;
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
  color: #D0C8BC;
}

.prose-casino ol li::before {
  content: counter(item) ".";
  color: #D4A017;
  font-weight: 700;
  margin-right: 0.5rem;
}

.prose-casino blockquote {
  border-left: 3px solid #C0152B;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(192, 21, 43, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #F5F0E8;
  font-style: italic;
}

.prose-casino code {
  background: rgba(192, 21, 43, 0.15);
  color: #F0C040;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.prose-casino pre {
  background: #141414;
  border: 1px solid rgba(192, 21, 43, 0.2);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

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

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(192, 21, 43, 0.25);
  margin: 2rem 0;
}

/* Prose table scroll wrapper */
.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;
}

.prose-casino thead tr {
  background: rgba(192, 21, 43, 0.15);
}

.prose-casino thead th {
  color: #F0C040;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(192, 21, 43, 0.3);
  text-align: left;
}

.prose-casino tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #D0C8BC;
}

/* =============================================================
   MARQUEE ANIMATION
   ============================================================= */

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marqueeScroll 30s linear infinite;
}

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

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

/* =============================================================
   PARALLAX HERO
   ============================================================= */

@media (prefers-reduced-motion: no-preference) {
  .parallax-hero {
    background-attachment: fixed;
  }
}

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

/* =============================================================
   GLOW & SHIMMER EFFECTS
   ============================================================= */

.gold-glow {
  text-shadow: 0 0 20px rgba(212, 160, 23, 0.5);
}

.red-glow {
  text-shadow: 0 0 20px rgba(192, 21, 43, 0.6);
}

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

.shimmer-text {
  background: linear-gradient(90deg, #D4A017 0%, #F0C040 40%, #D4A017 60%, #A07010 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* =============================================================
   RESPONSIVE UTILITIES
   ============================================================= */

@media (max-width: 640px) {
  .section-title {
    font-size: 1.5rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================
   STAR RATING
   ============================================================= */

.star-rating {
  color: #D4A017;
  letter-spacing: 2px;
}

/* =============================================================
   ACCESSIBILITY
   ============================================================= */

:focus-visible {
  outline: 2px solid #D4A017;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
