/* MegaWays Casino – Custom CSS */

:root {
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #6ee7b7;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --twilight: #08111f;
  --twilight-mid: #0f2030;
  --twilight-card: #132840;
  --twilight-card2: #1a3350;
  --text-primary: #f0fdf4;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--twilight);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

/* Fern SVG pattern overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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='%2310b981' fill-opacity='0.04'%3E%3Cpath d='M30 0 Q35 15 30 30 Q25 15 30 0Z M20 10 Q30 20 30 30 Q20 25 20 10Z M40 10 Q30 20 30 30 Q40 25 40 10Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

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

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50% { box-shadow: 0 0 0 14px rgba(245,158,11,0); }
}

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

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

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

.animate-marquee { animation: marquee 28s linear infinite; }
.animate-fadeInUp { animation: fadeInUp 0.7s ease forwards; }
.animate-float { animation: parallax-float 4s ease-in-out infinite; }

.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0f1e;
  font-weight: 700;
  padding: 0.75em 1.75em;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1rem;
  animation: pulse-gold 2.5s infinite;
  transition: transform 0.2s, opacity 0.2s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-gold:hover { transform: scale(1.05); opacity: 0.93; }

.btn-emerald {
  display: inline-block;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.75em 1.75em;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s, opacity 0.2s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-emerald:hover { transform: scale(1.05); opacity: 0.9; }

.btn-sm {
  padding: 0.45em 1.1em;
  font-size: 0.85rem;
}

.card-dark {
  background: var(--twilight-card);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.25s, border-color 0.25s;
}
.card-dark:hover { transform: translateY(-4px); border-color: var(--emerald); }

.shimmer-text {
  background: linear-gradient(90deg, var(--gold) 25%, #fff 50%, var(--gold) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Prose for markdown pages */
.prose {
  color: var(--text-primary);
  max-width: 100%;
  line-height: 1.8;
}
.prose h2 {
  color: var(--emerald-light);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  border-left: 4px solid var(--gold);
  padding-left: 0.75rem;
}
.prose h3 {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.prose p { margin: 0 0 1.1rem; }
.prose a { color: var(--emerald); text-decoration: underline; }
.prose a:hover { color: var(--gold); }
.prose ul, .prose ol { margin: 0.5rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose blockquote {
  border-left: 4px solid var(--gold);
  margin: 1rem 0;
  padding: 0.5rem 1.25rem;
  color: var(--text-secondary);
  background: rgba(245,158,11,0.07);
  border-radius: 0 0.5rem 0.5rem 0;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.25rem 0;
  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: 1.25rem 0;
}
.prose table th {
  background: var(--emerald-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
}
.prose table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(16,185,129,0.15);
  color: var(--text-primary);
  background: var(--twilight-card);
}
.prose table tr:nth-child(even) td { background: var(--twilight-card2); }

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.container-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Mobile menu */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* FAQ accordion */
.faq-answer { display: none; }
.faq-answer.open { display: block; }

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gold);
  color: #0a0f1e;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Word cloud */
.word-cloud span {
  display: inline-block;
  margin: 0.3rem 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(16,185,129,0.13);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: background 0.2s;
}
.word-cloud span:hover { background: rgba(16,185,129,0.28); }

@media (max-width: 768px) {
  .prose h2 { font-size: 1.25rem; }
  .prose h3 { font-size: 1.05rem; }
}
