/* ============================================================
   SpinStag Casino – Custom CSS
   Northern Antlers Theme: Sapphire, Silver, Aurora
   ============================================================ */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  word-break: break-word;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #0a0f1e;
  color: #e8f2fc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   CTA Buttons
   ============================================================ */
.btn-cta-primary {
  background: linear-gradient(135deg, #1e6ec8 0%, #00e5b4 100%);
  color: #0a0f1e;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 229, 180, 0.35);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 180, 0.5);
  opacity: 0.95;
  color: #0a0f1e;
}

.btn-cta-secondary {
  background: transparent;
  color: #5ab4f0;
  font-weight: 700;
  border: 2px solid #5ab4f0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-cta-secondary:hover {
  background: #5ab4f0;
  color: #0a0f1e;
  transform: translateY(-2px);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  position: relative;
}

.hero-bg {
  will-change: transform;
}

/* Parallax effect for hero bg */
@media (min-width: 768px) {
  .hero-bg {
    background-attachment: fixed;
  }
}

/* ============================================================
   Bonus Badge
   ============================================================ */
.bonus-badge {
  background: linear-gradient(135deg, rgba(26, 74, 138, 0.9) 0%, rgba(13, 26, 58, 0.95) 100%);
  border: 2px solid rgba(90, 180, 240, 0.6);
  box-shadow: 0 0 40px rgba(0, 229, 180, 0.2), inset 0 0 60px rgba(0, 229, 180, 0.05);
  backdrop-filter: blur(10px);
}

/* ============================================================
   Aurora Animation
   ============================================================ */
.aurora-wave {
  animation: auroraFloat 8s ease-in-out infinite alternate;
  transform-origin: center;
}

.aurora-wave-2 {
  animation: auroraFloat2 10s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes auroraFloat {
  0% { transform: translateY(0) scaleX(1); opacity: 0.15; }
  50% { transform: translateY(-30px) scaleX(1.05); opacity: 0.25; }
  100% { transform: translateY(10px) scaleX(0.97); opacity: 0.18; }
}

@keyframes auroraFloat2 {
  0% { transform: translateY(0) scaleX(1) translateX(0); opacity: 0.08; }
  50% { transform: translateY(-20px) scaleX(1.1) translateX(30px); opacity: 0.14; }
  100% { transform: translateY(15px) scaleX(0.95) translateX(-20px); opacity: 0.1; }
}

/* ============================================================
   Section Pattern
   ============================================================ */
.section-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235ab4f0' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   Step Cards
   ============================================================ */
.step-card {
  background: linear-gradient(135deg, rgba(26, 74, 138, 0.4) 0%, rgba(13, 26, 58, 0.8) 100%);
  border: 1px solid rgba(90, 180, 240, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 229, 180, 0.15);
  border-color: rgba(0, 229, 180, 0.5);
}

.step-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5b4, #1e6ec8);
  color: #0a0f1e;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 229, 180, 0.4);
  z-index: 10;
}

/* ============================================================
   Game Cards
   ============================================================ */
.game-card {
  background: rgba(13, 26, 58, 0.8);
  border: 1px solid rgba(90, 180, 240, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 229, 180, 0.2);
  border-color: rgba(0, 229, 180, 0.4);
}

/* ============================================================
   Promo Cards
   ============================================================ */
.promo-card {
  background: linear-gradient(135deg, rgba(26, 74, 138, 0.35) 0%, rgba(13, 26, 58, 0.75) 100%);
  border: 1px solid rgba(90, 180, 240, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0, 229, 180, 0.15);
  border-color: rgba(0, 229, 180, 0.45);
}

/* ============================================================
   Review Blocks
   ============================================================ */
.review-block {
  background: linear-gradient(135deg, rgba(13, 26, 58, 0.9) 0%, rgba(26, 74, 138, 0.3) 100%);
  border: 1px solid rgba(90, 180, 240, 0.2);
}

/* ============================================================
   Provider Word Cloud
   ============================================================ */
.provider-cloud {
  line-height: 1.8;
}

.provider-tag {
  display: inline-block;
  color: #5ab4f0;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
  padding: 2px 4px;
}

.provider-tag:hover {
  color: #00e5b4;
  transform: scale(1.05);
}

.provider-tag:nth-child(3n+1) { color: #5ab4f0; }
.provider-tag:nth-child(3n+2) { color: #a8c0d8; }
.provider-tag:nth-child(3n) { color: #00e5b4; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  background: rgba(13, 26, 58, 0.7);
  border: 1px solid rgba(90, 180, 240, 0.2);
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(0, 229, 180, 0.4);
}

.faq-question {
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(90, 180, 240, 0.08);
}

.faq-answer {
  border-top: 1px solid rgba(90, 180, 240, 0.15);
  padding-top: 1rem;
}

/* ============================================================
   Marquee Animation
   ============================================================ */
.marquee-section {
  background: linear-gradient(90deg, #1a4a8a 0%, #1e6ec8 50%, #1a4a8a 100%);
}

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

.marquee-item {
  display: inline-block;
  margin: 0 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8f2fc;
  letter-spacing: 0.05em;
}

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

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

/* ============================================================
   Burger Menu Active State
   ============================================================ */
#burger-btn.menu-open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#burger-btn.menu-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#burger-btn.menu-open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   Prose / Content Styling
   ============================================================ */
.prose-casino {
  color: #c8d8e8;
  line-height: 1.75;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #5ab4f0;
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.75em;
}

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

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

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

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

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

.prose-casino ul { list-style-type: disc; }
.prose-casino ol { list-style-type: decimal; }

.prose-casino li {
  margin-bottom: 0.5em;
}

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

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

.prose-casino blockquote {
  border-left: 4px solid #1e6ec8;
  padding-left: 1rem;
  margin: 1.5em 0;
  color: #a8c0d8;
  font-style: italic;
  background: rgba(26, 74, 138, 0.2);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.5rem;
}

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

.prose-casino th {
  background: #1a4a8a;
  color: #e8f2fc;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(90, 180, 240, 0.3);
}

.prose-casino td {
  padding: 0.65rem 1rem;
  color: #c8d8e8;
  border: 1px solid rgba(90, 180, 240, 0.15);
}

.prose-casino tr:nth-child(even) td {
  background: rgba(26, 74, 138, 0.15);
}

.prose-casino tr:hover td {
  background: rgba(90, 180, 240, 0.1);
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(90, 180, 240, 0.25);
  margin: 2em 0;
}

.prose-casino code {
  background: rgba(26, 74, 138, 0.4);
  color: #00e5b4;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose-casino pre {
  background: rgba(13, 26, 58, 0.9);
  border: 1px solid rgba(90, 180, 240, 0.2);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.prose-casino pre code {
  background: transparent;
  padding: 0;
  color: #c8d8e8;
}

/* ============================================================
   Mandatory Prose Casino 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;
}

/* ============================================================
   General Table Overflow Wrapper
   ============================================================ */
div.overflow-x-auto table {
  min-width: 600px;
}

/* ============================================================
   Scrollbar Styling
   ============================================================ */
::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0d1a3a;
}

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

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

/* ============================================================
   Focus / Accessibility
   ============================================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #00e5b4;
  outline-offset: 3px;
  border-radius: 2px;
}

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

.antler-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1e6ec8, #00e5b4);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* Glowing text effect for headings */
.glow-text {
  text-shadow: 0 0 20px rgba(0, 229, 180, 0.5), 0 0 40px rgba(90, 180, 240, 0.3);
}

/* Ice border glow */
.ice-border {
  border: 1px solid rgba(90, 180, 240, 0.4);
  box-shadow: 0 0 15px rgba(90, 180, 240, 0.1), inset 0 0 15px rgba(90, 180, 240, 0.03);
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */
@media (max-width: 640px) {
  .marquee-item {
    margin: 0 1.5rem;
    font-size: 0.78rem;
  }

  .step-badge {
    width: 30px;
    height: 30px;
    font-size: 14px;
    top: -14px;
  }

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

  .bonus-badge {
    padding: 1rem;
  }
}

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