/* ================================================
   Mafia Casino - Midnight Luxe Online North Theme
   Custom CSS: Keyframes, Animations & Prose Styling
   ================================================ */

/* === CSS Custom Properties === */
:root {
  --color-midnight: #0a0a0f;
  --color-deep-navy: #12121a;
  --color-charcoal: #1a1a24;
  --color-slate: #2a2a38;
  --color-gold-primary: #d4af37;
  --color-gold-light: #f4d03f;
  --color-gold-dark: #b8960c;
  --color-cream: #faf8f0;
  --color-warm-white: #f5f3eb;
  --color-muted: #9ca3af;
  --color-accent-red: #dc2626;
  --color-success: #22c55e;
  --gradient-gold: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold-primary) 50%, var(--color-gold-light) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-midnight) 0%, var(--color-deep-navy) 50%, var(--color-charcoal) 100%);
  --shadow-gold: 0 0 2rem rgba(212, 175, 55, 0.3);
  --shadow-card: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
}

/* === Keyframe Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

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

@keyframes scale-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 0.5rem rgba(212, 175, 55, 0.5)); }
  50% { filter: drop-shadow(0 0 1.5rem rgba(212, 175, 55, 0.8)); }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(3rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === Animation Utility Classes === */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

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

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

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

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

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

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

.parallax-layer {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.parallax-slow {
  transform: translateZ(-2px) scale(1.5);
}

.parallax-fast {
  transform: translateZ(0px);
}

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

.marquee-content {
  display: inline-flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
}

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

/* === Button Styles === */
.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-midnight);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-gold-primary);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid var(--color-gold-primary);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

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

/* === Card Styles === */
.card-luxe {
  background: linear-gradient(145deg, var(--color-charcoal) 0%, var(--color-deep-navy) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-luxe:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-card);
}

/* === Gold Text Gradient === */
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* ================================================
   PROSE STYLING - Typography & Content Readability
   ================================================ */

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

/* Prose Headings */
.prose h2 {
  color: var(--color-gold-primary);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 0.5rem;
}

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

.prose h4 {
  color: var(--color-warm-white);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.prose p:first-of-type {
  font-size: 1.1rem;
}

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

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

/* Prose Lists - Unordered */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-warm-white);
}

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

/* Prose Lists - Ordered */
.prose ol {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-warm-white);
  counter-increment: prose-counter;
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--gradient-gold);
  color: var(--color-midnight);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.prose thead {
  background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold-primary) 100%);
}

.prose thead th {
  color: var(--color-midnight);
  font-weight: 700;
  text-align: left;
  padding: 1rem;
  white-space: nowrap;
}

.prose tbody tr {
  background: var(--color-charcoal);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: var(--color-deep-navy);
}

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

.prose tbody td {
  padding: 1rem;
  color: var(--color-warm-white);
  vertical-align: middle;
}

/* Prose Blockquotes */
.prose blockquote {
  border-left: 4px solid var(--color-gold-primary);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}

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

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

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

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

.prose pre {
  background: var(--color-charcoal);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

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

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* === Nav Mobile Menu === */
.mobile-menu {
  background: var(--color-deep-navy);
  backdrop-filter: blur(10px);
}

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

::-webkit-scrollbar-track {
  background: var(--color-deep-navy);
}

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

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

/* === Focus States for Accessibility === */
a:focus,
button:focus {
  outline: 2px solid var(--color-gold-primary);
  outline-offset: 2px;
}

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

/* === Disclaimer Text === */
.disclaimer {
  font-size: 0.8125rem;
  color: var(--color-muted);
  opacity: 0.85;
}

/* === Badge Styles === */
.badge-18plus {
  background: var(--color-accent-red);
  color: white;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

/* === SVG Pattern Background === */
.pattern-grid {
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 4rem 4rem;
}

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

/* === Utility Classes === */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.opacity-0 { opacity: 0; }

/* === Media Queries for Prose === */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .prose h2 {
    margin-top: 2rem;
  }

  .prose h3 {
    margin-top: 1.5rem;
  }

  .prose ul li,
  .prose ol li {
    padding-left: 1.5rem;
  }

  .prose ol li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose thead th,
  .prose tbody td {
    padding: 0.75rem;
  }
}
