/* =============================================
   MAFIA CASINO - CUSTOM CSS
   Noir Prestige Insight FR Theme
   ============================================= */

/* =============================================
   ANIMATIONS & KEYFRAMES
   ============================================= */

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

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

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

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

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.animate-shimmer {
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

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

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

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  width: 100%;
}

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

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

/* =============================================
   TABLE RESPONSIVE
   ============================================= */

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

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

/* =============================================
   SCROLLBAR STYLING
   ============================================= */

.scrollbar-thin {
  scrollbar-width: thin;
}

.scrollbar-track-noir-800::-webkit-scrollbar-track {
  background: #22222e;
  border-radius: 0.5rem;
}

.scrollbar-thumb-gold-500\/50::-webkit-scrollbar-thumb {
  background: rgba(234, 179, 8, 0.5);
  border-radius: 0.5rem;
}

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

::-webkit-scrollbar-track {
  background: #1a1a24;
}

::-webkit-scrollbar-thumb {
  background: #3d3d50;
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #52526b;
}

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

.prose {
  color: rgba(245, 245, 244, 0.85);
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: #fafaf9;
  font-family: Georgia, Cambria, serif;
  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.125rem solid rgba(234, 179, 8, 0.2);
  line-height: 1.3;
}

.prose h3 {
  color: #fafaf9;
  font-family: Georgia, Cambria, serif;
  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: #f5f5f4;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* First heading after content start */
.prose > h2:first-child {
  margin-top: 0;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25em;
  color: rgba(245, 245, 244, 0.8);
}

.prose p:first-of-type {
  font-size: 1.125em;
  color: rgba(245, 245, 244, 0.9);
}

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

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

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

.prose em {
  color: rgba(245, 245, 244, 0.9);
  font-style: italic;
}

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

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

.prose ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.625em;
  color: rgba(245, 245, 244, 0.8);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 0.375rem;
  height: 0.375rem;
  background: #facc15;
  border-radius: 50%;
}

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

.prose ol li {
  margin-bottom: 0.625em;
  color: rgba(245, 245, 244, 0.8);
  padding-left: 0.5em;
}

.prose ol li::marker {
  color: #facc15;
  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;
}

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

.prose thead {
  background: #22222e;
}

.prose th {
  color: #fafaf9;
  font-weight: 600;
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 0.125rem solid rgba(234, 179, 8, 0.3);
}

.prose td {
  padding: 0.75em 1em;
  border-bottom: 0.0625rem solid #2e2e3d;
  color: rgba(245, 245, 244, 0.8);
}

.prose tbody tr {
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(34, 34, 46, 0.5);
}

/* Table Wrapper for Mobile */
.prose .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: 0.75rem;
  border: 0.0625rem solid #2e2e3d;
}

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

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid #facc15;
  background: rgba(34, 34, 46, 0.5);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}

.prose blockquote p {
  margin-bottom: 0;
  color: rgba(245, 245, 244, 0.9);
}

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

/* Code */
.prose code {
  background: #22222e;
  color: #fde047;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

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

.prose pre code {
  background: transparent;
  padding: 0;
  color: #f5f5f4;
}

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

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

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

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

.prose dd {
  margin-left: 1.5em;
  color: rgba(245, 245, 244, 0.8);
}

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

.prose figcaption {
  text-align: center;
  color: rgba(245, 245, 244, 0.6);
  font-size: 0.875em;
  margin-top: 0.75em;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

@media (max-width: 48rem) {
  .prose {
    font-size: 1rem;
  }

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

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

  .prose ul li,
  .prose ol li {
    margin-bottom: 0.5em;
  }

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

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

/* =============================================
   UTILITY OVERRIDES
   ============================================= */

/* Prevent overflow issues */
html,
body {
  overflow-x: clip;
  overflow-y: auto;
}

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

/* Selection styling */
::selection {
  background: rgba(234, 179, 8, 0.3);
  color: #fafaf9;
}

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

/* Details/Summary styling */
details summary {
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

/* =============================================
   PARALLAX EFFECT (CSS-based)
   ============================================= */

@supports (background-attachment: fixed) {
  .parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

/* Fallback for mobile where fixed attachment doesn't work well */
@media (max-width: 64rem) {
  .parallax-bg {
    background-attachment: scroll;
  }
}
