/* ============================================================
   MonkeyTilt WordPress Theme — theme.css
   Design: "Primal Neon Dark" — dark bg, gold/amber primary
   Font: Space Grotesk (Google Fonts)
   Converted from Lovable React v3 + Tailwind CSS
   ============================================================ */

/* 1. CSS Custom Properties */
:root {
  --bg:          #0a0a0a;
  --bg-card:     #141414;
  --bg-muted:    #1f1f1f;
  --bg-elevated: #1a1a1a;

  --primary:     #f7a600;   /* hsl(37 95% 50%) */
  --secondary:   #f9c21c;   /* hsl(43 96% 56%) */
  --accent:      #f9d14d;   /* hsl(45 93% 62%) */

  --fg:          #ffffff;
  --fg-muted:    #a3a3b0;
  --fg-dim:      rgba(163,163,176,0.5);

  --border:      #292929;   /* hsl(0 0% 16%) */
  --border-soft: rgba(255,255,255,0.08);

  --radius:      0.75rem;
  --radius-full: 9999px;

  --font:        'Space Grotesk', system-ui, sans-serif;

  --glow-sm:     0 0 20px rgba(247,166,0,0.3);
  --glow-md:     0 0 30px rgba(247,166,0,0.5);

  --container:   1200px;
}

/* 2. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg-muted);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { overflow-wrap: break-word; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* 3. Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-wrap {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 2rem;
}

/* 4. Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10,10,10,0.9);
  transition: background 0.3s ease;
}
.navbar.scrolled { background: rgba(10,10,10,0.98); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.navbar__logo:hover { color: var(--primary); }
.navbar__logo span { color: var(--primary); }

/* 5. Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font);
  border-radius: var(--radius-full);
  padding: 0.625rem 1.375rem;
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0a0a0a;
  box-shadow: var(--glow-sm);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.cta-btn:hover { box-shadow: var(--glow-md); transform: scale(1.03); }
.cta-btn:active { transform: scale(0.97); }

.cta-btn-gold {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #0a0a0a;
}

/* 6. Hero */
.hero {
  padding: 2rem 0 1.5rem;
}
.hero__grid {
  display: grid;
  align-items: center;
  gap: 2rem;
}
.hero__h1 {
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--fg);
}
.hero__intro {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 48rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero__card-link {
  display: block;
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(255,255,255,0.07);
  max-width: 440px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.hero__card-link:hover { transform: scale(1.02); }
.hero__card-link img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero__card-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 8rem;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero__mascot {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 5rem;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(255,255,255,0.15));
  pointer-events: none;
}
.hero__alt-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}
.hero__alt-link:hover { text-decoration: underline; }

/* 7. Game Cards Row */
.games-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 0.375rem 1rem;
  margin: 0 -0.375rem;
  scrollbar-width: none;
}
.games-row::-webkit-scrollbar { display: none; }

.game-card {
  flex-shrink: 0;
  width: 9rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-card), var(--bg-muted));
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.game-card:hover {
  border-color: rgba(247,166,0,0.5);
  box-shadow: 0 0 16px rgba(247,166,0,0.15);
  transform: translateY(-2px);
}
.game-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.game-card__info { padding: 0.5rem 0.625rem 0.625rem; }
.game-card__name { font-size: 0.75rem; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card__provider { font-size: 0.65rem; color: var(--fg-muted); margin-top: 0.125rem; }

/* 8. Info Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.info-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-elevated);
}
.info-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}
.info-table tr:nth-child(even) td { background: rgba(31,31,31,0.3); }

/* 9. Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
}
.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.75rem 1rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}
.data-table tr:nth-child(even) td { background: rgba(31,31,31,0.3); }

/* 10. Table of Contents */
.toc {
  position: sticky;
  top: 5rem;
  width: 14rem;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.875rem;
}
.toc__title {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.toc__link {
  display: block;
  padding: 0.375rem 0.75rem;
  color: var(--fg-muted);
  border-radius: 0.375rem;
  transition: color 0.15s, background 0.15s;
  margin-bottom: 0.125rem;
}
.toc__link:hover, .toc__link.active {
  color: var(--primary);
  background: rgba(247,166,0,0.08);
}

/* 11. Content Sections */
.content-section {
  scroll-margin-top: 6rem;
}
.content-section h2 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--fg);
}
.content-section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1.5rem 0 0.5rem;
}
.content-section p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--fg-muted);
}
.content-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.content-section ul li {
  margin-bottom: 0.5rem;
  color: var(--fg-muted);
}
.note-box {
  background: rgba(247,166,0,0.07);
  border: 1px solid rgba(247,166,0,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.note-box h3 { color: var(--primary); margin: 0 0 0.5rem; font-size: 0.9375rem; }
.note-box p { margin: 0; font-size: 0.875rem; }

/* 12. Provider Logos Row */
.providers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}
.provider-badge {
  padding: 0.375rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
}
.provider-badge span { color: var(--primary); font-weight: 600; margin-left: 0.25rem; }

/* 13. FAQ */
.faq { scroll-margin-top: 6rem; margin-top: 2.5rem; }
.faq h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--fg); }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--bg-card);
}
.faq-item__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.2s;
  gap: 1rem;
}
.faq-item__btn:hover { color: var(--primary); }
.faq-item__icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}
.faq-item.open .faq-item__icon { transform: rotate(180deg); }
.faq-item__body {
  display: none;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.75;
}
.faq-item.open .faq-item__body { display: block; }

/* 14. Breadcrumbs */
.breadcrumbs {
  padding: 0.875rem 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--fg-muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--fg-dim); }
.breadcrumbs .current { color: var(--fg); }

/* 15. Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.site-footer__inner {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}
.site-footer__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  transition: color 0.2s;
}
.site-footer__logo:hover { color: var(--primary); }
.site-footer__logo span { color: var(--primary); }
.site-footer__link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.site-footer__link:hover { color: var(--primary); }
.site-footer__rg {
  font-size: 0.75rem;
  color: rgba(163,163,176,0.6);
  margin-left: auto;
}
.site-footer__disclaimer {
  font-size: 0.75rem;
  color: rgba(163,163,176,0.5);
  max-width: 48rem;
  line-height: 1.7;
}
.site-footer__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.75rem;
}
.site-footer__langs a { color: var(--fg-muted); transition: color 0.2s; }
.site-footer__langs a:hover { color: var(--fg); }
.site-footer__langs a.active { color: var(--primary); font-weight: 500; }
.site-footer__copy {
  font-size: 0.75rem;
  color: rgba(163,163,176,0.4);
}

/* 16. Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1),
              filter 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* 17. Article layout */
.article-layout {
  flex: 1;
  min-width: 0;
}

/* 18. Responsive */
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0,1fr) minmax(300px,420px);
    gap: 3rem;
  }
  .hero__card-link { margin: 0 0 0 auto; }
  .game-card { width: 11rem; }
}

@media (max-width: 1023px) {
  .toc { display: none; }
  .page-wrap { display: block; }
}

@media (max-width: 640px) {
  .cta-btn { padding: 0.5rem 1rem; font-size: 0.8125rem; }
  .hero__h1 { font-size: 1.75rem; }
  .site-footer__rg { margin-left: 0; }
}

/* ── Responsible Gambling Org Links ───────────── */
.site-footer__rg-orgs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer__rg-label {
  font-size: 0.75rem;
  color: var(--clr-text-muted, #9ca3af);
  white-space: nowrap;
}
.site-footer__rg-link {
  font-size: 0.75rem;
  color: var(--clr-text-muted, #9ca3af);
  text-decoration: underline;
  white-space: nowrap;
}
.site-footer__rg-link:hover { color: var(--clr-gold, #f5c842); }

/* ── Cookie Consent Banner ────────────────────── */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a2e;
  border-top: 1px solid rgba(245,200,66,.3);
  padding: 1rem 1.5rem;
  align-items: center;
  justify-content: center;
}
.cookie-consent__inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.cookie-consent__text {
  flex: 1;
  font-size: 0.875rem;
  color: #d1d5db;
  margin: 0;
}
.cookie-consent__text a {
  color: var(--clr-gold, #f5c842);
  text-decoration: underline;
}
.cookie-consent__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-consent__btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.cookie-consent__btn--accept {
  background: var(--clr-gold, #f5c842);
  color: #0d0d1a;
}
.cookie-consent__btn--reject {
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(255,255,255,.2);
}
.cookie-consent__btn--accept:hover { opacity: .9; }
.cookie-consent__btn--reject:hover { color: #fff; }
@media (max-width: 640px) {
  .cookie-consent__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Section Cross-links ──────────────────────── */
.section-crosslink {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.section-crosslink a {
  color: var(--clr-gold, #f5c842);
  text-decoration: none;
  font-weight: 500;
}
.section-crosslink a:hover { text-decoration: underline; }
