/* ============================================================
   Spribe Nigeria — Main Stylesheet
   Brand: White + Red (#E8000B) + Dark Gray
   ============================================================ */

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

:root {
  --red: #E8000B;
  --red-dark: #B5000A;
  --red-light: #ff1a24;
  --black: #111111;
  --dark: #1a1a1a;
  --gray: #4a4a4a;
  --gray-mid: #888;
  --gray-light: #f2f2f2;
  --white: #ffffff;
  --border: #e0e0e0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--gray); }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; font-family: var(--font);
  cursor: pointer; transition: all 0.2s ease;
  border: 2px solid transparent; text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--dark); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 800;
  color: var(--black); text-decoration: none !important;
  letter-spacing: -0.03em;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--red);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; fill: white; }
.logo span.red { color: var(--red); }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  color: var(--dark); font-weight: 500; font-size: 0.9rem;
  padding: 8px 12px; border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.15s;
}
.primary-nav a:hover,
.primary-nav a.active { color: var(--red); background: rgba(232,0,11,0.07); }

.nav-cta { margin-left: 8px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: all 0.3s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #fff 60%, #fff5f5 100%);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; right: -120px; top: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,0,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,0,11,0.08); color: var(--red);
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero p.lead {
  font-size: 1.1rem; color: var(--gray); margin-bottom: 32px;
  max-width: 540px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--black);
  padding: 28px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-item { }
.stat-num {
  font-size: 2rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  margin-top: 4px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Section Labels ---------- */
.section-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--red); margin-bottom: 8px;
}
.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { font-size: 1.05rem; max-width: 540px; }

/* ---------- Game Cards ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.game-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.25s ease;
  background: var(--white);
}
.game-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--red); }
.game-card-img {
  aspect-ratio: 16/9; background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative; overflow: hidden;
}
.game-card-img .game-icon { font-size: 3.5rem; }
.game-card-body { padding: 16px; }
.game-card-body h3 {
  font-size: 1rem; margin-bottom: 8px;
}
.game-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.badge {
  font-size: 0.72rem; font-weight: 600; padding: 3px 8px;
  border-radius: 4px; white-space: nowrap;
}
.badge-red { background: rgba(232,0,11,0.1); color: var(--red); }
.badge-green { background: rgba(0,160,60,0.1); color: #007a2e; }
.badge-blue { background: rgba(0,80,200,0.1); color: #0050c8; }
.badge-gray { background: var(--gray-light); color: var(--gray); }
.game-card-btns { display: flex; gap: 8px; }
.game-card-btns .btn { flex: 1; text-align: center; justify-content: center; }

/* ---------- Casino Cards ---------- */
.casino-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; gap: 20px; align-items: flex-start;
  transition: all 0.2s; margin-bottom: 16px;
  background: var(--white);
}
.casino-card:hover { box-shadow: var(--shadow-md); border-color: var(--red); }
.casino-rank {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: white;
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.casino-info { flex: 1; }
.casino-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--black); }
.casino-bonus { color: var(--red); font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.casino-features { list-style: none; margin-bottom: 16px; }
.casino-features li {
  font-size: 0.85rem; color: var(--gray); padding: 3px 0;
}
.casino-features li::before { content: "✓ "; color: var(--red); font-weight: 700; }
.casino-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- RTP Table ---------- */
.table-wrap { overflow-x: auto; }
.rtp-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}
.rtp-table th {
  background: var(--black); color: var(--white);
  padding: 12px 16px; text-align: left;
  font-weight: 600; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rtp-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rtp-table tr:last-child td { border-bottom: none; }
.rtp-table tr:nth-child(even) td { background: #fafafa; }
.rtp-table tr:hover td { background: rgba(232,0,11,0.03); }
.rtp-high { color: #007a2e; font-weight: 600; }

/* ---------- Category Cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.category-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center;
  text-decoration: none !important;
  transition: all 0.2s; background: var(--white);
  display: block;
}
.category-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }
.category-icon { font-size: 2.2rem; margin-bottom: 12px; }
.category-card h3 { font-size: 0.95rem; color: var(--black); margin-bottom: 6px; }
.category-card p { font-size: 0.8rem; color: var(--gray); margin: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer;
  text-align: left; gap: 12px;
}
.faq-question span:first-child {
  font-weight: 600; font-size: 1rem; color: var(--black);
  line-height: 1.4;
}
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-light); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; transition: all 0.2s;
  font-weight: 700; line-height: 1;
}
.faq-item.open .faq-icon { background: var(--red); color: white; transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 20px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 0.95rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 0.85rem; padding: 12px 0; color: var(--gray-mid);
}
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb span:last-child { color: var(--gray); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p.lead { font-size: 1.05rem; max-width: 640px; }

/* ---------- Game Detail Stats ---------- */
.game-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 24px 0;
}
.game-stat {
  background: var(--white); padding: 16px;
}
.game-stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-mid); margin-bottom: 4px; }
.game-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--black); }
.game-stat-value.red { color: var(--red); }

/* ---------- Related Articles / Games ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.article-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: all 0.2s;
  text-decoration: none !important; display: block;
  background: var(--white);
}
.article-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.article-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin-bottom: 8px; }
.article-card h3 { font-size: 1rem; color: var(--black); margin-bottom: 8px; }
.article-card p { font-size: 0.85rem; color: var(--gray); margin: 0; }
.article-card .read-more { font-size: 0.85rem; font-weight: 600; color: var(--red); margin-top: 12px; display: block; }

/* ---------- Info Box / CTA Block ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
  border-radius: var(--radius-lg); padding: 48px;
  text-align: center; color: white;
}
.cta-block h2 { color: white; margin-bottom: 12px; }
.cta-block p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.cta-block .btn-primary { background: var(--red); border-color: var(--red); }
.cta-block .btn-outline { border-color: white; color: white; }
.cta-block .btn-outline:hover { background: white; color: var(--black); }

.info-box {
  background: rgba(232,0,11,0.05);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 24px 0;
}
.info-box p { margin: 0; color: var(--dark); font-size: 0.95rem; }

/* ---------- Blog Post Content ---------- */
.article-body h2 { margin: 2rem 0 1rem; }
.article-body h3 { margin: 1.5rem 0 0.75rem; }
.article-body p { margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.75; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.4rem; color: var(--gray); }
.article-body a { color: var(--red); font-weight: 500; }

/* ---------- Two-column layouts ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sidebar-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

/* ---------- Sidebar ---------- */
.sidebar-widget {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 20px;
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 16px; }
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block; padding: 10px 0;
  font-size: 0.9rem; color: var(--dark); text-decoration: none !important;
  transition: color 0.15s;
}
.sidebar-links a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black); color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-col h4 {
  color: white; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-col .logo { color: white; margin-bottom: 12px; }
.footer-col .logo span.red { color: var(--red); }
.footer-col p { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.55); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
  text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin: 0; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%; font-weight: 800; font-size: 0.75rem; color: rgba(255,255,255,0.5);
  margin-right: 8px;
}

/* ---------- Misc ---------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.bg-light { background: var(--gray-light); }
.bg-red-soft { background: rgba(232,0,11,0.04); }
.rounded { border-radius: var(--radius-lg); }
.p-24 { padding: 24px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .three-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; border-top: 1px solid var(--border); border-bottom: 2px solid var(--red); padding: 12px 20px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .primary-nav.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 40px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .casino-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-block { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
