/* =====================================================
   FortaWinCasino – Custom CSS
   Deep Emerald & Gold | Dark Polished Casino Theme
   ===================================================== */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #07120e;
  color: #f5f0e8;
}

/* =====================================================
   PROSE / CONTENT STYLING
   ===================================================== */

.prose-casino {
  color: #d4cfc5;
  max-width: 100%;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2rem;
  margin-top: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(201, 168, 76, 0.35);
  margin-bottom: 1.25em;
}

.prose-casino h2 { font-size: 1.6rem; color: #e2c26a; }
.prose-casino h3 { font-size: 1.3rem; color: #c9a84c; }
.prose-casino h4 { font-size: 1.1rem; color: #c9a84c; }

.prose-casino > :first-child {
  margin-top: 0;
}

.prose-casino > :last-child {
  margin-bottom: 0;
}

.prose-casino blockquote p {
  color: inherit;
  margin-bottom: 0;
}

.prose-casino p {
  line-height: 1.75;
  margin-bottom: 1em;
  color: #a89b7e;
}

.prose-casino a {
  color: #c9a84c;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

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

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

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

/* Tailwind Preflight sets list-style: none on ul/ol — restore here */
.prose-casino ul {
  list-style-type: disc;
  list-style-position: outside;
}

.prose-casino ol {
  list-style-type: decimal;
  list-style-position: outside;
}

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

.prose-casino li::marker {
  color: #c9a84c;
}

.prose-casino blockquote {
  border-left: 4px solid #1a5c38;
  padding: 0.75rem 1.25rem;
  background: rgba(26,92,56,0.1);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #c9a84c;
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(26,92,56,0.3);
  margin: 2em 0;
}

.prose-casino code {
  background: rgba(26,92,56,0.2);
  color: #c9a84c;
  padding: 0.2em 0.5em;
  border-radius: 0.3em;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose-casino pre {
  background: #0d1f17;
  border: 1px solid rgba(26,92,56,0.3);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* 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;
  border: 1px solid rgba(26, 92, 56, 0.35);
  background: rgba(13, 31, 23, 0.65);
}

.prose-casino .prose-table-scroll table {
  min-width: 480px;
  margin-top: 0;
  margin-bottom: 0;
}

/* All tables inside prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #a89b7e;
  margin: 1.5em 0;
}

.prose-casino thead tr {
  background-color: rgba(26,92,56,0.25);
}

.prose-casino th {
  color: #c9a84c;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid rgba(26,92,56,0.3);
}

.prose-casino td {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(26,92,56,0.2);
  color: #d4cfc5;
}

.prose-casino tbody tr:hover {
  background-color: rgba(26,92,56,0.1);
}

/* Generic overflow-x wrapper */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(201,168,76,0.05) 0px,
      rgba(201,168,76,0.05) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(26,92,56,0.05) 0px,
      rgba(26,92,56,0.05) 1px,
      transparent 1px,
      transparent 12px
    );
}

.hero-parallax {
  background-attachment: fixed;
}

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

/* =====================================================
   BONUS BADGE
   ===================================================== */

.bonus-badge {
  background: linear-gradient(
    135deg,
    rgba(13,31,23,0.95) 0%,
    rgba(26,92,56,0.3) 50%,
    rgba(13,31,23,0.95) 100%
  );
  box-shadow:
    0 0 30px rgba(201,168,76,0.3),
    inset 0 1px 0 rgba(201,168,76,0.2);
  backdrop-filter: blur(10px);
  overflow: visible;
}

.bonus-badge-label {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

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

.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.cta-primary:hover::before {
  left: 120%;
}

/* =====================================================
   REVIEW CARDS
   ===================================================== */

.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.15);
}

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

.provider-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(26,92,56,0.2);
  border: 1px solid rgba(26,92,56,0.4);
  border-radius: 999px;
  color: #a89b7e;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: default;
}

.provider-tag:hover {
  background: rgba(26,92,56,0.4);
  color: #f5f0e8;
  border-color: rgba(201,168,76,0.4);
}

.provider-tag--gold {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.3);
  color: #c9a84c;
  font-size: 0.8rem;
}

.provider-tag--gold:hover {
  background: rgba(201,168,76,0.2);
  color: #e2c26a;
}

.provider-tag--lg {
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}

.provider-tag--sm {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
}

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

.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(201,168,76,0.2);
}

/* =====================================================
   STEP CARDS
   ===================================================== */

.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.15);
}

.step-badge {
  position: relative;
}

.step-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.2);
  animation: pulse-ring 2s ease-out infinite;
}

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

.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.15);
}

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

.faq-item {
  transition: border-color 0.2s;
}

.faq-item:has(.faq-toggle[aria-expanded="true"]) {
  border-color: rgba(201,168,76,0.5);
}

.faq-toggle {
  cursor: pointer;
  transition: background 0.2s;
}

.faq-toggle:hover {
  background: rgba(26,92,56,0.15);
}

.faq-toggle[aria-expanded="true"] {
  background: rgba(26,92,56,0.2);
}

.faq-answer {
  animation: slide-down 0.25s ease;
}

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

.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-inner {
  display: inline-flex;
  animation: marquee-scroll 35s linear infinite;
  will-change: transform;
}

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

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

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

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.3); }
  50%       { box-shadow: 0 0 40px rgba(201,168,76,0.6); }
}

.animate-pulse-slow {
  animation: glow-pulse 4s ease-in-out infinite;
}

.animate-pulse-slower {
  animation: glow-pulse 6s ease-in-out infinite;
}

.animate-float {
  animation: float-up 3s ease-in-out infinite;
}

/* =====================================================
   STICKY HEADER TRANSITIONS
   ===================================================== */

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

/* =====================================================
   SCROLLBAR STYLING
   ===================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #07120e;
}

::-webkit-scrollbar-thumb {
  background: #1a5c38;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c9a84c;
}

/* =====================================================
   SELECTION STYLING
   ===================================================== */

::selection {
  background: rgba(201,168,76,0.3);
  color: #ffffff;
}

/* =====================================================
   FOCUS STYLES (Accessibility)
   ===================================================== */

:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 3px;
  border-radius: 4px;
}

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

@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.6rem; }
  .prose-casino h2 { font-size: 1.3rem; }
  .prose-casino h3 { font-size: 1.1rem; }

  .page-content .prose-casino {
    padding: 1.25rem;
  }

  .bonus-badge {
    max-width: calc(100vw - 2rem);
  }

}

/* =====================================================
   SECONDARY PAGES
   ===================================================== */

.page-content {
  min-height: 50vh;
  background: linear-gradient(180deg, #0d1f17 0%, #07120e 55%);
}

.page-content .prose-casino {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(26, 92, 56, 0.35);
  background: rgba(13, 31, 23, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .page-content .prose-casino {
    padding: 2rem 2.5rem;
  }
}

/* =====================================================
   PROSE CONTENT WRAPPER
   ===================================================== */

.prose-content {
  word-break: break-word;
  overflow-wrap: break-word;
}

.prose-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
}

/* =====================================================
   GENERAL TABLE OVERFLOW
   ===================================================== */

table {
  word-break: normal;
}

.overflow-x-auto table {
  min-width: 480px;
}
