/* =============================================================
   FortaWinCasino — custom.css
   Platinum & Deep Emerald luxury casino theme
   ============================================================= */

/* ---------- Base ---------- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

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

body {
  background-color: #0b1120;
  color: #e5e4e2;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #060c17; }
::-webkit-scrollbar-thumb { background: #10b981; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #059669; }

/* ---------- Hero ---------- */
.hero-section {
  min-height: 100vh;
}

.hero-bg {
  background-attachment: fixed;
  will-change: transform;
}

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

.hero-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='%2310b981' fill-opacity='0.4'%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");
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(6, 12, 23, 0.55) 0%,
    rgba(6, 12, 23, 0.80) 60%,
    rgba(6, 12, 23, 0.97) 100%
  );
}

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

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 18px 3px rgba(212,175,55,0.35); }
  50%       { box-shadow: 0 0 32px 8px rgba(212,175,55,0.6); }
}

/* ---------- CTA Buttons ---------- */
.cta-primary {
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 32px 6px rgba(16,185,129,0.5);
}

.cta-secondary {
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-secondary:hover {
  transform: translateY(-2px) scale(1.03);
}

/* ---------- Marquee / Game Strip ---------- */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

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

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

/* ---------- Game Cards ---------- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px 4px rgba(16,185,129,0.3);
}

/* ---------- Promo Cards ---------- */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ---------- Step Cards ---------- */
.steps-grid {
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 4rem;
    left: 16.666%;
    width: 66.666%;
    height: 2px;
    background: linear-gradient(
      to right,
      #10b981 0%,
      #d4af37 50%,
      #10b981 100%
    );
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
  }

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

}

.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.step-badge {
  font-size: 1.4rem;
}

/* ---------- Provider Word Cloud ---------- */
.provider-tag {
  transition: transform 0.2s ease, border-color 0.2s, color 0.2s;
}
.provider-tag:hover {
  transform: scale(1.08);
}

/* ---------- FAQ ---------- */
.faq-item {
  transition: border-color 0.2s;
}
.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: #10b981;
}

.faq-trigger {
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
}
.faq-trigger:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.faq-content {
  animation: faq-open 0.25s ease-out;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Navigation ---------- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #10b981;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.cta-btn-nav {
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px 4px rgba(16,185,129,0.4);
}

/* ---------- Tables ---------- */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.75rem 1rem;
  text-align: left;
  word-break: normal;
  overflow-wrap: normal;
}

thead tr {
  background-color: #1a2535;
}

tbody tr:nth-child(even) {
  background-color: rgba(26, 37, 53, 0.5);
}

/* Payments table — card layout on mobile */
@media (max-width: 767px) {
  .payments-table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
  }

  .payments-table thead {
    display: none;
  }

  .payments-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #1e3a2f;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #060c17;
  }

  .payments-table tbody tr:hover {
    background-color: #060c17;
  }

  .payments-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1e3a2f;
  }

  .payments-table tbody td:last-child {
    border-bottom: none;
  }

  .payments-table-method {
    background-color: #1a2535;
    justify-content: flex-start;
  }

  .payments-table tbody td:not(.payments-table-method)::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #d4af37;
    max-width: 48%;
  }

  .payments-table tbody td:not(.payments-table-method) {
    text-align: right;
  }
}

/* Bonus params table — stacked rows on mobile */
@media (max-width: 639px) {
  .bonus-params-table-wrap {
    overflow-x: visible;
  }

  .bonus-params-table thead {
    display: none;
  }

  .bonus-params-table tbody tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #1e3a2f;
  }

  .bonus-params-table tbody tr:last-child {
    border-bottom: none;
  }

  .bonus-params-table td {
    display: block;
    padding: 0.2rem 0;
  }

  .bonus-params-table td:first-child {
    font-weight: 700;
    color: #d4af37;
    font-size: 0.8rem;
  }

  .bonus-params-table td:last-child {
    color: #d1d5db;
    padding-bottom: 0.25rem;
  }
}

/* Tablet: wide payments table scrolls instead of crushing columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .payments-table {
    min-width: 52rem;
  }
}

/* ---------- Prose / Single Pages ---------- */
.prose-casino {
  color: #d1d5db;
  max-width: 100%;
  line-height: 1.75;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #d4af37;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }

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

.prose-casino a {
  color: #10b981;
  text-decoration: underline;
  text-decoration-color: rgba(16,185,129,0.4);
  transition: color 0.2s;
}
.prose-casino a:hover {
  color: #34d399;
}

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

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

.prose-casino blockquote {
  border-left: 4px solid #10b981;
  padding-left: 1em;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5em 0;
}

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

.prose-casino em {
  color: #d4af37;
}

.prose-casino hr {
  border-color: #1e3a2f;
  margin: 2em 0;
}

.prose-casino code {
  background: #1a2535;
  color: #10b981;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose-casino pre {
  background: #1a2535;
  border: 1px solid #1e3a2f;
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1em;
}

.prose-casino pre code {
  background: transparent;
  padding: 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.9em;
  border: 1px solid #1e3a2f;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-casino th {
  background: #1a2535;
  color: #d4af37;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
}

.prose-casino td {
  color: #d1d5db;
  padding: 0.65rem 1rem;
  border-top: 1px solid #1e3a2f;
}

.prose-casino tbody tr:hover {
  background: rgba(16,185,129,0.05);
}

/* ---------- Single page container ---------- */
.prose-single {
  padding-top: 1.5rem;
}

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

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

/* ---------- Parallax helper ---------- */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* ---------- Glow Utilities ---------- */
.glow-emerald {
  box-shadow: 0 0 24px 4px rgba(16,185,129,0.35);
}
.glow-gold {
  box-shadow: 0 0 18px 3px rgba(212,175,55,0.4);
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .bonus-badge {
    padding: 1.25rem;
  }

  .step-badge {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .bonus-badge {
    animation: none;
  }
  .hero-bg {
    background-attachment: scroll;
  }
}
