/* Atlantic Ace North Theme - Custom CSS */
/* Brighter gold accents, crisp layout, premium coastal feel */

:root {
  --gold-primary: #D4AF37;
  --gold-light: #F4E4BA;
  --gold-bright: #FFD700;
  --navy-deep: #0A1628;
  --navy-medium: #132238;
  --navy-light: #1E3A5F;
  --coastal-blue: #2E5A88;
  --ice-white: #F8FAFC;
  --frost: #E2E8F0;
  --seafoam: #64B5A0;
  --coral-accent: #E07A5F;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy-deep);
  color: var(--ice-white);
  line-height: 1.6;
}

/* ========== KEYFRAME ANIMATIONS ========== */

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

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

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

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.8); }
}

@keyframes wave {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.8); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

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

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

/* ========== PARALLAX ========== */

.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

/* ========== 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 {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(10, 22, 40, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-menu {
  background: var(--navy-deep);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  background: var(--navy-medium);
  min-height: 100vh;
  padding: 5rem 1.5rem 2rem;
}

/* ========== BUTTONS ========== */

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
  color: var(--navy-deep);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-bright);
}

/* ========== 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;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.7) 0%,
    rgba(10, 22, 40, 0.85) 50%,
    rgba(10, 22, 40, 0.95) 100%
  );
}

.bonus-badge {
  background: linear-gradient(135deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold-primary);
  border-radius: 1rem;
  padding: 2rem;
  animation: pulse-gold 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  animation: shimmer 3s infinite;
}

/* ========== GAME CARDS ========== */

.game-card {
  background: var(--navy-medium);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

/* ========== STEPS SECTION ========== */

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

.step-card {
  background: var(--navy-medium);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.3s ease;
}

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

/* ========== TABLES ========== */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.payment-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background: var(--navy-medium);
}

.payment-table th {
  background: var(--navy-light);
  color: var(--gold-light);
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.payment-table td {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--frost);
}

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

/* ========== REVIEW BLOCKS ========== */

.review-block {
  background: linear-gradient(135deg, var(--navy-medium), var(--navy-light));
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  height: 100%;
}

.review-block h3 {
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* ========== PROVIDER CLOUD ========== */

.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.provider-tag {
  background: var(--navy-light);
  color: var(--frost);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.2s ease;
}

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

/* ========== PROMO CARDS ========== */

.promo-card {
  background: var(--navy-medium);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.promo-card h4 {
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

/* ========== FAQ SECTION ========== */

.faq-item {
  background: var(--navy-medium);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

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

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

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--frost);
  display: none;
}

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

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

/* ========== FOOTER ========== */

.footer {
  background: var(--navy-medium);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer a {
  color: var(--frost);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.age-badge {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--coral-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--coral-accent);
}

/* ========== SVG DECORATIONS ========== */

.svg-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.svg-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

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

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

.prose h2 {
  color: var(--gold-light);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

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

.prose h4 {
  color: var(--ice-white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

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

.prose a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

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

.prose strong {
  color: var(--ice-white);
  font-weight: 600;
}

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

.prose ul,
.prose ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

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

.prose ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
}

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

.prose ol {
  list-style-type: decimal;
}

.prose ol li {
  margin-bottom: 0.75em;
  padding-left: 0.5em;
}

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

.prose blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  background: var(--navy-medium);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--ice-white);
  font-style: italic;
}

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

.prose table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  background: var(--navy-medium);
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.prose table th {
  background: var(--navy-light);
  color: var(--gold-light);
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.prose table td {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--frost);
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2em 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

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

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

.prose pre {
  background: var(--navy-medium);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2em 0;
}

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

/* ========== UTILITIES ========== */

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

.text-gold-light {
  color: var(--gold-light);
}

.bg-navy-deep {
  background-color: var(--navy-deep);
}

.bg-navy-medium {
  background-color: var(--navy-medium);
}

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

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

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

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

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .mobile-nav-toggle {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 6rem 0 4rem;
  }
  
  .bonus-badge {
    padding: 1.5rem;
  }
  
  .step-card {
    padding: 1.5rem;
  }
  
  .review-block {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* ========== CUSTOM SCROLLBAR ========== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}

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