/* ═══════════════════════════════════════
   DOCS PAGE — docs.html specific styles
   ═══════════════════════════════════════ */

/* Extra kleurvariabelen voor docs */
:root {
  --red: #f5341a;
  --orange: #f5911a;
}

/* Nav active state voor docs link */
.nav-center a.active { color: var(--blue); font-weight: 700; }

/* ── DOCS HERO ── */
.docs-hero {
  padding: 140px 48px 80px;
  background: var(--white);
  position: relative; overflow: hidden;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.docs-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
}
.docs-hero h1 {
  font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.97; letter-spacing: -0.04em;
  max-width: 700px; margin-bottom: 20px;
  animation: rise .65s .08s ease both;
}
.docs-hero h1 .accent { color: var(--blue); }
.docs-hero p {
  font-size: 1rem; color: var(--text-mid); max-width: 480px;
  line-height: 1.72; margin-bottom: 40px;
  animation: rise .65s .16s ease both;
}
.docs-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 14px 5px 8px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-mid);
  margin-bottom: 28px;
  animation: rise .6s ease both;
}
.docs-badge-dot {
  width: 22px; height: 22px; background: var(--blue-dim);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.docs-badge-dot::after {
  content: ''; width: 7px; height: 7px;
  background: var(--blue); border-radius: 50%;
}
.endpoint-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--black); border-radius: var(--radius);
  padding: 12px 22px;
  animation: rise .65s .24s ease both;
}
.method-tag {
  background: var(--blue); color: #fff;
  font-family: monospace; font-size: 0.8rem; font-weight: 700;
  padding: 3px 10px; border-radius: 6px; letter-spacing: .05em;
}
.endpoint-path {
  font-family: monospace; font-size: 0.9rem; color: rgba(255,255,255,0.6);
}

/* ── DOCS LAYOUT ── */
.docs-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 64px 48px 96px;
  display: grid; grid-template-columns: 220px 1fr; gap: 56px;
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 88px; }
.sidebar-section {
  font-size: 0.68rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 10px; margin-top: 28px;
}
.sidebar-section:first-child { margin-top: 0; }
.sidebar a {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-mid); text-decoration: none;
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  margin-bottom: 2px;
}
.sidebar a:hover { color: var(--black); background: var(--surface); }
.sidebar a.active { color: var(--blue); background: var(--blue-dim); font-weight: 700; }

/* ── DOCS CONTENT ── */
.docs-content { min-width: 0; }
.docs-section { margin-bottom: 64px; }

.section-label {
  font-size: 0.72rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px;
}
.section-title {
  font-weight: 900; font-size: 1.8rem; letter-spacing: -0.03em;
  margin-bottom: 20px; line-height: 1.1;
}
.section-desc {
  font-size: 0.92rem; color: var(--text-mid); line-height: 1.75;
  margin-bottom: 28px;
}

/* ── AUTH CARD ── */
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 28px;
}
.auth-icon {
  width: 38px; height: 38px; background: var(--blue-dim);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1rem;
}
.auth-card p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.6; }
.auth-card code, .cell-desc code, .section-desc code, .note code {
  font-family: monospace; background: #fff; border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 7px; font-size: 0.85em; color: var(--blue);
}

/* ── TABLE ── */
.table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
thead tr { background: var(--black); }
thead th {
  padding: 13px 16px; text-align: left;
  color: rgba(255,255,255,0.7); font-weight: 600;
  font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase;
}
tbody tr:nth-child(even) { background: var(--surface); }
tbody tr:hover { background: #eef3ff; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }

.field-name { font-family: monospace; font-size: 0.9em; color: var(--blue); font-weight: 600; }
.type-val   { font-family: monospace; font-size: 0.82em; color: var(--text-dim); }
.cell-desc  { font-size: 0.84rem; color: var(--text-mid); line-height: 1.5; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.badge-yes  { background: rgba(24,201,122,0.12); color: var(--green); }
.badge-no   { background: var(--surface); color: var(--text-dim); border: 1px solid var(--border); }
.badge-cond { background: rgba(245,145,26,0.12); color: var(--orange); }

.note {
  background: rgba(245,145,26,0.08); border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px; font-size: 0.84rem; color: var(--text-mid); line-height: 1.6;
}
.note strong { color: var(--orange); }

/* ── SUB CARDS (items / betaling) ── */
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.sub-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sub-card-title {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 16px; font-weight: 800; font-size: 0.85rem;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px;
}
.sub-card-title .tag {
  background: var(--blue-dim); color: var(--blue);
  font-family: monospace; font-size: 0.75em;
  padding: 2px 8px; border-radius: 5px; font-weight: 600;
}

/* ── RESPONSE CARDS ── */
.response-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.res-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.res-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.14); }
.res-code { font-family: monospace; font-size: 1.4rem; font-weight: 900; min-width: 52px; line-height: 1; }
.c201 { color: var(--green); }
.c400 { color: var(--orange); }
.c401 { color: var(--red); }
.c409 { color: var(--red); }
.c500 { color: #8e44ad; }
.res-info strong { display: block; font-size: 0.88rem; font-weight: 800; margin-bottom: 4px; }
.res-info p { font-size: 0.8rem; color: var(--text-mid); line-height: 1.55; }

/* ── CODE BLOCK ── */
.code-wrap { background: #0d101a; border-radius: var(--radius); overflow: hidden; }
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-lang { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: .1em; }
.code-copy {
  font-size: 0.72rem; color: rgba(255,255,255,0.3); cursor: pointer;
  background: none; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 4px 10px; font-family: inherit;
  transition: color .15s, border-color .15s;
}
.code-copy:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.25); }
pre {
  padding: 24px; font-family: monospace;
  font-size: 0.84rem; line-height: 1.8; color: #cdd9e5;
  overflow-x: auto; margin: 0;
}
.k { color: #79b8ff; }
.s { color: #9ecbff; }
.n { color: #f8c555; }
.b { color: #79b8ff; }
.p { color: #6a7a8a; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 56px 0; }

/* ── DOCS RESPONSIVE ── */
@media (max-width: 900px) {
  .docs-hero { padding: 120px 20px 60px; }
  .docs-wrap { grid-template-columns: 1fr; padding: 40px 20px 64px; }
  .sidebar { display: none; }
  .sub-grid { grid-template-columns: 1fr; }
}