/* =========================================================
   Slots Guide South Africa — Design System
   Editorial gaming publication styling
   ========================================================= */

:root {
  /* Colors */
  --ink: #12131a;
  --ink-soft: #2c2e3c;
  --navy: #10131f;
  --navy-soft: #1b2036;
  --paper: #f7f6f2;
  --paper-card: #ffffff;
  --line: #e4e1d8;
  --line-dark: #2a2e42;
  --gold: #d8a24a;
  --gold-bright: #f0c674;
  --teal: #2f8f80;
  --coral: #d1694f;
  --muted: #6b6d7a;
  --muted-light: #9a9cae;
  --success-bg: #eef6ee;

  /* Type */
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(18,19,26,0.06), 0 1px 2px rgba(18,19,26,0.08);
  --shadow-md: 0 8px 24px rgba(18,19,26,0.10);
  --shadow-lg: 0 16px 40px rgba(18,19,26,0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========== Skip link =========== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; }

/* =========== Top notice bar =========== */
.top-bar {
  background: var(--navy);
  color: #b9bcd0;
  font-size: 0.78rem;
  text-align: center;
  padding: 7px 14px;
  letter-spacing: 0.01em;
}
.top-bar strong { color: var(--gold-bright); }

/* =========== Header =========== */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, #a97a2c);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.brand-text-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--muted-light);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 1px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #d7d9e6;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}
.main-nav a.active { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 8px;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========== Hero (generic) =========== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1a2036 55%, #232a4a 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(216,162,74,0.18), transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(47,143,128,0.18), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* Hero layout with promotional artwork alongside text */
.hero-flex {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 36px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-flex { grid-template-columns: 1fr; }
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
  line-height: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media figcaption {
  background: rgba(9,11,20,0.92);
  color: #9ea1ba;
  font-size: 0.72rem;
  padding: 8px 12px;
  line-height: 1.4;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 { color: #fff; max-width: 760px; }
.hero-lede {
  font-size: 1.12rem;
  color: #c7cadd;
  max-width: 640px;
  margin-top: 10px;
}
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold-bright); color: var(--navy); }
.btn-gold:hover { box-shadow: 0 6px 18px rgba(240,198,116,0.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* =========== Breadcrumbs =========== */
.breadcrumbs {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  padding: 12px 0;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--muted-light);
}
.breadcrumbs li { display: flex; gap: 6px; }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

/* =========== Sections =========== */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-kicker {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.section-intro { color: var(--muted); max-width: 700px; margin-top: 6px; }
.link-more { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* =========== Grids =========== */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* =========== Game card =========== */
.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-art {
  height: 148px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #fff;
  overflow: hidden;
}
.card-art i { position: absolute; top: 14px; right: 14px; font-size: 1.4rem; opacity: 0.85; z-index: 2; }
.card-art .art-pattern {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(circle at 20% 120%, rgba(255,255,255,0.25), transparent 55%);
}
.card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,19,31,0) 40%, rgba(16,19,31,0.75) 100%);
  z-index: 1;
}
.card-art.has-photo .card-art-tag { z-index: 2; }
.card-art-tag {
  position: relative; z-index: 1;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0,0,0,0.28);
  padding: 4px 9px;
  border-radius: 999px;
}

.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--teal); }
.card-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.card-desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.card-stats { display: flex; gap: 14px; margin-top: 12px; font-size: 0.76rem; color: var(--ink-soft); flex-wrap: wrap; }
.card-stats span { display: flex; flex-direction: column; }
.card-stats b { font-size: 0.86rem; color: var(--ink); }
.card-foot { margin-top: 12px; }

/* theme gradients for card-art / hero-art blocks */
.art-wolf { background: linear-gradient(135deg,#25314f,#3c4a7a 60%,#1a2036); }
.art-princess { background: linear-gradient(135deg,#5b3f7a,#8e6fae 60%,#3a2a52); }
.art-bonanza { background: linear-gradient(135deg,#c0397a,#e0668f 60%,#7a2050); }
.art-bonanza1000 { background: linear-gradient(135deg,#a5215e,#e0466f 60%,#5c0f36); }
.art-sugar { background: linear-gradient(135deg,#2f9d8f,#5cc9b8 60%,#146357); }
.art-sugar1000 { background: linear-gradient(135deg,#12897a,#3ee0c4 60%,#08463d); }
.art-olympus { background: linear-gradient(135deg,#1c2a52,#3b4f8f 60%,#0d142c); }
.art-olympus1000 { background: linear-gradient(135deg,#28215c,#5a3fae 60%,#140f33); }
.art-bass { background: linear-gradient(135deg,#1f6b4e,#3fa06f 60%,#0f3b29); }
.art-basssplash { background: linear-gradient(135deg,#0f8fa6,#3fc4d6 60%,#08505c); }
.art-fruit { background: linear-gradient(135deg,#c14b26,#e5793f 60%,#6f2810); }
.art-bookofdead { background: linear-gradient(135deg,#5c4522,#a5813f 60%,#2e2210); }

/* =========== Icon tile (providers/categories/guides) =========== */
.icon-tile {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 14px;
}
.icon-tile.gold { background: linear-gradient(135deg,var(--gold-bright),var(--gold)); color: var(--navy); }
.icon-tile.teal { background: linear-gradient(135deg,#3fb6a4,var(--teal)); }
.icon-tile.coral { background: linear-gradient(135deg,#e08165,var(--coral)); }
.icon-tile.navy { background: linear-gradient(135deg,#2c3560,var(--navy)); }

.icon-tile.logo-tile {
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
}
.icon-tile.logo-tile img { width: 100%; height: 100%; object-fit: contain; }

.provider-logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.provider-logo-badge {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}
.provider-logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.provider-strip .provider-logo-badge { margin-bottom: 0; }

.tile-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.tile-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tile-card h3 a { color: var(--ink); }
.tile-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.tile-card .tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.tag {
  display: inline-block;
  background: #eef0ee;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* =========== Stat grid (RTP/volatility) =========== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 30px;
}
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
}
.stat-box .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-box .stat-value { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.stat-box .stat-value small { font-size: 0.7rem; color: var(--muted); font-weight: 500; }

/* =========== Article layout =========== */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 44px;
  align-items: start;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

.prose h2 {
  margin-top: 2.1em;
  padding-top: 0.2em;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { border-top: none; margin-top: 0; }
.prose h3 { margin-top: 1.6em; color: var(--ink-soft); }
.prose p { color: #33344a; }
.prose ul li, .prose ol li { color: #33344a; }
.prose strong { color: var(--ink); }
.prose blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.1em;
  color: var(--ink-soft);
  font-style: italic;
  background: #fbf8f1;
  border-radius: 0 8px 8px 0;
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Callout / info boxes */
.callout {
  background: #fbf8f1;
  border: 1px solid #ecdfc0;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 1.6em 0;
}
.callout h4 { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; color: #8a6417; }
.callout p:last-child { margin-bottom: 0; }
.callout.teal { background: #eef7f5; border-color: #cfe6df; }
.callout.teal h4 { color: #1c6f5f; }
.callout.note { background: #f2f2f7; border-color: #dcdce8; }
.callout.note h4 { color: var(--ink-soft); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--teal);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 10px; color: var(--muted); }

/* Sidebar */
.sidebar-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-box h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 12px;
}
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.sidebar-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-list a { color: var(--ink); font-weight: 600; }
.sidebar-list a:hover { color: var(--teal); }
.sidebar-list .sub { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; font-weight: 400; }

.provider-strip, .related-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 1.6em 0;
}
.provider-strip .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.provider-strip p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.provider-strip strong { color: var(--ink); }

/* Responsible play */
.rg-banner {
  background: var(--navy);
  color: #cfd2e2;
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.rg-banner i { color: var(--gold-bright); font-size: 1.4rem; margin-top: 3px; }
.rg-banner h3 { color: #fff; margin-bottom: 8px; }
.rg-banner p { color: #b9bcd0; font-size: 0.92rem; margin-bottom: 6px; }
.rg-banner a { color: var(--gold-bright); font-weight: 700; }

/* Table styling */
.data-table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.92rem; }
.data-table th, .data-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.data-table th { background: #f1efe8; font-weight: 700; color: var(--ink-soft); }
.data-table tr:nth-child(even) td { background: #fafaf6; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #a7aac0;
  padding: 52px 0 26px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #a7aac0; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand-desc { font-size: 0.88rem; color: #8f92ab; max-width: 320px; margin-top: 12px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #767a94;
}
.footer-bottom a { color: #767a94; }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Utility */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.mono-eyebrow { font-family: var(--font-head); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* Homepage specific */
.hp-about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .hp-about { grid-template-columns: 1fr; } }
.hp-about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.hp-about-card ul { padding-left: 1.1em; }
.hp-about-card li { font-size: 0.94rem; color: var(--ink-soft); }

/* Mobile nav */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 30px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    overflow-y: auto;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); visibility: visible; }
  .main-nav a { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); border-radius: 0; }
}

@media (max-width: 620px) {
  .article-layout { gap: 30px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 40px 0; }
}
