/* ==========================================================================
   InkyBet review site — shared stylesheet
   ========================================================================== */

:root {
  --color-background: #191a1d;
  --color-surface: #33353d;
  --color-button: #00ffff;
  --color-button-hover: #00e0e0;
  --color-button-text: #0c0e12;
  --color-secondary-button: #00000000;
  --color-secondary-button-hover: #00ffff1a;
  --color-secondary-button-text: #ebebeb;
  --color-font: #ebebeb;
  --color-headers: #ebebeb;
  --color-link: #ffd95f;
  --color-link-hover: #e6b61e;
  --color-border: #3d3e46;
  --color-accent: #ffd95f;
  --font-family: Rubik, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-font);
  font-family: var(--font-family);
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3, h4 {
  color: var(--color-headers);
  font-family: var(--font-family);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--color-link); text-decoration: underline; }
a:hover, a:focus { color: var(--color-link-hover); }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.5em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

main { display: block; max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--color-button);
  color: var(--color-button-text);
  font-weight: 600;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover, .btn:focus {
  background: var(--color-button-hover);
  color: var(--color-button-text);
}
.btn--secondary {
  background: var(--color-secondary-button);
  color: var(--color-secondary-button-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover, .btn--secondary:focus {
  background: var(--color-secondary-button-hover);
  color: var(--color-secondary-button-text);
}
.btn--small { padding: 0.5em 1.1em; font-size: 0.9rem; }

.cta-center { text-align: center; margin: 1.5em 0; }

/* ---- Utility bar ---- */
.utility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
}
.utility-item { display: flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em; height: 1.35em;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-button-text);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}
.logo-link { display: inline-flex; }
.logo { height: 34px; width: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.primary-nav a {
  color: var(--color-font);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a:hover, .primary-nav a:focus { color: var(--color-link); }
.nav-btn {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4em 1em !important;
}
.nav-btn--primary {
  background: var(--color-button);
  color: var(--color-button-text) !important;
  border-color: var(--color-button);
}
.nav-btn--primary:hover { background: var(--color-button-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--color-font);
}

.quick-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--color-surface);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}
.quick-links a { color: var(--color-font); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35em; }
.quick-links a:hover { color: var(--color-link); }
.qicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em; height: 1.3em;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.75rem;
}

/* ---- Hero carousel ---- */
.hero-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
}
.hero-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.hero-tile img { width: 100%; height: 180px; object-fit: cover; }
.hero-tile-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.6em;
  padding: 1rem;
  background: linear-gradient(to top, rgba(12,14,18,0.85), rgba(12,14,18,0.05));
}
.hero-tile-content h2 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0;
}

/* ---- Generic content sections ---- */
main > section {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.page-title {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}
.toc-box {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
}
.toc-box ul { margin: 0; padding-left: 1.2em; }
.toc-box a { color: var(--color-font); text-decoration: none; }
.toc-box a:hover { color: var(--color-link); }

.banner-image {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
  border: 1px solid var(--color-border);
}

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--color-background);
}
th, td {
  text-align: left;
  padding: 0.65em 0.85em;
  border: 1px solid var(--color-border);
  font-size: 0.92rem;
  vertical-align: top;
}
th {
  background: var(--color-surface);
  color: var(--color-headers);
}
.table-wrap table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}

/* ---- Long-form article body ---- */
.long-form { background: transparent; border: none; padding: 0; }
.lf-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.game-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
.game-thumbs img {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

/* ---- Checklist ---- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.75em; }
.check-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em; height: 1.4em;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-button-text);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.1em;
}

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--color-background);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 0.9rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.25rem 6rem;
  margin-top: 3rem;
}
.footer-top {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-logo { height: 30px; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--color-font); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--color-link); }
.footer-legal {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  font-size: 0.78rem;
  color: var(--color-font);
  opacity: 0.75;
}
.footer-safer { font-size: 0.85rem; line-height: 1.5; }
.footer-safer strong { color: var(--color-headers); }

/* ---- Sticky bottom promo bar ---- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  padding: 0.6rem 1rem;
  text-align: center;
}
.sticky-text { font-size: 0.85rem; }
.sticky-close {
  background: transparent;
  border: none;
  color: var(--color-font);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}
.sticky-bar.is-hidden { display: none; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  opacity: 0.85;
}
.breadcrumb a { color: var(--color-font); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-link); }
.breadcrumb .sep { margin: 0 0.4em; opacity: 0.6; }

/* ---- Inline promo banner ---- */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--color-background);
  border: 1px solid var(--color-accent);
}
.promo-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.promo-icon { font-size: 1.6rem; line-height: 1; }
.promo-banner h2 { font-size: 1.15rem; margin-bottom: 0.35em; }
.promo-banner p { margin: 0; }

.promo-banner-link { display: block; max-width: 960px; margin: 1.5rem auto; padding: 0 1.25rem; }
.hero-illustration { max-width: 960px; margin: 1.5rem auto; padding: 0 1.25rem; }

/* ---- Step list ---- */
.step-list { list-style: none; padding: 0; margin: 0 0 1em; }
.step-list li { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 1rem; }
.step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8em; height: 1.8em;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-button-text);
  font-weight: 700;
}

/* ---- Secondary feature ---- */
.secondary-feature { text-align: center; }
.secondary-feature img {
  max-width: 480px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.secondary-feature .btn { margin-bottom: 1rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .hero-carousel { grid-template-columns: 1fr; }
  .game-thumbs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
    padding-top: 0.75rem;
  }
  .primary-nav.is-open { display: flex; }
  .header-row { flex-wrap: wrap; }
  .quick-links { gap: 0.75rem 1rem; }
  main { padding: 0 1rem; }
  main > section { padding: 1.1rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .promo-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .game-thumbs { grid-template-columns: repeat(2, 1fr); }
  .utility-bar { font-size: 0.7rem; gap: 0.4rem 0.9rem; }
  .sticky-text { display: none; }
}