/* Stakeprix Custom CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --gold: #D4AF37;
  --gold-light: #FFD700;
  --gold-dark: #B8960C;
  --sapphire: #0F2567;
  --sapphire-light: #1E3A8A;
  --sapphire-dark: #0A1A4A;
  --dark-bg: #080E24;
  --dark-card: #0D1635;
  --dark-border: #1a2d6b;
  --text-primary: #F0E6C8;
  --text-secondary: #A8B4D0;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

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

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

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

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

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

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

.animate-marquee { animation: marquee 30s linear infinite; }
.animate-glow { animation: glow-pulse 2.5s ease-in-out infinite; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-fade-in-up { animation: fade-in-up 0.8s ease forwards; }

.gold-gradient {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

.sapphire-gradient {
  background: linear-gradient(135deg, var(--sapphire-dark), var(--sapphire-light));
}

.gold-btn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  background-size: 200% auto;
  color: #080E24;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s ease;
  animation: shimmer 3s linear infinite;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
}

.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.5);
}

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

.outline-gold-btn:hover {
  background: var(--gold);
  color: #080E24;
  transform: translateY(-2px);
}

.card-dark {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Prose styles for markdown pages */
.prose {
  max-width: 100%;
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--gold-light);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dark-border);
}

.prose h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--gold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

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

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

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

.prose ul li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose ol li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.prose blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--dark-card);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--dark-border);
  margin: 1.5rem auto;
  display: block;
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
}

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

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--gold-light);
  border: 1px solid var(--dark-border);
}

.prose td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  background: var(--dark-card);
}

.prose tr:nth-child(even) td {
  background: rgba(15,37,103,0.3);
}

/* Hero parallax */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.3);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,14,36,0.85) 0%, rgba(15,37,103,0.6) 50%, rgba(8,14,36,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--sapphire); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* Mobile menu */
#mobile-menu {
  background: #0D1635;
  border-top: 1px solid var(--dark-border);
}

/* Step badges */
.step-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: #080E24;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Provider word cloud */
.provider-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  background: rgba(15,37,103,0.5);
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.3rem;
  transition: all 0.2s;
}

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

/* Sticky nav */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,14,36,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
}

/* Container */
.site-container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .site-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .site-container { padding-left: 2rem; padding-right: 2rem; }
}

/* Game card */
.game-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.3);
}

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Promo card */
.promo-card {
  background: linear-gradient(135deg, var(--dark-card), rgba(15,37,103,0.4));
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}

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

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--dark-card);
}

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

.faq-question:hover { color: var(--gold-light); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-answer.open {
  max-height: 400px;
  padding: 0 1.5rem 1.25rem;
}

.faq-icon { transition: transform 0.3s; color: var(--gold); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

/* 18+ badge */
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #DC2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
