/* ================================================
   MAFIA ONLINE CASINO - Midnight Luxe Theme
   Custom CSS: Animations, Overrides & Prose
   ================================================ */

/* === CSS Custom Properties === */
:root {
  --color-bg-dark: #0a0a0f;
  --color-bg-card: #12121a;
  --color-bg-elevated: #1a1a24;
  --color-gold: #d4af37;
  --color-gold-light: #f4d03f;
  --color-gold-glow: rgba(212, 175, 55, 0.4);
  --color-text-primary: #f5f5f7;
  --color-text-secondary: #a8a8b3;
  --color-text-muted: #6b6b7b;
  --color-accent-purple: #8b5cf6;
  --color-accent-red: #ef4444;
  --color-border: rgba(212, 175, 55, 0.2);
  --glow-gold: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(212, 175, 55, 0.1);
  --glow-gold-strong: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Smooth Scroll === */
html {
  scroll-behavior: smooth;
}

/* === Keyframe Animations === */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.625rem);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: var(--glow-gold);
  }
  50% {
    box-shadow: var(--glow-gold-strong);
  }
}

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

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

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes text-glow {
  0%,
  100% {
    text-shadow: 0 0 0.625rem var(--color-gold-glow);
  }
  50% {
    text-shadow: 0 0 1.25rem var(--color-gold), 0 0 1.875rem var(--color-gold-glow);
  }
}

/* === Animation Utility Classes === */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

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

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

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

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

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

/* === Parallax Effects === */
.parallax-container {
  perspective: 62.5rem;
  overflow: hidden;
}

.parallax-layer {
  transform-style: preserve-3d;
  will-change: transform;
}

.parallax-slow {
  transform: translateZ(-6.25rem) scale(1.1);
}

.parallax-fast {
  transform: translateZ(3.125rem) scale(0.95);
}

/* === Marquee Container === */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  gap: 2rem;
}

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

/* === Glow Effects === */
.glow-gold {
  box-shadow: var(--glow-gold);
}

.glow-gold-strong {
  box-shadow: var(--glow-gold-strong);
}

.glow-border {
  border: 0.0625rem solid var(--color-border);
  box-shadow: inset 0 0 1.25rem rgba(212, 175, 55, 0.05);
}

.text-glow {
  text-shadow: 0 0 0.625rem var(--color-gold-glow);
}

/* === Gradient Backgrounds === */
.bg-gradient-luxe {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #151520 50%, var(--color-bg-dark) 100%);
}

.bg-gradient-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
}

.bg-gradient-card {
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg-card) 100%);
}

/* === Button Styles === */
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, #c9a227 100%);
  color: #0a0a0f;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: var(--glow-gold-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 0.125rem solid var(--color-gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--glow-gold);
}

/* === Card Styles === */
.card-luxe {
  background: var(--color-bg-card);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.card-luxe:hover {
  border-color: var(--color-gold);
  box-shadow: var(--glow-gold);
  transform: translateY(-0.25rem);
}

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

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 15, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-gold-strong);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

/* === Table Responsive Wrapper === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  border: 0.0625rem solid var(--color-border);
}

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

.table-responsive::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

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

/* === Badge Styles === */
.badge-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: #0a0a0f;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-number {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: #0a0a0f;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold);
}

/* === Navigation Styles === */
.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.98);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding-top: 5rem;
}

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

.burger-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-bg-elevated);
  border: 0.0625rem solid var(--color-border);
  border-radius: 0.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10000;
  position: relative;
}

.burger-btn:hover {
  border-color: var(--color-gold);
}

.burger-line {
  width: 1.25rem;
  height: 0.125rem;
  background: var(--color-gold);
  transition: var(--transition-smooth);
}

.burger-btn.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.3125rem, -0.3125rem);
}

/* === Hero Section === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.7) 0%, rgba(10, 10, 15, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 50rem;
  padding: 2rem;
}

/* === Bonus Box === */
.bonus-box {
  background: linear-gradient(135deg, rgba(18, 18, 26, 0.95) 0%, rgba(26, 26, 36, 0.95) 100%);
  border: 0.125rem solid var(--color-gold);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  box-shadow: var(--glow-gold-strong);
  position: relative;
  overflow: hidden;
}

.bonus-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.1), transparent 30%);
  animation: spin-slow 10s linear infinite;
  pointer-events: none;
}

/* === Feature Strip === */
.feature-strip {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
}

/* === Step Card === */
.step-card {
  position: relative;
  background: var(--color-bg-card);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--glow-gold);
}

.step-card .badge-number {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
}

/* === Provider Cloud === */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.provider-tag {
  background: var(--color-bg-elevated);
  border: 0.0625rem solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.provider-tag:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* === FAQ Styles === */
.faq-item {
  border: 0.0625rem solid var(--color-border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--color-bg-card);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

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

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

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

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

.faq-answer-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* === Footer Styles === */
.footer-section {
  background: var(--color-bg-dark);
  border-top: 0.0625rem solid var(--color-border);
}

.footer-link {
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-gold);
}

.age-badge {
  width: 3rem;
  height: 3rem;
  background: var(--color-accent-red);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.decorative-diamond {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-gold);
  transform: rotate(45deg);
}

/* ================================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ================================================ */

.prose {
  color: var(--color-text-primary);
  line-height: 1.75;
  max-width: 65ch;
  margin: 0 auto;
}

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

/* === Prose Headings === */
.prose h2 {
  color: var(--color-gold);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 0.125rem solid var(--color-border);
  position: relative;
}

.prose h2::before {
  content: "";
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 4rem;
  height: 0.125rem;
  background: var(--color-gold);
}

.prose h3 {
  color: var(--color-text-primary);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h4 {
  color: var(--color-text-primary);
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* === Prose Paragraphs === */
.prose p {
  color: var(--color-text-secondary);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.8;
  margin-bottom: 1.25em;
}

.prose strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

/* === Prose Links === */
.prose a {
  color: var(--color-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.3);
  text-underline-offset: 0.25em;
  transition: var(--transition-smooth);
}

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

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

.prose ul {
  list-style: none;
}

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

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

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

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

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

/* === Prose Tables === */
.prose .table-responsive {
  margin: 2em 0;
  border-radius: 0.75rem;
  overflow-x: auto;
  border: 0.0625rem solid var(--color-border);
}

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

.prose thead {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
}

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

.prose td {
  color: var(--color-text-secondary);
  padding: 1rem 1.25rem;
  border-bottom: 0.0625rem solid var(--color-border);
}

.prose tbody tr {
  transition: var(--transition-smooth);
}

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

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

/* === Prose Blockquotes === */
.prose blockquote {
  border-left: 0.25rem solid var(--color-gold);
  background: rgba(212, 175, 55, 0.05);
  padding: 1.5rem 2rem;
  margin: 2em 0;
  border-radius: 0 0.75rem 0.75rem 0;
  position: relative;
}

.prose blockquote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--color-gold);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.prose blockquote p {
  color: var(--color-text-primary);
  font-style: italic;
  margin: 0;
}

/* === Prose Images === */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  border: 0.0625rem solid var(--color-border);
}

/* === Prose Code === */
.prose code {
  background: var(--color-bg-elevated);
  color: var(--color-gold);
  padding: 0.25em 0.5em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Fira Code", monospace;
}

.prose pre {
  background: var(--color-bg-card);
  border: 0.0625rem solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2em 0;
}

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

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

/* === Section Spacing === */
.section-spacing {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* === Container Width === */
.container-luxe {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* === SVG Patterns === */
.pattern-grid {
  background-image: linear-gradient(rgba(212, 175, 55, 0.03) 0.0625rem, transparent 0.0625rem),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 0.0625rem, transparent 0.0625rem);
  background-size: 3rem 3rem;
}

.pattern-dots {
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 0.0625rem, transparent 0.0625rem);
  background-size: 1.5rem 1.5rem;
}

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

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}

/* === Selection Styling === */
::selection {
  background: var(--color-gold);
  color: var(--color-bg-dark);
}

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

/* === Promo Card === */
.promo-card {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-elevated) 100%);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.promo-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--glow-gold);
  transform: translateY(-0.375rem);
}

/* === Payment Table === */
.payment-table {
  width: 100%;
  min-width: 37.5rem;
}

.payment-table th,
.payment-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}

.payment-table thead {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.payment-table th {
  color: var(--color-gold);
  font-weight: 600;
  border-bottom: 0.125rem solid var(--color-gold);
}

.payment-table td {
  color: var(--color-text-secondary);
  border-bottom: 0.0625rem solid var(--color-border);
}

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

/* === Review Block === */
.review-block {
  background: var(--color-bg-card);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  min-width: 22rem;
  flex-shrink: 0;
}

/* === Disclaimer Text === */
.disclaimer-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* === Responsive Utilities === */
@media (max-width: 64rem) {
  .prose {
    max-width: 100%;
  }
}

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

  .prose blockquote {
    padding: 1rem 1.5rem;
    padding-left: 1rem;
  }

  .prose blockquote::before {
    display: none;
  }
}
