/* ===================================
   MafiaCasino - Custom Styles
   Noir Prestige Insight Global Theme
   =================================== */

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

.particle {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  animation: particle-float 20s infinite ease-in-out;
}

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

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

.particle-3 {
  top: 60%;
  left: 10%;
  animation-delay: 4s;
  animation-duration: 28s;
}

.particle-4 {
  top: 80%;
  left: 60%;
  animation-delay: 6s;
  animation-duration: 20s;
}

.particle-5 {
  top: 45%;
  left: 45%;
  animation-delay: 8s;
  animation-duration: 24s;
}

@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(6.25rem, -3.125rem) scale(1.5);
    opacity: 0.6;
  }
  50% {
    transform: translate(-3.125rem, 6.25rem) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translate(3.125rem, 3.125rem) scale(1.2);
    opacity: 0.5;
  }
}

/* === Tilt Card Effect === */
.tilt-card {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  transform-style: preserve-3d;
}

.tilt-card:hover {
  box-shadow: 0 1.5625rem 3.125rem -0.75rem rgba(212, 175, 55, 0.15);
}

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

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

/* === Smooth Scroll === */
html {
  scroll-behavior: smooth;
}

/* === Selection Styling === */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #f5f5f5;
}

/* === Focus States === */
a:focus,
button:focus,
summary:focus {
  outline: 0.125rem solid rgba(212, 175, 55, 0.5);
  outline-offset: 0.125rem;
}

/* === Details/Summary Styling === */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ===================================
   PROSE STYLING FOR MARKDOWN CONTENT
   =================================== */

.prose {
  color: #c4c4c4;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: #f5f5f5;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 0.0625rem solid #2e2e2e;
  line-height: 1.3;
}

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

.prose h3 {
  color: #e5e5e5;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #d4d4d4;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.5em;
  color: #c4c4c4;
}

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

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

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

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

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

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

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

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

.prose li {
  margin-bottom: 0.5em;
  color: #c4c4c4;
  line-height: 1.6;
}

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

.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 #d4af37;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: rgba(30, 30, 30, 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #d4d4d4;
}

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

.prose blockquote cite {
  display: block;
  margin-top: 0.75em;
  font-size: 0.875em;
  color: #9a9a9a;
  font-style: normal;
}

/* Tables */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: 0.75rem;
  border: 0.0625rem solid #2e2e2e;
}

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

.prose thead {
  background: #242424;
}

.prose th {
  color: #e5e5e5;
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1.25rem;
  color: #c4c4c4;
  border-top: 0.0625rem solid #2e2e2e;
}

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

/* Code */
.prose code {
  background: #1a1a1a;
  color: #e5c158;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Fira Code", "Consolas", monospace;
}

.prose pre {
  background: #121212;
  border: 0.0625rem solid #2e2e2e;
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

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

.prose figure {
  margin: 2em 0;
}

.prose figcaption {
  text-align: center;
  color: #737373;
  font-size: 0.875rem;
  margin-top: 0.75em;
}

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  margin: 2.5em 0;
}

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

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

.prose dd {
  color: #c4c4c4;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

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

  .prose h2 {
    margin-top: 2em;
  }

  .prose h3 {
    margin-top: 1.5em;
  }

  .prose blockquote {
    padding: 0.75em 1em;
  }

  .prose th,
  .prose td {
    padding: 0.75rem 1rem;
  }
}

/* === Print Styles === */
@media print {
  .prose {
    color: #000;
  }

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

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