/* ============================================================
   Jobit - Integraties › API
   Reuses tokens.css + site.css + product-multiposter.css and
   product-ats-koppelingen.css (shared integration visuals:
   .atsk-hero-visual, .atsk-stage, .v1-* hub&spoke,
   .atsk-benefits, .atsk-aanvraag). Adds API-only bits:
   code-request window, endpoints panel, resource cards.
   ============================================================ */

.api-page { --mp-visual-col: 500px; }

/* shared HTTP method badge (light surfaces) */
.api-method {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 800; letter-spacing: 0.03em;
  padding: 4px 8px; border-radius: 6px; min-width: 50px; flex-shrink: 0;
}
.api-method.get   { background: var(--success-bg);    color: var(--success); }
.api-method.post  { background: var(--jobit-blue-50);  color: var(--jobit-blue-700); }
.api-method.put   { background: var(--warning-bg);     color: var(--warning); }
.api-method.patch { background: var(--warning-bg);     color: var(--warning); }
.api-method.del   { background: var(--danger-bg);      color: var(--danger); }

/* ============================================================
   CODE WINDOW (mp-code) - ported from the design's product-multiposter.css
   so the API Code hero is self-contained on this page.
   ============================================================ */
/* Integration mock - code window */
.mp-code {
  background: #0F1A30;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.mp-code-top {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.mp-code-dots { display: flex; gap: 6px; }
.mp-code-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.mp-code-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-left: 8px;
}
.mp-code-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.mp-code-line { white-space: pre; }
.mp-code-key { color: #7FD0D3; }
.mp-code-str { color: #E8C580; }
.mp-code-num { color: #C8A5FF; }
.mp-code-com { color: rgba(255,255,255,0.4); }
.mp-code-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 12px;
  background: rgba(67, 100, 173,0.18);
  color: #7FD0D3;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

/* ============================================================
   HERO VISUAL · Direction 1 - Code request window (default)
   reuses .mp-code from product-multiposter.css
   ============================================================ */
.api-code-stage { width: 100%; max-width: 500px; }
.api-code-stage .mp-code-body { font-size: 12.5px; line-height: 1.75; }
.api-req {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono); font-size: 12.5px;
}
.api-rm { font-weight: 800; letter-spacing: 0.04em; }
.api-rm.post  { color: #7FD0FF; }
.api-rm.get   { color: #6FE3B0; }
.api-rm.patch { color: #E8C580; }
.api-rpath { color: rgba(255,255,255,0.92); }
.api-rstatus {
  margin-left: auto; flex-shrink: 0;
  color: #6FE3B0; font-weight: 700; font-size: 11px;
  background: rgba(46,157,111,0.16); padding: 3px 9px; border-radius: 6px;
}
.api-code-cta {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; padding: 7px 12px;
  background: rgba(67,100,173,0.18); color: #7FD0FF;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  font-family: var(--font-sans);
}

/* ============================================================
   "WHAT THE API SUPPORTS" - resource cards
   ============================================================ */
.apir-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.apir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
.apir-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 28px 30px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.apir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--jobit-blue-200); }
.apir-cardhead { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.apir-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--jobit-blue-50); color: var(--jobit-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.apir-name { font-size: 21px; font-weight: 800; color: var(--fg-strong); letter-spacing: -0.01em; }
.apir-ops { display: flex; flex-direction: column; gap: 8px; }
.apir-op {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.apir-op-lbl { font-size: 13.5px; font-weight: 600; color: var(--fg-strong); }
.apir-card-more { background: var(--bg-subtle); border-style: dashed; }
.apir-more-desc { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); margin: 0; }

/* CTA divider override (multiposter forces it white on .mp-page) */
.api-page .cta-band[data-divider-from="subtle"]::after { background: var(--bg-subtle); }

@media (max-width: 920px) {
  .apir-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
@media (max-width: 760px) {
  .apir-grid { grid-template-columns: 1fr; max-width: 460px; }
}
