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

/* ----------------------------------------
   Keyframe Animations
   ---------------------------------------- */

@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);
  }
}

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

/* ----------------------------------------
   Animation Classes
   ---------------------------------------- */

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

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

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

.tilt-card {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

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

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

/* ----------------------------------------
   Table Responsive Wrapper
   ---------------------------------------- */

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

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

/* ----------------------------------------
   Prose Styling for Markdown Content
   ---------------------------------------- */

.prose {
  color: #c4c4cc;
  line-height: 1.7;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: #e8e8ec;
  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 #35354a;
  line-height: 1.3;
}

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

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

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

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

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

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

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

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

/* Lists - Unordered */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.25em 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.625em;
  color: #c4c4cc;
}

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

/* Lists - Ordered */
.prose ol {
  list-style: none;
  padding-left: 0;
  margin: 1.25em 0;
  counter-reset: ordered-list;
}

.prose ol li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.625em;
  counter-increment: ordered-list;
  color: #c4c4cc;
}

.prose ol li::before {
  content: counter(ordered-list) ".";
  position: absolute;
  left: 0;
  color: #d4a853;
  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-responsive {
  overflow-x: auto;
  margin: 1.5em 0;
  border-radius: 0.5rem;
  border: 0.0625rem solid #35354a;
}

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

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

.prose th {
  padding: 1em;
  text-align: left;
  font-weight: 600;
  color: #d4a853;
  border-bottom: 0.125rem solid #35354a;
  white-space: nowrap;
}

.prose td {
  padding: 1em;
  border-bottom: 0.0625rem solid #252530;
  color: #c4c4cc;
}

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

.prose tbody tr:hover {
  background-color: rgba(53, 53, 74, 0.3);
}

/* Blockquotes */
.prose blockquote {
  margin: 1.5em 0;
  padding: 1.25em 1.5em;
  border-left: 0.25rem solid #d4a853;
  background-color: rgba(26, 26, 31, 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin: 0;
  color: #9a9aa8;
  font-style: italic;
}

.prose blockquote p::before {
  content: "\201C";
  color: #d4a853;
  font-size: 1.5em;
  line-height: 0;
  margin-right: 0.25em;
  vertical-align: -0.25em;
}

/* Code Inline */
.prose code {
  background-color: #1a1a1f;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.875em;
  color: #d4a853;
}

/* Code Blocks */
.prose pre {
  background-color: #111114;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 0.0625rem solid #252530;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: #c4c4cc;
}

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

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

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

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

.prose dd {
  margin-left: 1.5em;
  color: #9a9aa8;
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */

.text-balance {
  text-wrap: balance;
}

/* ----------------------------------------
   Scrollbar Styling
   ---------------------------------------- */

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

::-webkit-scrollbar-track {
  background: #111114;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #4a4a65;
}

/* ----------------------------------------
   Selection Styling
   ---------------------------------------- */

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

/* ----------------------------------------
   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 #d4a853;
  outline-offset: 0.125rem;
}

/* ----------------------------------------
   Mobile Optimizations
   ---------------------------------------- */

@media (max-width: 640px) {
  .prose h2 {
    margin-top: 2em;
  }

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

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