/* ---------- Self-hosted Inter Font ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   CRYPTO CASINO NIGERIA — Main Stylesheet
   Mobile-first, minimal, fast-loading
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2a40;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-heading: #f9fafb;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fbbf24;
  --green: #10b981;
  --green-dark: #059669;
  --red: #ef4444;
  --border: #1f2937;
  --border-light: #374151;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
p a, li a, td a:not(.cta-button):not(.cta-main) { text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-light); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--text-heading); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); display: inline-block; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: .4rem; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.site-logo span { color: var(--accent); }

/* CTA Button — Header */
.cta-main {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #000;
  font-weight: 700;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.cta-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,.4);
  color: #000;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Nav */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: .25rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: .5rem .75rem;
  color: var(--text-secondary);
  font-size: .85rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--bg-card);
  color: var(--text-heading);
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .75rem 1rem; font-size: 1rem; }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- Hero / TLDR Box ---------- */
.tldr-box {
  background: linear-gradient(135deg, var(--bg-card), #1a2a3a);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.tldr-box strong { color: var(--accent); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

/* Casino Card */
.casino-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
}
.casino-card-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--bg-secondary);
  padding: .5rem;
}
.casino-card-info h3 { margin: 0 0 .25rem; }
.casino-card-rating {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* CTA Button — In Content */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #047857;
  color: #fff;
  font-weight: 700;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-size: .95rem;
  transition: background .2s, transform .15s;
}
.cta-button:hover {
  background: #065f46;
  transform: translateY(-1px);
  color: #fff;
}
.cta-button-amber {
  background: var(--accent);
  color: #000;
}
.cta-button-amber:hover {
  background: var(--accent-hover);
  color: #000;
}

/* ---------- Comparison Table ---------- */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 600px;
}
.comparison-table th {
  background: var(--bg-card);
  color: var(--accent);
  text-align: left;
  padding: .75rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}
.comparison-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.comparison-table tr:hover td { background: var(--bg-card-hover); }
.comparison-table .highlight { color: var(--green); font-weight: 600; }

/* --- Mobile: Convert table rows into stacked cards --- */
@media (max-width: 768px) {
  .table-wrapper { border: none; overflow: visible; }
  .comparison-table { min-width: 0; }
  .comparison-table thead { display: none; }
  .comparison-table tbody { display: flex; flex-direction: column; gap: .75rem; }
  .comparison-table tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .4rem .75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    align-items: center;
  }
  .comparison-table tr:hover td { background: transparent; }
  .comparison-table td {
    padding: .15rem 0;
    border: none;
    font-size: .9rem;
  }
  .comparison-table td::before {
    content: attr(data-label);
    color: var(--text-secondary);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
  }
  /* Rank number — big accent */
  .comparison-table td:first-child {
    grid-row: 1 / 3;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(245,158,11,.12);
    border-radius: 50%;
  }
  .comparison-table td:first-child::before { display: none; }
  /* Casino name + logo — prominent */
  .comparison-table td:nth-child(2) {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
  }
  .comparison-table td:nth-child(2)::before { display: none; }
  .comparison-table td:nth-child(2) .table-logo {
    width: 32px;
    height: 32px;
  }
  /* CTA button — full width at bottom */
  .comparison-table td:last-child {
    grid-column: 1 / -1;
    margin-top: .5rem;
  }
  .comparison-table td:last-child .cta-button {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: .75rem;
    font-size: 1rem;
  }
}

/* ---------- FAQ ---------- */
.faq-section { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  color: var(--text-heading);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform .2s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

/* ---------- TOC ---------- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.toc-title {
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: .75rem;
  font-size: .95rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}
.toc li { margin-bottom: .4rem; }
.toc a { color: var(--text-secondary); font-size: .9rem; }
.toc a:hover { color: var(--accent); }

/* ---------- Pros / Cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.pros, .cons {
  padding: 1rem;
  border-radius: var(--radius);
}
.pros { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); }
.cons { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); }
.pros h4 { color: var(--green); margin-bottom: .5rem; }
.cons h4 { color: var(--red); margin-bottom: .5rem; }
.pros li, .cons li { font-size: .9rem; }

@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.step {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.step-content h3 { margin: 0 0 .5rem; font-size: 1.05rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-green { background: rgba(16,185,129,.2); color: var(--green); }
.badge-amber { background: rgba(245,158,11,.2); color: var(--accent); }
.badge-red { background: rgba(239,68,68,.2); color: var(--red); }

/* ---------- Rating Stars ---------- */
.stars { color: var(--accent); letter-spacing: 2px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: .85rem;
  color: var(--text-secondary);
  margin: 2rem 0;
}
.disclaimer strong { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-section h4 {
  color: var(--accent);
  margin-bottom: .75rem;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section li { margin-bottom: .4rem; }
.footer-section a { color: var(--text-secondary); font-size: .85rem; }
.footer-section a:hover { color: var(--text-heading); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .8rem;
  color: var(--text-secondary);
}
.footer-bottom p { margin-bottom: .5rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: .75rem 0;
  font-size: .85rem;
  color: var(--text-secondary);
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 .4rem; }

/* ---------- Internal Links Block ---------- */
.related-pages {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.related-pages h3 { margin: 0 0 1rem; color: var(--accent); }
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .75rem;
}
.related-links a {
  display: block;
  padding: .75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: .9rem;
  transition: background .2s;
}
.related-links a:hover { background: var(--bg-card-hover); color: var(--accent); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Page-specific ---------- */
.hero {
  padding: 2rem 0;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.hero .subtitle { color: var(--text-secondary); font-size: 1.1rem; }

/* Casino mini logo in tables */
.table-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: .5rem;
}

/* ---------- Expert Opinion Block ---------- */
.expert-block {
  background: linear-gradient(135deg, var(--bg-card), #1a2a3a);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.expert-photo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.expert-content { flex: 1; min-width: 0; }
.expert-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.expert-name {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 1rem;
}
.expert-title {
  font-size: .8rem;
  color: var(--accent);
  background: rgba(245,158,11,.12);
  padding: .15rem .6rem;
  border-radius: 20px;
}
.expert-quote {
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: .95rem;
  margin: 0;
}
.expert-quote::before { content: '\201C'; color: var(--accent); font-size: 1.5rem; line-height: 0; vertical-align: -.3rem; margin-right: .2rem; }
.expert-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .8rem;
  color: var(--accent);
}
@media (max-width: 600px) {
  .expert-block { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; }
  .expert-header { justify-content: center; }
  .expert-quote { text-align: left; }
}

/* ---------- Expert Page Hero ---------- */
.expert-hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-card), #1a2a3a);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.expert-hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  flex-shrink: 0;
}
.expert-hero-info h2 { display: block; margin-top: 0; border: none; padding: 0; }
.expert-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.expert-stat {
  text-align: center;
  padding: .75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 100px;
}
.expert-stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.expert-stat-label {
  font-size: .75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
}
@media (max-width: 600px) {
  .expert-hero { flex-direction: column; text-align: center; padding: 1.5rem; }
  .expert-hero-photo { width: 140px; height: 140px; }
  .expert-stats { justify-content: center; }
}

/* ---------- 404 Page ---------- */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .5rem;
}
.error-page p { color: var(--text-secondary); max-width: 500px; }

/* ---------- Responsive Fine-tuning ---------- */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .hero h1 { font-size: 1.7rem; }
  .casino-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: .75rem;
  }
  .casino-card-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto;
  }
  .casino-card-info { text-align: center; }
  .casino-card-rating { justify-content: center; }
  .casino-card .cta-button {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: .75rem;
  }
  .step { flex-direction: column; }
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #000;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 200;
  transition: top .2s;
}
.skip-link:focus {
  top: .5rem;
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Performance ---------- */
/* Skip layout/paint for below-fold sections until user scrolls to them */
.faq-section,
.expert-block,
.casino-cards-section,
.legal-section,
.related-links,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Fix remaining link underline accessibility issue */
.disclaimer a,
.content-body a,
.page-content a:not(.cta-button):not(.cta-main):not(.nav-link) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-main, .cta-button, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
