/* ================================================
   CasinoMafia Custom Styles
   Black & Gold North Theme
   ================================================ */

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

body {
  overflow-x: clip;
}

/* ------------------------------------------------
   Hero Pattern (SVG-based)
   ------------------------------------------------ */
.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d97706' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------
   Parallax Animation
   ------------------------------------------------ */
.parallax-container {
  perspective: 1000px;
}

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

.parallax-element:nth-child(1) {
  animation-delay: 0s;
}

.parallax-element:nth-child(2) {
  animation-delay: 2s;
}

.parallax-element:nth-child(3) {
  animation-delay: 4s;
}

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

/* ------------------------------------------------
   Marquee Animation
   ------------------------------------------------ */
.marquee-container {
  position: relative;
  width: 100%;
}

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

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

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

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

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

/* ------------------------------------------------
   Prose Styling for Markdown Content
   ------------------------------------------------ */
.prose {
  max-width: 65ch;
  color: #d1d5db;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.25em;
}

/* Headings */
.prose h2 {
  color: #fbbf24;
  font-family: Georgia, serif;
  font-size: 1.875em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  border-bottom: 0.125rem solid rgba(251, 191, 36, 0.2);
  padding-bottom: 0.5em;
}

.prose h3 {
  color: #fcd34d;
  font-family: Georgia, serif;
  font-size: 1.375em;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}

.prose h4 {
  color: #fde68a;
  font-family: Georgia, serif;
  font-size: 1.125em;
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}

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

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

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

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

.prose em {
  font-style: italic;
}

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

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

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

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

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

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid #f59e0b;
  padding-left: 1em;
  margin: 1.6em 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(251, 191, 36, 0.05);
  padding: 1em 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin: 0;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.875em;
}

.prose thead {
  background: #16161a;
  border-bottom: 0.125rem solid rgba(251, 191, 36, 0.3);
}

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

.prose td {
  padding: 0.75em 1em;
  border-bottom: 0.0625rem solid rgba(251, 191, 36, 0.1);
  color: #d1d5db;
}

.prose tbody tr:hover {
  background: rgba(251, 191, 36, 0.05);
}

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

.prose pre {
  background: #16161a;
  border: 0.0625rem solid rgba(251, 191, 36, 0.2);
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* Horizontal Rule */
.prose hr {
  border: none;
  border-top: 0.0625rem solid rgba(251, 191, 36, 0.2);
  margin: 3em 0;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

/* ------------------------------------------------
   Gold Glow Effects
   ------------------------------------------------ */
.gold-glow {
  box-shadow: 0 0 1.25rem rgba(251, 191, 36, 0.3);
}

.gold-glow-text {
  text-shadow: 0 0 1.25rem rgba(251, 191, 36, 0.5);
}

/* ------------------------------------------------
   Smooth Transitions
   ------------------------------------------------ */
* {
  scroll-behavior: smooth;
}

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

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

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

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

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

/* ------------------------------------------------
   Selection Colors
   ------------------------------------------------ */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #ffffff;
}
