/* MegaWays Casino – Custom CSS */
:root {
  --sapphire: #0d1b4b;
  --sapphire-mid: #162055;
  --velvet: #120a2e;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #8a6f2e;
  --text-light: #f0eaff;
  --text-muted: #b8b0d0;
  --card-bg: #1a1040;
  --card-border: #2a1f5a;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Sticky nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0a1230 0%, #1a0a2e 100%);
  border-bottom: 2px solid var(--gold-dim);
  box-shadow: 0 2px 16px rgba(201,168,76,0.18);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  text-decoration: none;
}

.burger-btn {
  display: none;
  background: none;
  border: 2px solid var(--gold-dim);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--gold);
  font-size: 1.2rem;
}

.mobile-menu {
  display: none;
  background: #0a1230;
  border-top: 1px solid var(--gold-dim);
  padding: 1rem 1.25rem;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  color: var(--text-light);
  font-weight: 600;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--card-border);
}

.mobile-menu a:hover { color: var(--gold); text-decoration: none; }

@media (max-width: 1023px) {
  .burger-btn { display: inline-flex; align-items: center; }
  .desktop-nav { display: none; }
}

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

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #0a1230;
  font-weight: 800;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(201,168,76,0.35);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.5);
  color: #0a1230;
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 1rem;
  border: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--gold);
  color: #0a1230;
  text-decoration: none;
}

/* Hero */
.hero-section {
  min-height: 88vh;
  background: url('/images/hero.webp') center/cover no-repeat, linear-gradient(135deg, #0a1230 0%, #1a0a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,18,48,0.72) 0%, rgba(18,10,46,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
  padding: 2rem 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-title span { color: var(--gold); }

.bonus-badge {
  background: linear-gradient(135deg, rgba(201,168,76,0.18) 0%, rgba(201,168,76,0.08) 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 1.5rem auto;
  display: inline-block;
  max-width: 580px;
  width: 100%;
}

.bonus-badge .bonus-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  font-weight: 700;
}

.bonus-badge .bonus-amount {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
  display: block;
  margin-top: 0.3rem;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  opacity: 0.85;
}

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

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-wrap { overflow: hidden; padding: 0.5rem 0; }

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

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

/* Sections */
.section-dark {
  background: var(--sapphire);
  padding: 4rem 0;
}

.section-velvet {
  background: var(--velvet);
  padding: 4rem 0;
}

.section-mid {
  background: var(--sapphire-mid);
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 1.25rem;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201,168,76,0.22);
}

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

.game-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.game-card-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.step-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a1230;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(201,168,76,0.4);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.step-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Promo cards */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.promo-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, #0f1840 100%);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.promo-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
}

.promo-card-copy { color: var(--text-muted); font-size: 0.95rem; flex: 1; }

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th {
  background: rgba(201,168,76,0.2);
  color: var(--gold);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--gold-dim);
  white-space: nowrap;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-light);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.03); }

/* Review blocks */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
}

.review-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
}

.review-block h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.review-block p, .review-block li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.review-block ul { padding-left: 1.25rem; }
.review-block li { margin-bottom: 0.35rem; }

/* Word cloud */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 1rem 0;
}

.word-cloud-item {
  background: rgba(201,168,76,0.12);
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.word-cloud-item:hover { background: rgba(201,168,76,0.25); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover { background: rgba(255,255,255,0.03); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s; }

/* Footer */
.site-footer {
  background: #060d1e;
  border-top: 2px solid var(--gold-dim);
  padding: 3rem 0 1.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 1.25rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  border: 2px solid #e74c3c;
}

/* Prose for markdown pages */
.prose {
  color: var(--text-light);
  max-width: 860px;
  margin-inline: auto;
  padding: 2rem 1.25rem 4rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--card-border);
}

.prose h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--gold-light);
  margin: 1.5rem 0 0.5rem;
}

.prose p { margin: 0 0 1.1rem; color: var(--text-muted); }

.prose a { color: var(--gold); font-weight: 600; }
.prose a:hover { color: var(--gold-light); }

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1.1rem;
  color: var(--text-muted);
}

.prose li { margin-bottom: 0.4rem; }

.prose blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(201,168,76,0.07);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--card-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-radius: 10px;
  border: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
}

.prose th {
  background: rgba(201,168,76,0.18);
  color: var(--gold);
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--gold-dim);
}

.prose td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-light);
}

.prose strong { color: var(--gold-light); font-weight: 700; }

/* Misc */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 0;
  border: none;
}
