/* ================================================
   CASINOMAFIA - Custom CSS
   Animation & Overrides & Prose Styling
   ================================================ */

/* ------------------------------------------------
   CSS Variables
   ------------------------------------------------ */
:root {
  --gold-primary: #d4af37;
  --gold-light: #f0d060;
  --dark-900: #0a0a0a;
  --dark-800: #121212;
  --dark-700: #1a1a1a;
  --dark-600: #242424;
}

/* ------------------------------------------------
   Global Overrides
   ------------------------------------------------ */
html {
  overflow-x: clip;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

/* ------------------------------------------------
   Particle Animation
   ------------------------------------------------ */
.particle-container {
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: particle-float 15s infinite ease-in-out;
}

.particle-1 {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.particle-2 {
  left: 30%;
  top: 60%;
  animation-delay: -3s;
  animation-duration: 22s;
}

.particle-3 {
  left: 50%;
  top: 30%;
  animation-delay: -6s;
  animation-duration: 16s;
}

.particle-4 {
  left: 70%;
  top: 70%;
  animation-delay: -9s;
  animation-duration: 20s;
}

.particle-5 {
  left: 90%;
  top: 40%;
  animation-delay: -12s;
  animation-duration: 24s;
}

@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(1.25rem, -2.5rem) scale(1.2);
    opacity: 0.5;
  }
  50% {
    transform: translate(-1.25rem, 1.25rem) scale(0.8);
    opacity: 0.2;
  }
  75% {
    transform: translate(2.5rem, -1.25rem) scale(1.1);
    opacity: 0.4;
  }
}

/* ------------------------------------------------
   Tilt Animation
   ------------------------------------------------ */
.tilt-element {
  transition: transform 0.3s ease-out;
}

.tilt-element:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-0.25rem);
}

/* ------------------------------------------------
   Table Responsive Wrapper
   ------------------------------------------------ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* ------------------------------------------------
   FAQ Interaction
   ------------------------------------------------ */
.faq-toggle i.rotate-180 {
  transform: rotate(180deg);
}

/* ------------------------------------------------
   Prose Styling for Markdown Content
   ------------------------------------------------ */
.prose {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid rgba(212, 175, 55, 0.3);
}

.prose h3 {
  color: #ffffff;
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

/* Paragraphs */
.prose p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.prose p:first-of-type {
  font-size: 1.125rem;
  color: #e5e7eb;
}

/* Links */
.prose a {
  color: var(--gold-primary);
  text-decoration: none;
  border-bottom: 0.0625rem solid transparent;
  transition: border-color 0.2s ease;
}

.prose a:hover {
  border-bottom-color: var(--gold-primary);
}

/* Lists */
.prose ul,
.prose ol {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: none;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  color: #d1d5db;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--gold-primary);
  border-radius: 50%;
}

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

.prose ol li {
  margin-bottom: 0.625rem;
  color: #d1d5db;
  padding-left: 0.5rem;
}

.prose ol li::marker {
  color: var(--gold-primary);
  font-weight: 600;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid #242424;
}

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

.prose thead {
  background: #1a1a1a;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gold-primary);
  border-bottom: 0.125rem solid #242424;
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid #242424;
  color: #d1d5db;
}

.prose tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid var(--gold-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: #e5e7eb;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 0.0625rem solid #242424;
}

/* Code */
.prose code {
  background: #1a1a1a;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--gold-primary);
}

.prose pre {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: none;
  padding: 0;
}

/* Strong & Emphasis */
.prose strong {
  color: #ffffff;
  font-weight: 600;
}

.prose em {
  color: #e5e7eb;
}

/* Horizontal Rule */
.prose hr {
  border: none;
  border-top: 0.0625rem solid #242424;
  margin: 2.5rem 0;
}

/* Info Boxes */
.prose .info-box {
  background: rgba(212, 175, 55, 0.1);
  border: 0.0625rem solid rgba(212, 175, 55, 0.3);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.prose .info-box p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------ */
@media (max-width: 48rem) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

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

  .prose p:first-of-type {
    font-size: 1rem;
  }

  .prose th,
  .prose td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

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

.shimmer {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.3) 50%, rgba(212, 175, 55, 0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Glow effect for CTAs */
@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 1.875rem rgba(212, 175, 55, 0.5);
  }
}

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