/* ========================================
   Casino Mafia - Custom Styles
   Black & Gold NL Theme
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-gold: #d4af37;
  --color-gold-light: #f4e4a6;
  --color-gold-dark: #a68b2a;
  --color-black: #0a0a0a;
  --color-black-light: #1a1a1a;
  --color-black-lighter: #2a2a2a;
  --color-white: #fafafa;
  --color-gray: #b0b0b0;
  --color-gray-dark: #6a6a6a;
  --transition-smooth: 0.3s ease;
}

/* --- Keyframe Animations --- */
@keyframes tilt {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

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

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

@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 0.75rem rgba(212, 175, 55, 0);
  }
}

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

/* --- Animation Utilities --- */
.animate-tilt {
  animation: tilt 3s ease-in-out infinite;
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

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

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

.animate-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-gold-dark) 0%,
    var(--color-gold-light) 50%,
    var(--color-gold-dark) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* --- Base Overrides --- */
html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--color-gold);
  color: var(--color-black);
}

/* --- Navigation Styles --- */
.nav-link {
  position: relative;
  transition: color var(--transition-smooth);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: var(--color-gold);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Button Styles --- */
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-black);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all var(--transition-smooth);
  box-shadow: 0 0.25rem 1rem rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(212, 175, 55, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 0.125rem solid var(--color-gold);
  color: var(--color-gold);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

/* --- Card Styles --- */
.card-gold {
  background: var(--color-black-light);
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  transition: all var(--transition-smooth);
}

.card-gold:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
}

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

.table-responsive::-webkit-scrollbar {
  height: 0.375rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--color-black-lighter);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 0.25rem;
}

/* --- Hero Pattern --- */
.hero-pattern {
  background-image: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
}

/* --- Decorative Elements --- */
.gold-line {
  height: 0.125rem;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.badge-number {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-black);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Game Card Styles --- */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  transition: transform var(--transition-smooth);
}

.game-card:hover {
  transform: scale(1.03);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 60%);
  z-index: 1;
}

/* ========================================
   PROSE STYLING - Markdown Content
   ======================================== */

.prose {
  color: var(--color-gray);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 100%;
}

/* --- Prose Headings --- */
.prose h1 {
  color: var(--color-gold);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.prose h2 {
  color: var(--color-gold-light);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.0625rem solid rgba(212, 175, 55, 0.2);
}

.prose h3 {
  color: var(--color-white);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Prose Paragraphs --- */
.prose p {
  margin-bottom: 1.25rem;
  color: var(--color-gray);
}

.prose p:first-of-type {
  font-size: 1.125rem;
  color: var(--color-white);
}

/* --- Prose Links --- */
.prose a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: color var(--transition-smooth);
}

.prose a:hover {
  color: var(--color-gold-light);
}

/* --- Prose Lists --- */
.prose ul,
.prose ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

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

.prose ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.625rem;
  color: var(--color-gray);
}

.prose ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.625rem;
  top: 0.5rem;
}

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

.prose ol li {
  margin-bottom: 0.625rem;
  padding-left: 0.375rem;
  color: var(--color-gray);
}

.prose ol li::marker {
  color: var(--color-gold);
  font-weight: 700;
}

/* --- Prose Tables --- */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.prose thead {
  background: var(--color-black-lighter);
}

.prose th {
  color: var(--color-gold);
  font-weight: 700;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 0.125rem solid var(--color-gold-dark);
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
  color: var(--color-gray);
}

.prose tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

/* --- Prose Blockquotes --- */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-black-lighter);
  border-left: 0.25rem solid var(--color-gold);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--color-white);
}

.prose blockquote p {
  margin: 0;
  color: var(--color-white);
}

/* --- Prose Images --- */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

/* --- Prose Code --- */
.prose code {
  background: var(--color-black-lighter);
  color: var(--color-gold-light);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: var(--color-black-lighter);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}

/* --- Prose Horizontal Rule --- */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 2rem 0;
}

/* --- Prose Strong & Emphasis --- */
.prose strong {
  color: var(--color-white);
  font-weight: 700;
}

.prose em {
  color: var(--color-gold-light);
  font-style: italic;
}

/* --- Mobile Menu Styles --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* --- Focus States for Accessibility --- */
.btn-primary:focus,
.btn-secondary:focus,
a:focus {
  outline: 0.125rem solid var(--color-gold);
  outline-offset: 0.125rem;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 0.0625rem solid rgba(212, 175, 55, 0.2);
}

.faq-question {
  cursor: pointer;
  transition: color var(--transition-smooth);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 31.25rem;
}

/* --- 18+ Badge --- */
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-gold);
  color: var(--color-black);
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 50%;
}

/* --- Utility Classes --- */
.text-gold {
  color: var(--color-gold);
}
.text-gold-light {
  color: var(--color-gold-light);
}
.bg-black-main {
  background-color: var(--color-black);
}
.bg-black-light {
  background-color: var(--color-black-light);
}
.bg-black-lighter {
  background-color: var(--color-black-lighter);
}
