/* BetWest Kiwi Crown - Custom CSS */

:root {
  --bw-twilight: #0b1a2e;
  --bw-twilight-mid: #112240;
  --bw-twilight-card: #162a4a;
  --bw-emerald: #10b981;
  --bw-emerald-dark: #059669;
  --bw-gold: #f5a623;
  --bw-gold-dark: #d4891a;
  --bw-text: #e2e8f0;
  --bw-text-muted: #94a3b8;
  --bw-heading: #ffffff;
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 35px rgba(16, 185, 129, 0.8), 0 0 60px rgba(245, 166, 35, 0.3); }
}

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

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

@keyframes fern-rotate {
  0% { transform: rotate(0deg) scale(1); opacity: 0.04; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 0.07; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.04; }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--bw-gold) 0%, #fff8e1 40%, var(--bw-gold) 60%, var(--bw-emerald) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

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

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

.marquee-track {
  animation: marquee 28s linear infinite;
}

.fern-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.fern-shape {
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 50% 10% 50% 10%;
  border: 2px solid var(--bw-emerald);
  animation: fern-rotate 20s linear infinite;
  opacity: 0.05;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(11,26,46,0.93) 0%, rgba(16,34,64,0.85) 50%, rgba(11,26,46,0.93) 100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--bw-emerald) 0%, var(--bw-emerald-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85em 2em;
  border-radius: 0.5em;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16,185,129,0.55);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--bw-gold) 0%, var(--bw-gold-dark) 100%);
  color: #0b1a2e;
  font-weight: 700;
  padding: 0.85em 2em;
  border-radius: 0.5em;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.35);
  cursor: pointer;
  border: none;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,166,35,0.55);
}

.card-twilight {
  background: var(--bw-twilight-card);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 1em;
  transition: transform 0.25s, border-color 0.25s;
}

.card-twilight:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,0.5);
}

.badge-bonus {
  background: linear-gradient(135deg, rgba(245,166,35,0.15) 0%, rgba(16,185,129,0.15) 100%);
  border: 2px solid var(--bw-gold);
  border-radius: 1em;
  padding: 1.5em 2em;
}

.step-badge {
  background: linear-gradient(135deg, var(--bw-emerald) 0%, var(--bw-gold) 100%);
  color: #0b1a2e;
  font-weight: 900;
  width: 2.8em;
  height: 2.8em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  flex-shrink: 0;
}

.provider-tag {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--bw-emerald);
  border-radius: 2em;
  padding: 0.3em 0.9em;
  font-size: 0.85em;
  font-weight: 600;
  display: inline-block;
  margin: 0.25em;
}

.nav-glass {
  background: rgba(11,26,46,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16,185,129,0.2);
}

.mobile-menu {
  background: #0b1a2e;
  border-top: 1px solid rgba(16,185,129,0.25);
}

/* Prose styles for Markdown content */
.prose {
  color: var(--bw-text);
  line-height: 1.8;
  max-width: 100%;
}

.prose h2 {
  color: var(--bw-heading);
  font-size: 1.65em;
  font-weight: 800;
  margin-top: 2em;
  margin-bottom: 0.6em;
  border-left: 4px solid var(--bw-emerald);
  padding-left: 0.6em;
}

.prose h3 {
  color: var(--bw-gold);
  font-size: 1.2em;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

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

.prose a {
  color: var(--bw-emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.prose ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
  color: var(--bw-text);
}

.prose blockquote {
  border-left: 4px solid var(--bw-gold);
  padding: 0.5em 1em;
  background: rgba(245,166,35,0.08);
  border-radius: 0 0.5em 0.5em 0;
  margin: 1.5em 0;
  color: #fff8e1;
  font-style: italic;
}

.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.5em;
}

.prose thead {
  background: rgba(16,185,129,0.2);
}

.prose th {
  color: var(--bw-gold);
  font-weight: 700;
  padding: 0.7em 1em;
  text-align: left;
  border-bottom: 2px solid rgba(16,185,129,0.4);
}

.prose td {
  padding: 0.6em 1em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--bw-text);
}

.prose tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}

.prose img {
  max-width: 100%;
  border-radius: 0.75em;
  margin: 1.5em auto;
  display: block;
}

.section-title {
  color: var(--bw-heading);
  font-size: 2em;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.3em;
}

.section-subtitle {
  color: var(--bw-text-muted);
  text-align: center;
  margin-bottom: 2em;
}

.payments-table th {
  background: rgba(16,185,129,0.2);
  color: var(--bw-gold);
  font-weight: 700;
  padding: 0.75em 1em;
  text-align: left;
}

.payments-table td {
  padding: 0.65em 1em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--bw-text);
}

.payments-table tr:hover td {
  background: rgba(16,185,129,0.05);
}

.faq-item {
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 0.75em;
  overflow: hidden;
  margin-bottom: 0.75em;
}

.faq-question {
  background: var(--bw-twilight-card);
  color: var(--bw-heading);
  font-weight: 600;
  padding: 1em 1.25em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  background: var(--bw-twilight-mid);
  color: var(--bw-text);
  padding: 1em 1.25em;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .section-title { font-size: 1.5em; }
  .prose h2 { font-size: 1.3em; }
  .prose h3 { font-size: 1.1em; }
}
