/* ============================================
   MafiaCasino - Custom CSS
   Noir Prestige Insight North Theme
   ============================================ */

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

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

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

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

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

.particle-4 {
  left: 70%;
  top: 70%;
  animation-delay: 6s;
}

.particle-5 {
  left: 85%;
  top: 40%;
  animation-delay: 8s;
}

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

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

/* ============================================
   Marquee Animation
   ============================================ */
.marquee-container {
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

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

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

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

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

/* ============================================
   Prose Styling for Content Pages
   ============================================ */
.prose {
  color: rgba(254, 247, 237, 0.85);
  font-size: 1rem;
  line-height: 1.75;
}

/* Headings */
.prose h2 {
  color: #f5d485;
  font-family: Georgia, serif;
  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, 168, 75, 0.3);
}

.prose h3 {
  color: #fdecd3;
  font-family: Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  color: #fdecd3;
  font-family: Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25rem;
  color: rgba(254, 247, 237, 0.8);
}

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

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

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

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

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

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

.prose li {
  margin-bottom: 0.5rem;
  color: rgba(254, 247, 237, 0.8);
  padding-left: 0.5rem;
}

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

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

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

.prose thead {
  background: rgba(26, 26, 37, 0.8);
}

.prose th {
  color: #f5d485;
  font-family: Georgia, serif;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 0.125rem solid rgba(212, 168, 75, 0.3);
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 0.0625rem solid rgba(212, 168, 75, 0.1);
  color: rgba(254, 247, 237, 0.8);
}

.prose tbody tr:hover {
  background: rgba(26, 26, 37, 0.5);
}

/* Table wrapper for responsiveness */
.prose .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  border: 0.0625rem solid rgba(212, 168, 75, 0.2);
}

.prose .table-wrapper table {
  margin: 0;
}

/* Blockquotes */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(26, 26, 37, 0.6);
  border-left: 0.25rem solid #d4a84b;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: rgba(254, 247, 237, 0.9);
}

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

.prose blockquote p:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Code */
.prose code {
  background: rgba(26, 26, 37, 0.8);
  color: #f5d485;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background: rgba(10, 10, 15, 0.8);
  border: 0.0625rem solid rgba(212, 168, 75, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Horizontal Rule */
.prose hr {
  border: none;
  border-top: 0.0625rem solid rgba(212, 168, 75, 0.2);
  margin: 2rem 0;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(212, 168, 75, 0.2);
}

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

.prose em {
  color: rgba(254, 247, 237, 0.9);
  font-style: italic;
}

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

.prose dt {
  color: #f5d485;
  font-weight: 600;
  margin-top: 1rem;
}

.prose dd {
  margin-left: 1.5rem;
  color: rgba(254, 247, 237, 0.8);
}

/* ============================================
   Utility Overrides
   ============================================ */

/* Smooth scrollbar styling */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 15, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 75, 0.3);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 168, 75, 0.5);
}

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

details summary {
  list-style: none;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 0.125rem solid #d4a84b;
  outline-offset: 0.125rem;
}

/* Selection styling */
::selection {
  background: rgba(212, 168, 75, 0.3);
  color: #fef7ed;
}

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

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

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

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

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

/* Prevent horizontal overflow on small screens */
@media (max-width: 30rem) {
  .prose {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}
