/* InkyBet Review — site-wide stylesheet */

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  color: var(--headers);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--font);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

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

/* Utility bar */
.utility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}
.utility-item { display: flex; align-items: center; gap: 0.35rem; color: var(--font); }
.utility-item.badge { color: var(--accent); font-weight: 600; }

/* Header */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-link { display: inline-flex; }
.logo-img { height: 36px; width: auto; }
.primary-nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
}
.primary-nav a {
  color: var(--font);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--link); }
.auth-buttons { display: flex; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}
.burger, .burger::before, .burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--font);
  position: relative;
}
.burger::before, .burger::after { content: ''; position: absolute; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

.shortcut-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.shortcut-row a {
  color: var(--font);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.shortcut-row a:hover { color: var(--link); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--button);
  color: var(--button-text);
}
.btn-primary:hover { background: var(--button-hover); color: var(--button-text); }
.btn-secondary {
  background: var(--secondary-button);
  color: var(--secondary-button-text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--secondary-button-hover); color: var(--secondary-button-text); }
.btn.cta { margin-top: 0.5rem; }

/* Hero carousel */
.hero-carousel {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.carousel-slide {
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.carousel-slide h2 {
  background: rgba(12,14,18,0.6);
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 1.15rem;
}

/* Page title + TOC */
.page-title-toc {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: left;
}
.toc {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 1rem 1.5rem;
}
.toc ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.toc li { margin-bottom: 0.5rem; }
.toc li::before { content: '\2713  '; color: var(--accent); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Intro banner */
.intro-banner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}
.promo-banner {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* Article body */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.article-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.key-facts { background: var(--surface); border-radius: 12px; padding: 1.5rem; border: 1px solid var(--border); }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
th {
  background: var(--background);
  color: var(--headers);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
.thumb-row img { border-radius: 10px; border: 1px solid var(--border); }

/* Trust / support / faq sections */
.trust-section, .support-section, .faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
.accordion summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--headers);
}
.accordion p { margin-top: 0.75rem; margin-bottom: 0; }

/* Sticky promo bar */
.sticky-promo {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  z-index: 90;
}

/* Footer */
.site-footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 1rem;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a { color: var(--font); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--link); }
.footer-badges {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.footer-legal {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  font-size: 0.75rem;
  color: var(--font);
  opacity: 0.7;
}

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

/* Inline promo banner */
.inline-promo {
  max-width: 800px;
  margin: 1.5rem auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.inline-promo-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.inline-promo-text p { margin: 0; font-weight: 600; color: var(--headers); }
.inline-promo .icon { font-size: 1.4rem; }

/* Secondary image with caption text */
.secondary-image {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
}
.secondary-image img {
  margin: 0 auto 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  max-width: 320px;
}
.secondary-image .btn { margin-bottom: 1rem; }
.secondary-image p { text-align: left; }

.sticky-promo img { height: 44px; width: auto; border-radius: 6px; }
.sticky-promo-text strong { color: var(--headers); font-size: 0.9rem; }

.shortcut-row .icon { margin-right: 0.3rem; }

/* Responsive */
@media (max-width: 900px) {
  .carousel-track { grid-template-columns: 1fr; }
  .thumb-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header.nav-open .primary-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .shortcut-row { display: none; }
  .auth-buttons .btn { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .thumb-row { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
  .inline-promo { flex-direction: column; align-items: flex-start; }
}

/* Additions for /privacy-policy: icon checklist and numbered step list */
.icon-list {
  list-style: none;
  padding-left: 0;
}
.icon-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.icon-list li::before {
  content: '\2713';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.step-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}
.step-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  counter-increment: step;
}
.step-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Additions for /enter: page-title/toc wrapper, hero banner image, footer brand column, h4 sizing */
.toc-section { max-width: 800px; margin: 0 auto; padding: 0 1.5rem 1.5rem; }
.hero-banner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 1.5rem; }
.hero-banner img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
h4 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; min-width: 180px; }
.footer-brand img { height: 40px; width: auto; }
.footer-links span { color: var(--font); font-size: 0.9rem; opacity: 0.85; }

/* Additions for /register: inline supporting images within article sections */
.article-section img {
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 1rem 0;
}

/* Additions for /bonus: hero CTA alignment and FAQ closing spacing */
.hero-banner .btn.cta {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
}
.faq-section .accordion + p {
  margin-top: 1rem;
}