/* MafiaCasino Custom Styles */
/* Noir Prestige Access Theme */

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-1deg);
  }
  75% {
    transform: rotate(1deg);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(212, 168, 83, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(212, 168, 83, 0.5);
  }
}

/* Animation Classes */
.tilt {
  transition: transform 0.3s ease;
}

.tilt:hover {
  animation: tilt 0.5s ease-in-out;
}

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

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

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

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

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

/* ========================================
   BASE & RESETS
   ======================================== */

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
  overflow-y: auto;
  line-height: 1.6;
}

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

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

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

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

.prose {
  color: #c8c8d0;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: #e8e8ec;
  font-size: 1.75em;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  border-bottom: 0.125rem solid rgba(212, 168, 83, 0.3);
  padding-bottom: 0.5em;
}

.prose h3 {
  color: #e8e8ec;
  font-size: 1.375em;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #d4a853;
  font-size: 1.125em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

/* Paragraphs */
.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

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

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

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
}

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

.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: 2em;
  margin-bottom: 2em;
  font-size: 0.9375em;
}

.prose thead {
  background-color: #1a1a26;
  border-bottom: 0.125rem solid #d4a853;
}

.prose th {
  color: #e8e8ec;
  font-weight: 600;
  padding: 0.875em 1em;
  text-align: left;
}

.prose td {
  padding: 0.875em 1em;
  border-bottom: 0.0625rem solid #242436;
}

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

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

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid #d4a853;
  background-color: rgba(26, 26, 38, 0.5);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #9898a8;
}

.prose blockquote p {
  margin: 0;
}

/* Code */
.prose code {
  background-color: #1a1a26;
  color: #d4a853;
  padding: 0.1875em 0.375em;
  border-radius: 0.25em;
  font-size: 0.875em;
}

.prose pre {
  background-color: #1a1a26;
  border-radius: 0.5em;
  padding: 1em 1.25em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 0.875em;
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75em;
  margin: 2em auto;
  display: block;
}

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

.prose em {
  font-style: italic;
}

/* ========================================
   COMPONENT OVERRIDES
   ======================================== */

/* Details/Summary (FAQ) */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 0.0625rem solid rgba(212, 168, 83, 0.2);
  margin-bottom: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #12121a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #d4a853;
}

/* Selection */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #e8e8ec;
}

/* Focus States */
a:focus-visible,
button:focus-visible {
  outline: 0.125rem solid #d4a853;
  outline-offset: 0.125rem;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

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

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

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

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

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

/* Ensure tables scroll on mobile */
.prose .table-responsive,
.prose-content .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}

.prose-content {
  color: #c8c8d0;
}

.prose-content h3 {
  color: #e8e8ec;
}

.prose-content ul {
  list-style-type: disc;
  padding-left: 1.25em;
}

.prose-content li::marker {
  color: #d4a853;
}
