/* ================================================
   Panteon Casino - Custom CSS
   Keyframes, Animations & Prose Styling
   ================================================ */

/* CSS Custom Properties */
:root {
  --color-gold: #d4af37;
  --color-gold-light: #f4e4a6;
  --color-gold-dark: #b8942e;
  --color-marble: #f5f5f0;
  --color-marble-dark: #e8e8e0;
  --color-obsidian: #1a1a1f;
  --color-obsidian-light: #2a2a32;
  --color-bronze: #cd7f32;
  --color-ivory: #fffff0;
  --color-charcoal: #36363e;
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ================================================
   Keyframe Animations
   ================================================ */

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) translateX(20px) scale(0.5);
    opacity: 0;
  }
}

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

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 1.25rem rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(212, 175, 55, 0.6);
  }
}

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

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

@keyframes marble-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ================================================
   Animation Utility Classes
   ================================================ */

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

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

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

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

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

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

.animate-marble-flow {
  background-size: 200% 200%;
  animation: marble-flow 15s ease infinite;
}

/* Particle Container */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-gold);
  border-radius: 50%;
  animation: float-particle 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 6s; }
.particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(5) { left: 50%; animation-delay: 1.5s; animation-duration: 10s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; animation-duration: 7s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.8s; animation-duration: 9s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.8s; animation-duration: 6s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.2s; animation-duration: 8s; }
.particle:nth-child(10) { left: 95%; animation-delay: 3s; animation-duration: 11s; }

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

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

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

/* ================================================
   Marble Texture Patterns (SVG/CSS)
   ================================================ */

.marble-texture {
  background-color: var(--color-marble);
  background-image: 
    linear-gradient(45deg, rgba(200, 200, 190, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(200, 200, 190, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(200, 200, 190, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(200, 200, 190, 0.1) 75%);
  background-size: 1.25rem 1.25rem;
}

.marble-dark {
  background: linear-gradient(
    135deg,
    var(--color-obsidian) 0%,
    var(--color-obsidian-light) 50%,
    var(--color-charcoal) 100%
  );
}

.gold-border {
  border: 0.125rem solid var(--color-gold);
  box-shadow: 
    inset 0 0 1.25rem rgba(212, 175, 55, 0.1),
    0 0 1.25rem rgba(212, 175, 55, 0.2);
}

/* ================================================
   Table Responsive Wrapper
   ================================================ */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 37.5rem;
}

/* ================================================
   Prose Styling for Markdown Content
   ================================================ */

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

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

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

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

.prose h4 {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--color-marble);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

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

.prose strong {
  color: var(--color-gold-light);
  font-weight: 600;
}

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

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

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

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

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

.prose ul li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 0.625em;
  color: var(--color-marble-dark);
}

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

.prose ol {
  list-style-type: decimal;
  color: var(--color-gold);
}

.prose ol li {
  padding-left: 0.5em;
  margin-bottom: 0.625em;
  color: var(--color-marble-dark);
}

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

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid var(--color-gold);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--color-marble);
}

.prose blockquote p {
  margin-bottom: 0;
}

/* Tables */
.prose .table-responsive {
  margin: 1.5em 0;
  border-radius: 0.5rem;
  overflow-x: auto;
  background: rgba(26, 26, 31, 0.8);
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
}

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

.prose thead {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
}

.prose th {
  padding: 1em;
  text-align: left;
  font-weight: 600;
  color: var(--color-gold);
  border-bottom: 0.0625rem solid rgba(212, 175, 55, 0.3);
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1em;
  border-bottom: 0.0625rem solid rgba(212, 175, 55, 0.1);
  color: var(--color-marble-dark);
}

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

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

/* Code */
.prose code {
  background: rgba(212, 175, 55, 0.1);
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--color-gold-light);
}

.prose pre {
  background: var(--color-obsidian);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
}

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

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

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

/* ================================================
   Component Overrides
   ================================================ */

/* CTA Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-obsidian);
  font-weight: 700;
  padding: 1em 2em;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0.25rem 1rem rgba(212, 175, 55, 0.3);
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  font-weight: 600;
  padding: 1em 2em;
  border-radius: 0.5rem;
  border: 0.125rem solid var(--color-gold);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 1.25rem rgba(212, 175, 55, 0.2);
}

/* Navigation */
.nav-link {
  color: var(--color-marble);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

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

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

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

/* Cards */
.card-panteon {
  background: linear-gradient(
    145deg,
    rgba(42, 42, 50, 0.9),
    rgba(26, 26, 31, 0.95)
  );
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-panteon:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* Badge */
.badge-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-obsidian);
  padding: 0.25em 0.75em;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Mobile Menu Background */
.mobile-menu-bg {
  background: rgba(26, 26, 31, 0.98);
  backdrop-filter: blur(0.625rem);
}

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

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

/* Selection */
::selection {
  background: var(--color-gold);
  color: var(--color-obsidian);
}

/* ================================================
   Media Queries
   ================================================ */

@media (max-width: 48rem) {
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose h2 {
    margin-top: 2em;
  }
  
  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
