/* ================================================
   Atlantic Ace Prime - Custom CSS
   Enhanced contrast, elegant motion, modernized classic
   ================================================ */

/* CSS Custom Properties */
:root {
  --primary-gold: #d4af37;
  --primary-gold-light: #f4d03f;
  --primary-gold-dark: #b8962e;
  --deep-navy: #0a1628;
  --navy-medium: #132743;
  --navy-light: #1e3a5f;
  --accent-teal: #2dd4bf;
  --accent-crimson: #dc2626;
  --surface-dark: #0f1f36;
  --surface-card: #162a46;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(212, 175, 55, 0.2);
  --shadow-gold: rgba(212, 175, 55, 0.3);
}

/* Base Resets & Smooth Scroll */
html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--surface-dark) 100%);
  min-height: 100vh;
}

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

/* Particle Float Animation */
@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-1.5rem) translateX(0.5rem) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-2.5rem) translateX(-0.5rem) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-1rem) translateX(1rem) scale(1.05);
    opacity: 0.7;
  }
}

/* Tilt Animation */
@keyframes tiltHover {
  0%, 100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
  50% {
    transform: perspective(1000px) rotateX(-1deg) rotateY(2deg);
  }
  75% {
    transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
  }
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 1.25rem var(--shadow-gold);
  }
  50% {
    box-shadow: 0 0 2.5rem var(--shadow-gold), 0 0 3.75rem rgba(212, 175, 55, 0.2);
  }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spin Slow */
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

.animate-particle {
  animation: particleFloat 6s ease-in-out infinite;
}

.animate-particle-delay-1 {
  animation: particleFloat 7s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-particle-delay-2 {
  animation: particleFloat 8s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-particle-delay-3 {
  animation: particleFloat 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

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

.animate-tilt:hover {
  animation-play-state: paused;
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}

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

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

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

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

/* ================================================
   Particle Background System
   ================================================ */

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

.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary-gold);
  border-radius: 50%;
  opacity: 0.4;
}

.particle--lg {
  width: 0.75rem;
  height: 0.75rem;
}

.particle--sm {
  width: 0.25rem;
  height: 0.25rem;
}

/* ================================================
   Card Tilt Effects
   ================================================ */

.card-tilt {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.card-tilt:hover {
  transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.4), 0 0 2rem var(--shadow-gold);
}

/* ================================================
   Navigation Styles
   ================================================ */

.nav-sticky {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 22, 40, 0.95);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

/* Mobile Menu */
.mobile-menu {
  background: var(--deep-navy);
  opacity: 1;
}

.mobile-menu-overlay {
  background: rgba(10, 22, 40, 0.98);
}

/* ================================================
   Button Styles
   ================================================ */

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  color: var(--deep-navy);
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

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

.btn-secondary {
  background: transparent;
  border: 0.125rem solid var(--primary-gold);
  color: var(--primary-gold);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-gold);
  color: var(--deep-navy);
  transform: translateY(-0.125rem);
}

/* ================================================
   Hero Section
   ================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.7) 0%,
    rgba(10, 22, 40, 0.85) 50%,
    var(--deep-navy) 100%
  );
}

.bonus-badge {
  background: linear-gradient(135deg, var(--surface-card) 0%, var(--navy-medium) 100%);
  border: 0.125rem solid var(--primary-gold);
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(212, 175, 55, 0.1) 60deg,
    transparent 120deg
  );
  animation: spinSlow 10s linear infinite;
}

/* ================================================
   Game Cards
   ================================================ */

.game-card {
  background: var(--surface-card);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
}

.game-card-image {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* ================================================
   Step Cards
   ================================================ */

.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  color: var(--deep-navy);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.5rem 1.5rem var(--shadow-gold);
}

/* ================================================
   Tables - Responsive
   ================================================ */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.payment-table {
  width: 100%;
  min-width: 37.5rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-card);
  border-radius: 0.75rem;
  overflow: hidden;
}

.payment-table th {
  background: var(--navy-medium);
  color: var(--primary-gold);
  font-weight: 600;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 0.125rem solid var(--primary-gold);
}

.payment-table td {
  padding: 1rem 1.25rem;
  border-bottom: 0.0625rem solid var(--border-subtle);
  color: var(--text-primary);
}

.payment-table tr:last-child td {
  border-bottom: none;
}

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

/* ================================================
   Review Blocks
   ================================================ */

.review-block {
  background: var(--surface-card);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
}

.review-block h3 {
  color: var(--primary-gold);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

/* ================================================
   Provider Cloud
   ================================================ */

.provider-tag {
  background: var(--navy-medium);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  border: 0.0625rem solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

/* ================================================
   Promo Cards
   ================================================ */

.promo-card {
  background: linear-gradient(135deg, var(--surface-card) 0%, var(--navy-medium) 100%);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-0.25rem);
}

/* ================================================
   FAQ Section
   ================================================ */

.faq-item {
  background: var(--surface-card);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(212, 175, 55, 0.05);
}

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

.faq-item.active .faq-answer {
  display: block;
}

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

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--primary-gold);
}

/* ================================================
   Footer
   ================================================ */

.footer-section {
  background: var(--deep-navy);
  border-top: 0.0625rem solid var(--border-subtle);
}

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

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

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

/* Prose Headings */
.prose h2 {
  color: var(--primary-gold);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  border-bottom: 0.125rem solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

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

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

/* Prose Paragraphs */
.prose p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.prose p:first-of-type {
  font-size: 1.1rem;
  color: var(--text-primary);
}

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

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

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

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

/* 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(--text-secondary);
  line-height: 1.7;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary-gold);
  border-radius: 50%;
}

/* 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(--text-secondary);
  line-height: 1.7;
  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(--navy-medium);
  border: 0.0625rem solid var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-gold);
}

/* Prose Tables */
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: var(--surface-card);
  border-radius: 0.75rem;
  overflow: hidden;
  font-size: 0.9375rem;
}

.prose thead {
  background: var(--navy-medium);
}

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

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

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

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

/* Prose Blockquotes */
.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--surface-card);
  border-left: 0.25rem solid var(--primary-gold);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
}

.prose blockquote p {
  color: var(--text-primary);
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* Prose Code */
.prose code {
  background: var(--navy-medium);
  color: var(--accent-teal);
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Fira Code', monospace;
}

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

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

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

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

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

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gold {
  border-color: var(--primary-gold);
}

.bg-surface {
  background: var(--surface-card);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ================================================
   SVG Pattern Background
   ================================================ */

.pattern-bg {
  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='%23d4af37' fill-opacity='0.03'%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");
}

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

@media (max-width: 1024px) {
  .prose h2 {
    margin-top: 2rem;
  }
  
  .prose h3 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }
  
  .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 blockquote {
    padding: 1rem 1.25rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.75rem 1rem;
  }
}

/* ================================================
   Animation on Scroll Observer Classes
   ================================================ */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
