/* Atlantic Ace Prime Flow - Custom CSS */
/* Refined gradients, elegant motion, classic identity with modern polish */

:root {
  --primary-deep: #0a1628;
  --primary-mid: #132743;
  --primary-light: #1e3a5f;
  --accent-gold: #d4a853;
  --accent-gold-light: #f0d589;
  --accent-gold-dark: #b8923f;
  --text-light: #f8f9fa;
  --text-muted: #a8b4c4;
  --text-dark: #1a1a2e;
  --success: #28a745;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-card: rgba(19, 39, 67, 0.85);
}

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

body {
  background: linear-gradient(180deg, var(--primary-deep) 0%, var(--primary-mid) 50%, var(--primary-deep) 100%);
  min-height: 100vh;
}

/* Keyframe Animations */
@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-35px) translateX(-5px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-15px) translateX(-15px) scale(1.05);
    opacity: 0.5;
  }
}

@keyframes particle-drift {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 168, 83, 0.6);
  }
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Particle Background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: particle-drift 15s linear infinite;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 22s; }
.particle:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 35%; animation-delay: 1s; animation-duration: 20s; }
.particle:nth-child(5) { left: 45%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 55%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 65%; animation-delay: 2.5s; animation-duration: 21s; }
.particle:nth-child(8) { left: 75%; animation-delay: 0.5s; animation-duration: 23s; }
.particle:nth-child(9) { left: 85%; animation-delay: 4.5s; animation-duration: 18s; }
.particle:nth-child(10) { left: 95%; animation-delay: 1.5s; animation-duration: 20s; }

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

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

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

/* Navigation */
.nav-sticky {
  backdrop-filter: blur(12px);
  background: rgba(10, 22, 40, 0.92);
  border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
  background: linear-gradient(180deg, var(--primary-deep) 0%, var(--primary-mid) 100%);
  border-left: 1px solid rgba(212, 168, 83, 0.3);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--text-dark);
  font-weight: 700;
  transition: all 0.3s ease;
  animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
}

/* Cards */
.card-elegant {
  background: var(--surface-card);
  border: 1px solid rgba(212, 168, 83, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.card-elegant:hover {
  border-color: rgba(212, 168, 83, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Bonus Badge */
.bonus-badge {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, rgba(212, 168, 83, 0.05) 100%);
  border: 2px solid var(--accent-gold);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Step Badges */
.step-badge {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--text-dark);
  font-weight: 800;
}

/* Game Cards */
.game-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.game-card img {
  transition: transform 0.4s ease;
}

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

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.payment-table {
  border-collapse: separate;
  border-spacing: 0;
}

.payment-table th {
  background: rgba(212, 168, 83, 0.2);
  color: var(--accent-gold-light);
  font-weight: 600;
}

.payment-table td {
  background: var(--surface-card);
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-table tr:hover td {
  background: rgba(212, 168, 83, 0.1);
}

/* Provider Cloud */
.provider-tag {
  background: var(--surface-glass);
  border: 1px solid rgba(212, 168, 83, 0.2);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

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

/* FAQ Accordion */
.faq-item {
  border: 1px solid rgba(212, 168, 83, 0.15);
  background: var(--surface-card);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(212, 168, 83, 0.3);
}

.faq-question {
  cursor: pointer;
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Footer */
.footer-gradient {
  background: linear-gradient(180deg, var(--primary-mid) 0%, var(--primary-deep) 100%);
  border-top: 1px solid rgba(212, 168, 83, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-gold-dark);
  border-radius: 4px;
}

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

/* Hero Background */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.7) 0%, rgba(19, 39, 67, 0.9) 100%);
}

/* Prose Styling for Markdown Content */
.prose {
  color: var(--text-light);
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: var(--accent-gold-light);
  font-size: 1.875em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(212, 168, 83, 0.3);
}

.prose h3 {
  color: var(--accent-gold);
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
}

.prose h4 {
  color: var(--text-light);
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.25em;
  color: var(--text-muted);
}

.prose a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

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

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

.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

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

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
}

.prose ol {
  counter-reset: prose-counter;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

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

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75em;
  height: 1.75em;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.875em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5em 0;
  font-size: 0.9375em;
}

.prose table thead th {
  background: rgba(212, 168, 83, 0.2);
  color: var(--accent-gold-light);
  font-weight: 600;
  padding: 0.875em 1em;
  text-align: left;
  border-bottom: 2px solid var(--accent-gold-dark);
}

.prose table thead th:first-child {
  border-radius: 0.5em 0 0 0;
}

.prose table thead th:last-child {
  border-radius: 0 0.5em 0 0;
}

.prose table tbody td {
  background: var(--surface-card);
  color: var(--text-light);
  padding: 0.875em 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prose table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 0.5em;
}

.prose table tbody tr:last-child td:last-child {
  border-radius: 0 0 0.5em 0;
}

.prose table tbody tr:hover td {
  background: rgba(212, 168, 83, 0.1);
}

.prose blockquote {
  border-left: 4px solid var(--accent-gold);
  background: var(--surface-glass);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 0.5em 0.5em 0;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75em;
  margin: 1.5em 0;
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-dark), transparent);
  margin: 2.5em 0;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 50%, var(--accent-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

.animate-scale-in {
  animation: scale-in 0.5s ease forwards;
}

/* Responsive adjustments for prose */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5em;
  }
  
  .prose h3 {
    font-size: 1.25em;
  }
  
  .prose table {
    font-size: 0.875em;
  }
  
  .prose table thead th,
  .prose table tbody td {
    padding: 0.625em 0.75em;
  }
}

/* 18+ Badge */
.badge-18plus {
  background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
  color: #fff;
  font-weight: 800;
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.4), transparent);
}
