/* ===== Justbit7.nl — base styles ===== */

:root{
  --bg: #0a0817;
  --bg-alt: #120e24;
  --surface: #171331;
  --surface-2: #1e1a3d;
  --border: #2c2650;
  --text: #ece9f7;
  --muted: #a49ecb;
  --accent: #9333ea;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(90deg,#9333ea,#4f46e5);
  --radius: 12px;
  --max-width: 1180px;
  --header-h: 86px;
}

*,*::before,*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: var(--accent-2); text-decoration: none; }
a:hover{ text-decoration: underline; }

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

/* ===== Buttons ===== */
.btn{
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover{ text-decoration: none; }

.btn-outline{
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}
.btn-outline:hover{ border-color: var(--accent-2); color: var(--accent-2); }

.btn-solid{
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 4px 16px rgba(147,51,234,.4);
}
.btn-solid:hover{ opacity: .92; }

.btn-lg{ padding: 14px 32px; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,8,23,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.logo{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 1;
}
.logo img{
  height: 54px;
  width: auto;
  border-radius: 8px;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  order: 3;
}

.nav-toggle{ position: absolute; opacity: 0; pointer-events: none; }

.burger{
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.site-nav{
  order: 2;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: none;
  flex-direction: column;
  padding: 8px 20px 16px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.site-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.site-nav a{
  display: block;
  padding: 12px 4px;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.site-nav a:hover{ color: var(--accent-2); text-decoration: none; }
.site-nav li:last-child a{ border-bottom: none; }

.nav-toggle:checked ~ .header-inner .site-nav{
  display: flex;
}
.nav-toggle:checked ~ .header-inner .burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .header-inner .burger span:nth-child(2){ opacity: 0; }
.nav-toggle:checked ~ .header-inner .burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px){
  .burger{ display: none; }
  .site-nav{
    position: static;
    display: flex !important;
    flex-direction: row;
    background: transparent;
    border-bottom: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .site-nav ul{ flex-direction: row; gap: 4px; }
  .site-nav a{ padding: 8px 14px; border-bottom: none; border-radius: 999px; }
  .site-nav a:hover{ background: var(--surface); }
}

@media (max-width: 420px){
  .header-actions .btn{ padding: 8px 12px; font-size: .82rem; }
  .logo img{ height: 40px; }
}

/* ===== Breadcrumbs ===== */
.breadcrumbs{
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.breadcrumbs ol{
  list-style: none;
  margin: 0;
  padding: 10px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
}
.breadcrumbs a{ color: var(--muted); }
.breadcrumbs a:hover{ color: var(--accent-2); }
.breadcrumbs li:not(:last-child)::after{
  content: "/";
  margin-left: 6px;
  color: var(--border);
}
.breadcrumbs li{ display: flex; gap: 6px; }
.breadcrumbs [aria-current="page"]{ color: var(--text); }

/* ===== Hero ===== */
.hero{
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 24px 20px;
}
.hero-frame{
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-media{
  line-height: 0;
}
.hero-img{
  width: 100%;
  height: auto;
  display: block;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,4,20,.88) 0%, rgba(6,4,20,.55) 45%, rgba(6,4,20,.1) 75%);
  pointer-events: none;
}
.hero-inner{
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
}
.hero-content{
  max-width: 480px;
}
.hero-content .hero-title{
  font-size: 2.1rem;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
}
.hero-content .hero-sub{
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 1.05rem;
}

@media (max-width: 700px){
  .hero{ padding: 0; border-bottom: none; }
  .hero-frame{ border-radius: 0; }
  .hero-overlay{ display: none; }
  .hero-inner{
    position: static;
    padding: 28px 20px 36px;
    display: block;
    border-bottom: 1px solid var(--border);
  }
  .hero-content{ max-width: 100%; }
  .hero-content .hero-title{ font-size: 1.6rem; }
}

/* ===== Main content ===== */
main{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

article h1{ font-size: 1.9rem; margin-top: 0; }
article h2{
  font-size: 1.4rem;
  margin-top: 2.4em;
  padding-top: .3em;
  border-top: 1px solid var(--border);
}
article h2:first-of-type{ border-top: none; margin-top: 1.4em; }
article p{ color: #d8d4ec; }
article ul, article ol{ color: #d8d4ec; padding-left: 1.3em; }
article li{ margin-bottom: 6px; }
article strong{ color: #fff; }

article table{
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .95rem;
}
article th, article td{
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
article th{
  background: var(--surface-2);
  color: var(--accent-2);
  font-weight: 700;
}
article tr:last-child td{ border-bottom: none; }

/* TOC accordion */
article > nav[aria-label]{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.6em 0 2em;
  padding: 4px 18px;
}
article nav details summary{
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
  color: var(--text);
  font-size: 1rem;
  position: relative;
  padding-right: 28px;
}
article nav details summary::-webkit-details-marker{ display: none; }
article nav details summary::after{
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.3rem;
  color: var(--accent-2);
  transition: transform .2s ease;
}
article nav details[open] summary::after{ transform: rotate(45deg); }
article nav details ul,
article nav details ol{
  margin: 0 0 16px;
  padding-left: 1.2em;
}
article nav details li{ margin-bottom: 8px; }

aside{
  margin-top: 40px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .92rem;
}

/* In-page CTA */
.inline-cta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 2em 0;
}
.inline-cta p{ margin: 0; color: var(--text); font-weight: 600; }

/* ===== Footer ===== */
.site-footer{
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.footer-nav a{ color: var(--text); font-weight: 600; }
.footer-nav a:hover{ color: var(--accent-2); }

.footer-disclaimer{
  border-top: 1px solid var(--border);
  padding-top: 18px;
  line-height: 1.55;
}
.footer-disclaimer p{ margin: 0 0 10px; }
.footer-age{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  font-weight: 700;
  color: var(--text);
  margin-right: 8px;
}
