/* =============================================================
   FortaWin Casino – Custom CSS
   Champagne Gold + Deep Sapphire on Velvet Dark
   ============================================================= */

/* --- Base Reset & Overflow ---------------------------------- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
}

* {
  box-sizing: border-box;
}

/* --- Typography -------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Scrollbar Styling ------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0d0920;
}
::-webkit-scrollbar-thumb {
  background: #1033a8;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffc107;
}

/* --- Prose Casino Styles ----------------------------------- */
.prose-casino {
  color: #f5e6c8;
  line-height: 1.75;
  font-size: 1rem;
  word-break: break-word;
}

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

.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: 1rem;
  color: rgba(245, 230, 200, 0.85);
}

.prose-casino a {
  color: #ffc107;
  text-decoration: underline;
  transition: color 0.2s;
}
.prose-casino a:hover {
  color: #ffd44a;
}

.prose-casino strong {
  color: #f5e6c8;
  font-weight: 600;
}

.prose-casino ul,
.prose-casino ol {
  margin: 1rem 0 1rem 1.5rem;
  color: rgba(245, 230, 200, 0.8);
}

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

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

.prose-casino blockquote {
  border-left: 4px solid #ffc107;
  padding-left: 1rem;
  color: rgba(245, 230, 200, 0.7);
  font-style: italic;
  margin: 1.5rem 0;
}

.prose-casino hr {
  border-color: rgba(16, 51, 168, 0.4);
  margin: 2rem 0;
}

.prose-casino code {
  background: rgba(16, 51, 168, 0.3);
  color: #ffd44a;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose-casino pre {
  background: #030d30;
  border: 1px solid rgba(16, 51, 168, 0.5);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
}

/* --- 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;
}

/* --- Table Styles ----------------------------------------- */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: rgba(245, 230, 200, 0.85);
}

.prose-casino thead tr {
  background: rgba(16, 51, 168, 0.5);
}

.prose-casino th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #ffd44a;
  font-weight: 600;
  border-bottom: 1px solid rgba(16, 51, 168, 0.6);
}

.prose-casino td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(16, 51, 168, 0.2);
}

.prose-casino tbody tr:nth-child(even) {
  background: rgba(13, 9, 32, 0.4);
}

.prose-casino tbody tr:hover {
  background: rgba(26, 21, 48, 0.6);
}

/* --- Overflow Table Wrapper (global) ----------------------- */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* --- Animations ------------------------------------------- */

/* Parallax hero effect */
.parallax-bg {
  will-change: transform;
  transform: translateZ(0);
}

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

.marquee-track {
  animation: marquee 28s linear infinite;
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  will-change: transform;
}

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

/* Sparkle Pulse */
@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}

.sparkle {
  animation: sparkle-pulse 2.5s ease-in-out infinite;
}

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

.gold-shimmer {
  background: linear-gradient(
    90deg,
    #ffc107 0%,
    #fff8dc 40%,
    #ffc107 60%,
    #e6a800 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 3s linear 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-out both;
}

/* Bounce glow */
@keyframes bounce-glow {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.4);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 0 24px rgba(255, 193, 7, 0.8);
  }
}

.bounce-glow {
  animation: bounce-glow 2.5s ease-in-out infinite;
}

/* Scale pulse */
@keyframes scale-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

.scale-pulse {
  animation: scale-pulse 3s ease-in-out infinite;
}

/* Rotating ring */
@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.rotate-ring {
  animation: rotate-ring 8s linear infinite;
}

/* --- Card Hover Effects ------------------------------------ */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 193, 7, 0.15);
}

/* --- Gradient Borders -------------------------------------- */
.border-gradient-gold {
  position: relative;
  border-radius: 1rem;
}

.border-gradient-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #ffc107, #1033a8, #ffc107);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Sticky Header ---------------------------------------- */
header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Button Styles ---------------------------------------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #ffc107;
  color: #0d0920;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
}

.btn-gold:hover {
  background: #ffd44a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #f5e6c8;
  font-weight: 600;
  border: 2px solid rgba(102, 144, 255, 0.6);
  border-radius: 9999px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: #ffc107;
  color: #ffc107;
}

/* --- Game Card --------------------------------------------- */
.game-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: scale(1.03);
}

.game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover img {
  transform: scale(1.08);
}

/* --- FAQ Styles ------------------------------------------- */
.faq-answer {
  transition: all 0.3s ease;
}

.faq-btn {
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-btn:focus {
  outline: 2px solid #ffc107;
  outline-offset: -2px;
}

/* --- Step Badge ------------------------------------------- */
.step-badge {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: #ffc107;
  color: #0d0920;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
}

/* --- Payment table status badges -------------------------- */
.table-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.25;
  vertical-align: middle;
  max-width: max-content;
}

.payment-methods-table td:last-child,
.payment-methods-table th:last-child {
  min-width: 7.5rem;
  width: 7.5rem;
}

@media (max-width: 640px) {
  .payment-methods-scroll {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-bottom: 0.25rem;
  }

  .payment-methods-table th,
  .payment-methods-table td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .payment-methods-table td:last-child,
  .payment-methods-table th:last-child {
    min-width: 6.75rem;
    width: 6.75rem;
    padding-right: 0.75rem;
  }

  .table-status-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    gap: 0.2rem;
  }
}

/* --- Responsive Tables ------------------------------------ */
@media (max-width: 640px) {
  .prose-casino table {
    font-size: 0.8rem;
  }

  .prose-casino th,
  .prose-casino td {
    padding: 0.5rem 0.75rem;
  }
}

/* --- Container -------------------------------------------- */
.max-w-container {
  max-width: 1440px;
}

/* --- Word Cloud Styles ------------------------------------ */
.provider-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.provider-tag:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* --- Selection Color -------------------------------------- */
::selection {
  background: rgba(255, 193, 7, 0.3);
  color: #f5e6c8;
}

/* --- Focus Visible ---------------------------------------- */
*:focus-visible {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

/* --- Print Styles ----------------------------------------- */
@media print {
  header, footer, .faq-btn { display: none; }
  body { background: white; color: black; }
}
