/*
 * TycoonWin Casino – Custom CSS
 * Theme: Stahl Fortune (Graphite + Electric Blue)
 * Mobile-first, max-width 1440px
 */

/* ============================================================
   BASE RESETS & ROOT
============================================================ */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0d0f12;
  color: #e5e7eb;
  font-family: 'Inter', system-ui, sans-serif;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ============================================================
   TABLE SCROLL WRAPPER (mandatory)
============================================================ */

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

/* ============================================================
   PROSE CASINO STYLES
============================================================ */

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

.prose-casino h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #29b8ff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.prose-casino h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2d3748;
}

.prose-casino h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.prose-casino p {
  margin-bottom: 1.25rem;
  color: #9ca3af;
}

.prose-casino a {
  color: #29b8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.prose-casino ul li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #9ca3af;
}

.prose-casino ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00aaff;
}

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

.prose-casino ol li {
  color: #9ca3af;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.prose-casino blockquote {
  border-left: 4px solid #00aaff;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #1a2030;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #d1d5db;
  font-style: italic;
}

.prose-casino code {
  background: #1a2030;
  color: #60ceff;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose-casino pre {
  background: #13171d;
  border: 1px solid #2d3748;
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

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

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

.prose-casino hr {
  border: none;
  border-top: 1px solid #2d3748;
  margin: 2rem 0;
}

/* Prose Table Scroll (mandatory) */
.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%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #13171d;
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 1.5rem 0;
}

.prose-casino thead {
  background: #1a2030;
}

.prose-casino th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  white-space: nowrap;
}

.prose-casino td {
  padding: 0.75rem 1rem;
  color: #9ca3af;
  border-top: 1px solid #2d3748;
  white-space: nowrap;
}

.prose-casino tr:hover td {
  background: #1a2030;
}

/* ============================================================
   ANIMATIONS
============================================================ */

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

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

/* Parallax Hero */
.hero-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Scroll dot bounce */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.scroll-dot {
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 170, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px 8px rgba(0, 170, 255, 0.25);
  }
}

.bonus-badge {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Shimmer for CTA buttons */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.cta-primary {
  background-size: 200% auto;
  background-image: linear-gradient(90deg, #00aaff 0%, #60ceff 50%, #00aaff 100%);
  animation: shimmer 3s linear infinite;
  color: #0d0f12;
}

.cta-primary:hover {
  animation-play-state: paused;
  background-image: linear-gradient(90deg, #29b8ff 0%, #a0e0ff 50%, #29b8ff 100%);
}

/* ============================================================
   BACKGROUND PATTERNS
============================================================ */

.metal-grid-pattern {
  background-image:
    linear-gradient(rgba(0, 170, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 170, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

.steel-pattern {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 6px,
      rgba(0, 170, 255, 0.04) 6px,
      rgba(0, 170, 255, 0.04) 12px
    );
}

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

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

/* ============================================================
   GAME CARDS
============================================================ */

.game-card {
  cursor: pointer;
}

.game-card .aspect-\[3\/4\] {
  aspect-ratio: 3/4;
}

/* ============================================================
   PROMO CARDS
============================================================ */

.promo-card {
  position: relative;
  z-index: 1;
}

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

.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
}

.provider-tag {
  cursor: default;
  transition: color 0.2s ease;
  line-height: 1.2;
}

.provider-tag:hover {
  color: #29b8ff !important;
}

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

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

.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.faq-trigger:focus-visible {
  outline: 2px solid #00aaff;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ============================================================
   MOBILE BURGER MENU
============================================================ */

#mobile-menu {
  transition: opacity 0.2s ease;
}

/* ============================================================
   UTILITY
============================================================ */

.max-w-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #13171d;
}

::-webkit-scrollbar-thumb {
  background: #2d3748;
  border-radius: 4px;
}

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

/* Selection */
::selection {
  background: rgba(0, 170, 255, 0.3);
  color: #ffffff;
}

/* Focus ring */
:focus-visible {
  outline: 2px solid #00aaff;
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
============================================================ */

/* Mobile: up to 640px */
@media (max-width: 640px) {
  .prose-casino h1 {
    font-size: 1.5rem;
  }

  .prose-casino h2 {
    font-size: 1.25rem;
  }

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

/* Tablet: 641px – 1023px */
@media (min-width: 641px) and (max-width: 1023px) {
  .prose-casino h1 {
    font-size: 1.75rem;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .step-connector {
    display: block;
  }
}

/* Large Desktop: 1440px+ */
@media (min-width: 1440px) {
  .max-w-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Print */
@media print {
  #site-header,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
