/* ================================
   MafiaCasino Custom Styles
   Noir Prestige Lounge Theme
   ================================ */

/* Particle Animation */
.particles-container {
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: linear-gradient(135deg, #d4af37, #c9a227);
  border-radius: 50%;
  opacity: 0.4;
  animation: float-particle 15s infinite ease-in-out;
}

.particle-1 {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}
.particle-2 {
  left: 25%;
  top: 60%;
  animation-delay: 2s;
  animation-duration: 18s;
}
.particle-3 {
  left: 45%;
  top: 30%;
  animation-delay: 4s;
  animation-duration: 12s;
}
.particle-4 {
  left: 65%;
  top: 70%;
  animation-delay: 1s;
  animation-duration: 20s;
}
.particle-5 {
  left: 80%;
  top: 25%;
  animation-delay: 3s;
  animation-duration: 14s;
}
.particle-6 {
  left: 90%;
  top: 55%;
  animation-delay: 5s;
  animation-duration: 16s;
}

@keyframes float-particle {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-3.125rem) translateX(1.25rem) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-1.875rem) translateX(-0.9375rem) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-4.375rem) translateX(0.625rem) scale(1.1);
    opacity: 0.5;
  }
}

/* Tilt Animation */
.tilt-element {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

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

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

/* FAQ Accordion */
.faq-trigger i {
  transition: transform 0.3s ease;
}

.faq-trigger i.rotate-180 {
  transform: rotate(180deg);
}

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

.prose {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 1rem;
}

.prose > * + * {
  margin-top: 1.5em;
}

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

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

.prose h4 {
  color: #e5e7eb;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

/* Links */
.prose a {
  color: #d4af37;
  text-decoration: underline;
  text-underline-offset: 0.125rem;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #e5c158;
}

/* Lists */
.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.prose li::marker {
  color: #d4af37;
}

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

/* Tables */
.prose .table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid #2a2a32;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose thead {
  background-color: #1a1a1f;
}

.prose th {
  color: #d4af37;
  font-weight: 600;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #2a2a32;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #222228;
  color: #d1d5db;
}

.prose tbody tr:hover {
  background-color: rgba(42, 42, 50, 0.5);
}

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

/* Blockquotes */
.prose blockquote {
  border-left: 4px solid #d4af37;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #9ca3af;
  background-color: rgba(26, 26, 31, 0.5);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

/* Code */
.prose code {
  background-color: #1a1a1f;
  color: #d4af37;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
}

.prose pre {
  background-color: #0d0d0f;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  border: 1px solid #2a2a32;
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 1px solid #2a2a32;
}

/* Horizontal Rule */
.prose hr {
  border: none;
  border-top: 1px solid #2a2a32;
  margin: 2rem 0;
}

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

.prose em {
  color: #e5e7eb;
}

/* Definition Lists */
.prose dl {
  margin: 1.5rem 0;
}

.prose dt {
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.prose dd {
  margin-left: 1rem;
  margin-bottom: 1rem;
  color: #d1d5db;
}

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

.prose .warning-box {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose {
    font-size: 0.9375rem;
  }

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

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