/* ==========================================================================
   Pro11 Casino - Custom Styles
   Pro Eleven Matrix Theme: Clean sharp grids, minimal geometry, precise edges
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --matrix-dark: #0a0a0f;
  --matrix-darker: #050508;
  --matrix-accent: #00ff88;
  --matrix-accent-dim: #00cc6a;
  --matrix-grid: #1a1a2e;
  --matrix-surface: #12121a;
  --matrix-surface-light: #1e1e2d;
  --matrix-text: #e8e8f0;
  --matrix-text-dim: #9898a8;
  --matrix-warning: #ff6b35;
  --matrix-gold: #ffd700;
}

/* --------------------------------------------------------------------------
   Base Overrides
   -------------------------------------------------------------------------- */
html {
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
}

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

.marquee-container {
  position: relative;
  width: 100%;
}

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

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

/* Duplicate content for seamless loop */
.marquee-content::after {
  content: "";
  display: flex;
}

/* --------------------------------------------------------------------------
   Parallax Support
   -------------------------------------------------------------------------- */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

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

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

/* --------------------------------------------------------------------------
   Prose Styling for Markdown Content
   -------------------------------------------------------------------------- */
.prose {
  color: var(--matrix-text-dim);
  line-height: 1.75;
  font-size: 1rem;
}

/* Headings */
.prose h2 {
  color: var(--matrix-text);
  font-size: 1.75em;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--matrix-grid);
}

.prose h3 {
  color: var(--matrix-text);
  font-size: 1.375em;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: var(--matrix-text);
  font-size: 1.125em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

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

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

/* Links */
.prose a {
  color: var(--matrix-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--matrix-accent-dim);
  text-decoration: underline;
}

/* Strong and Emphasis */
.prose strong {
  color: var(--matrix-text);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

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

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

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

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

.prose li::marker {
  color: var(--matrix-accent);
}

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

/* Blockquotes */
.prose blockquote {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 1.25em 1.5em;
  border-left: 4px solid var(--matrix-accent);
  background-color: var(--matrix-surface);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: var(--matrix-text);
}

.prose blockquote p {
  margin: 0;
}

/* Tables */
.prose .table-responsive {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid var(--matrix-grid);
}

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

.prose thead {
  background-color: var(--matrix-surface-light);
}

.prose th {
  color: var(--matrix-text);
  font-weight: 600;
  text-align: left;
  padding: 0.875em 1em;
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1em;
  border-top: 1px solid var(--matrix-grid);
  color: var(--matrix-text-dim);
}

.prose tbody tr:hover {
  background-color: var(--matrix-surface);
}

/* Code */
.prose code {
  background-color: var(--matrix-surface);
  color: var(--matrix-accent);
  padding: 0.2em 0.4em;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-family: "JetBrains Mono", monospace;
}

.prose pre {
  background-color: var(--matrix-surface);
  border: 1px solid var(--matrix-grid);
  border-radius: 0.75rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

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

/* Horizontal Rule */
.prose hr {
  margin-top: 2.5em;
  margin-bottom: 2.5em;
  border: none;
  border-top: 2px solid var(--matrix-grid);
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid var(--matrix-grid);
}

/* Details/Summary */
.prose details {
  background-color: var(--matrix-surface);
  border: 1px solid var(--matrix-grid);
  border-radius: 0.75rem;
  margin-top: 1em;
  margin-bottom: 1em;
}

.prose summary {
  padding: 1em 1.25em;
  cursor: pointer;
  color: var(--matrix-text);
  font-weight: 500;
  list-style: none;
}

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

.prose details[open] summary {
  border-bottom: 1px solid var(--matrix-grid);
}

.prose details > *:not(summary) {
  padding: 0 1.25em;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-balance {
  text-wrap: balance;
}

/* Glow Effects */
.glow-accent {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Grid Pattern Background */
.grid-pattern {
  background-image: linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

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

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

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

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

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

  .prose blockquote {
    border-left-color: #000;
    background: none;
  }
}
