/* ========================================
   Mafia Casino - Custom Styles
   Midnight City Elegance Theme
   ======================================== */

/* === Base & Root === */
:root {
  --glow-primary: #c9a962;
  --glow-secondary: #e8d5a3;
  --glow-accent: #8b7355;
  --midnight-50: #f0f1f4;
  --midnight-100: #d1d5de;
  --midnight-200: #a3abbe;
  --midnight-300: #75819d;
  --midnight-400: #4a5568;
  --midnight-500: #2d3748;
  --midnight-600: #1a202c;
  --midnight-700: #171923;
  --midnight-800: #0d0f14;
  --midnight-900: #070809;
}

html {
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
}

/* === Animations === */

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

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

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

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

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

/* Glow Line Animation */
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.glow-line {
  animation: glowPulse 4s ease-in-out infinite;
}

.glow-line-delay {
  animation: glowPulse 4s ease-in-out infinite;
  animation-delay: 2s;
}

/* Parallax Effect */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.25rem);
  }
}

.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 98, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

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

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

/* === Prose Styling === */
.prose {
  color: var(--midnight-200);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: var(--midnight-50);
  font-family: Georgia, serif;
  font-size: 1.75em;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 0.125rem solid var(--glow-primary);
  line-height: 1.3;
}

.prose h3 {
  color: var(--glow-primary);
  font-family: Georgia, serif;
  font-size: 1.375em;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: var(--midnight-100);
  font-family: Georgia, serif;
  font-size: 1.125em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25em;
  color: var(--midnight-200);
}

.prose p:first-of-type {
  font-size: 1.125em;
  color: var(--midnight-100);
}

/* Links */
.prose a {
  color: var(--glow-primary);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--glow-secondary);
}

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

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

.prose ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
  color: var(--midnight-200);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 0.5em;
  height: 0.5em;
  background: var(--glow-primary);
  border-radius: 50%;
}

.prose ol {
  list-style-type: none;
  counter-reset: item;
}

.prose ol li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
  color: var(--midnight-200);
  counter-increment: item;
}

.prose ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--glow-primary);
  font-weight: 600;
}

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

.prose thead {
  background: rgba(23, 25, 35, 0.8);
  border-bottom: 0.125rem solid var(--glow-primary);
}

.prose th {
  color: var(--glow-primary);
  font-weight: 600;
  text-align: left;
  padding: 0.75em 1em;
}

.prose td {
  padding: 0.75em 1em;
  color: var(--midnight-200);
  border-bottom: 0.0625rem solid var(--midnight-600);
}

.prose tbody tr:hover {
  background: rgba(23, 25, 35, 0.5);
}

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid var(--glow-primary);
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--midnight-300);
  background: rgba(23, 25, 35, 0.5);
  padding: 1.25em 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0;
  color: var(--midnight-200);
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em auto;
  display: block;
  border: 0.0625rem solid var(--midnight-600);
}

/* Code */
.prose code {
  background: rgba(23, 25, 35, 0.8);
  color: var(--glow-secondary);
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: rgba(23, 25, 35, 0.9);
  border: 0.0625rem solid var(--midnight-600);
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* Strong & Emphasis */
.prose strong {
  color: var(--midnight-100);
  font-weight: 600;
}

.prose em {
  color: var(--midnight-200);
  font-style: italic;
}

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

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

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

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

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

::-webkit-scrollbar-track {
  background: var(--midnight-800);
}

::-webkit-scrollbar-thumb {
  background: var(--midnight-600);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--glow-accent);
}

/* === Selection === */
::selection {
  background: var(--glow-primary);
  color: var(--midnight-900);
}

/* === Focus States === */
:focus-visible {
  outline: 0.125rem solid var(--glow-primary);
  outline-offset: 0.125rem;
}

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

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

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