/* =====================================================
   Betenza Casino - Custom CSS
   Theme: Enza Momentum Core
   ===================================================== */

/* =====================================================
   Animation Keyframes
   ===================================================== */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.625rem);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(405deg);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.2;
    transform: rotate(12deg) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: rotate(12deg) scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(247, 179, 43, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(247, 179, 43, 0.5);
  }
}

@keyframes particle-drift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(6.25rem);
    opacity: 0;
  }
}

/* =====================================================
   Animation Utility Classes
   ===================================================== */

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

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(247, 179, 43, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* =====================================================
   Global Overrides
   ===================================================== */

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
  overflow-y: auto;
}

/* =====================================================
   Navigation Enhancements
   ===================================================== */

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background-color: #f7b32b;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* =====================================================
   CTA Button Effects
   ===================================================== */

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

.cta-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

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

/* =====================================================
   Game Card Hover Effects
   ===================================================== */

.game-card {
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247, 179, 43, 0) 0%, rgba(247, 179, 43, 0.1) 50%, rgba(247, 179, 43, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.game-card:hover::before {
  opacity: 1;
}

/* =====================================================
   Step Card Connector Lines
   ===================================================== */

@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.5625rem;
    right: -2rem;
    width: 4rem;
    height: 0.125rem;
    background: linear-gradient(90deg, #f7b32b, transparent);
  }
}

/* =====================================================
   FAQ Item Styling
   ===================================================== */

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 0.0625rem solid rgba(26, 26, 46, 0.5);
  margin-bottom: 0;
}

/* =====================================================
   Table Responsive Wrapper
   ===================================================== */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 100%;
}

/* =====================================================
   Prose Styling for Markdown Content
   ===================================================== */

.prose {
  --prose-body: #e8e8f0;
  --prose-headings: #e8e8f0;
  --prose-links: #f7b32b;
  --prose-bold: #e8e8f0;
  --prose-counters: #9999aa;
  --prose-bullets: #f7b32b;
  --prose-hr: rgba(26, 26, 46, 0.5);
  --prose-quotes: #9999aa;
  --prose-quote-borders: #f7b32b;
  --prose-captions: #9999aa;
  --prose-code: #00d4ff;
  --prose-pre-code: #e8e8f0;
  --prose-pre-bg: #12121f;
  --prose-th-borders: rgba(26, 26, 46, 0.5);
  --prose-td-borders: rgba(26, 26, 46, 0.3);

  color: var(--prose-body);
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.75;
}

/* Headings */
.prose h2 {
  color: var(--prose-headings);
  font-weight: 700;
  font-size: 1.75em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  border-bottom: 0.125rem solid rgba(247, 179, 43, 0.3);
  padding-bottom: 0.5em;
}

.prose h3 {
  color: var(--prose-headings);
  font-weight: 600;
  font-size: 1.375em;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: var(--prose-headings);
  font-weight: 600;
  font-size: 1.125em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: #9999aa;
}

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

/* Links */
.prose a {
  color: var(--prose-links);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 0.0625rem solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.prose a:hover {
  color: #ffd700;
  border-bottom-color: #ffd700;
}

/* Bold & Strong */
.prose strong {
  color: var(--prose-bold);
  font-weight: 600;
}

/* Lists - Unordered */
.prose ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose ul > li {
  position: relative;
  padding-left: 1.75em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #9999aa;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 0.5em;
  height: 0.5em;
  background-color: var(--prose-bullets);
  border-radius: 50%;
}

/* Lists - Ordered */
.prose ol {
  list-style-type: none;
  padding-left: 0;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  counter-reset: list-counter;
}

.prose ol > li {
  position: relative;
  padding-left: 2em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #9999aa;
  counter-increment: list-counter;
}

.prose ol > li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--prose-bullets);
  font-weight: 600;
}

/* Nested Lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid var(--prose-quote-borders);
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--prose-quotes);
  background-color: rgba(26, 26, 46, 0.3);
  padding: 1em 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin: 0;
  color: var(--prose-quotes);
}

/* Horizontal Rules */
.prose hr {
  border: none;
  border-top: 0.0625rem solid var(--prose-hr);
  margin: 3em 0;
}

/* Code - Inline */
.prose code {
  color: var(--prose-code);
  background-color: rgba(0, 212, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Fira Code", monospace;
}

/* Code - Block */
.prose pre {
  background-color: var(--prose-pre-bg);
  border: 0.0625rem solid rgba(26, 26, 46, 0.5);
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: var(--prose-pre-code);
  font-size: 0.875em;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9375em;
}

.prose thead {
  border-bottom: 0.125rem solid var(--prose-th-borders);
}

.prose th {
  color: var(--prose-headings);
  font-weight: 600;
  text-align: left;
  padding: 0.75em 1em;
  background-color: rgba(26, 26, 46, 0.5);
}

.prose td {
  padding: 0.75em 1em;
  border-bottom: 0.0625rem solid var(--prose-td-borders);
  color: #9999aa;
}

.prose tbody tr:hover {
  background-color: rgba(26, 26, 46, 0.3);
}

/* Table Responsive in Prose */
.prose .table-responsive {
  overflow-x: auto;
  margin: 2em 0;
  border-radius: 0.5rem;
  border: 0.0625rem solid rgba(26, 26, 46, 0.5);
}

.prose .table-responsive table {
  margin: 0;
  min-width: 37.5rem;
}

/* Images in Prose */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em auto;
  display: block;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* Figure & Captions */
.prose figure {
  margin: 2em 0;
}

.prose figcaption {
  color: var(--prose-captions);
  font-size: 0.875em;
  text-align: center;
  margin-top: 0.75em;
}

/* Prose Enza Theme Variant */
.prose-enza {
  --prose-body: #e8e8f0;
  --prose-headings: #e8e8f0;
  --prose-links: #f7b32b;
}

/* Lead Paragraph */
.prose .lead,
.prose p:first-of-type {
  font-size: 1.125em;
  color: #b8b8c8;
  line-height: 1.7;
}

/* Info Boxes */
.prose .info-box {
  background-color: rgba(0, 212, 255, 0.1);
  border: 0.0625rem solid rgba(0, 212, 255, 0.3);
  border-left: 0.25rem solid #00d4ff;
  border-radius: 0.5rem;
  padding: 1em 1.5em;
  margin: 1.5em 0;
}

.prose .info-box p {
  margin: 0;
  color: #b8b8c8;
}

/* Warning Boxes */
.prose .warning-box {
  background-color: rgba(247, 179, 43, 0.1);
  border: 0.0625rem solid rgba(247, 179, 43, 0.3);
  border-left: 0.25rem solid #f7b32b;
  border-radius: 0.5rem;
  padding: 1em 1.5em;
  margin: 1.5em 0;
}

.prose .warning-box p {
  margin: 0;
  color: #b8b8c8;
}

/* =====================================================
   Review Block Grid
   ===================================================== */

.review-block {
  transition: all 0.3s ease;
}

.review-block:hover {
  transform: translateY(-0.25rem);
}

/* =====================================================
   Promo Card Enhancements
   ===================================================== */

.promo-card {
  transition: all 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-0.375rem);
}

/* =====================================================
   Scrollbar Styling
   ===================================================== */

::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
  background: #1a1a2e;
  border-radius: 0.25rem;
}

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

/* =====================================================
   Selection Styling
   ===================================================== */

::selection {
  background-color: rgba(247, 179, 43, 0.3);
  color: #e8e8f0;
}

/* =====================================================
   Focus States for Accessibility
   ===================================================== */

a:focus-visible,
button:focus-visible {
  outline: 0.125rem solid #f7b32b;
  outline-offset: 0.125rem;
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */

@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }

  .prose h2 {
    font-size: 1.5em;
  }

  .prose h3 {
    font-size: 1.25em;
  }

  .prose table {
    font-size: 0.875em;
  }

  .prose th,
  .prose td {
    padding: 0.5em 0.75em;
  }
}

/* =====================================================
   Print Styles
   ===================================================== */

@media print {
  .prose {
    color: #000;
  }

  .prose a {
    color: #000;
    text-decoration: underline;
  }

  .prose h2,
  .prose h3,
  .prose h4 {
    color: #000;
  }
}
