/*
 * QWASP Education — Stylesheet
 * Versie: 2.0 — visuele aansluiting op QWASP Academy leeromgeving
 *
 * Merkregistratie:
 *   "QWASP" staat overal zonder symbool. Zodra de formele registratie
 *   definitief is, vervang in HTML-bestanden "QWASP" door "QWASP&#174;".
 *   Dit CSS-bestand bevat geen merknamen.
 *
 * Ontwerpdoel:
 *   De portal voelt als een verlengde van de QWASP Academy leeromgeving.
 *   Zelfde logo-positie, zelfde menuhoogte, zelfde kleuraccenten,
 *   zelfde tabstijl. Geen aparte marketingsite.
 */

/* ── Design tokens ─────────────────────────────────────── */
:root {
  /* Primaire blauwtinten — afgestemd op QWASP Academy */
  --q-blue:        #2d6da4;   /* actieve nav, knoppen, accenten   */
  --q-blue-dark:   #1f4e78;   /* hover, kop-accenten               */
  --q-blue-light:  #e8f0f9;   /* subtabachtergrond, lichte vlakken */
  --q-blue-muted:  #5b8ec7;   /* secundaire blauw                  */

  /* Grijstinten */
  --q-gray-900: #1a1a1a;
  --q-gray-700: #3d3d3d;
  --q-gray-500: #6e6e6e;
  --q-gray-400: #939393;
  --q-gray-200: #d9d9d9;
  --q-gray-100: #f0f0f0;
  --q-gray-50:  #f7f7f7;

  /* Structureel */
  --surface:  #ffffff;
  --bg:       #f4f4f4;       /* lichtgrijze paginaachtergrond      */
  --border:   #dedede;       /* dunne scheidingslijn               */
  --text:     var(--q-gray-900);
  --muted:    var(--q-gray-500);
  --focus:    var(--q-blue);

  /* Typografie */
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 14px;    /* iets kleiner — academy-gevoel      */

  /* Ruimte */
  --s1:  .25rem;
  --s2:  .5rem;
  --s3:  .75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;

  /* Hoeken */
  --r-sm: 3px;
  --r-md: 4px;

  /* Schaduwen — zeer subtiel */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 6px rgba(0,0,0,.08);

  /* Header hoogte — aanpassen zodat het lijkt op Academy */
  --header-h: 50px;
  --tab-bar-h: 44px;

  --ease: .15s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--q-blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--q-blue-dark); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

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

/* ── Toegankelijkheid ──────────────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -999px;
  z-index: 9999;
  padding: var(--s2) var(--s4);
  background: var(--q-blue);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

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

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: var(--s6);
}

/* ══════════════════════════════════════════════════════════
   HEADER — compact, wit, logo links, nav horizontaal
   Visueel gelijk aan QWASP Academy bovenbalk
   ══════════════════════════════════════════════════════════ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 300;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--s4);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  margin-right: var(--s4);
}
.site-logo:hover { text-decoration: none; }

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* Fallback tekstlogo als afbeelding niet laadt */
.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--q-blue-dark);
  line-height: 1;
}

/* Domeinnaam naast logo — klein */
.logo-domain {
  font-size: .7rem;
  color: var(--q-gray-400);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: var(--s2);
  margin-left: var(--s1);
  display: none; /* toon alleen op bredere schermen */
}

@media (min-width: 640px) {
  .logo-domain { display: block; }
}

/* Primaire navigatie — tabstijl met blauwe onderstreping */
.site-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin-left: auto;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  padding-inline: var(--s3);
  font-size: .82rem;
  font-weight: 400;
  color: var(--q-gray-700);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--ease), border-color var(--ease),
              background var(--ease);
  text-decoration: none;
  position: relative;
}

.nav-link:hover {
  color: var(--q-blue);
  background: var(--q-blue-light);
  text-decoration: none;
}

.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--q-blue);
  border-bottom-color: var(--q-blue);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   PAGINATITELBALK — wit blok onder header, compacte kop
   ══════════════════════════════════════════════════════════ */
.page-titlebar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--s4) 0 0;
}

.titlebar-inner {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s3);
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--q-gray-900);
  line-height: 1.2;
}

.page-subtitle {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .03em;
}

/* Breadcrumb in titelbalk */
.breadcrumb {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s1);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--q-blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--q-gray-200); }

/* ══════════════════════════════════════════════════════════
   SUBTABS — tabbladen onder de paginatitel
   Visueel gelijk aan cursustabs in QWASP Academy
   ══════════════════════════════════════════════════════════ */
.subtab-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.subtab-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subtab-nav::-webkit-scrollbar { display: none; }

.subtab-btn {
  display: flex;
  align-items: center;
  padding: var(--s3) var(--s4);
  font-size: .82rem;
  font-weight: 400;
  color: var(--q-gray-600, #555);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--ease), border-color var(--ease),
              background var(--ease);
  text-decoration: none; /* ook voor <a>-variant */
}

.subtab-btn:hover {
  color: var(--q-blue);
  background: var(--q-blue-light);
}

.subtab-btn.is-active,
.subtab-btn[aria-selected="true"] {
  color: var(--q-blue);
  border-bottom-color: var(--q-blue);
  font-weight: 600;
}

/* Badge op tabblad (bijv. "Actief") */
.subtab-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 1px 6px;
  background: var(--q-blue);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 99px;
  letter-spacing: .04em;
}

/* ══════════════════════════════════════════════════════════
   TABPANELEN — toon/verberg via JavaScript
   ══════════════════════════════════════════════════════════ */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ══════════════════════════════════════════════════════════
   HOOFDINHOUD
   ══════════════════════════════════════════════════════════ */
main {
  flex: 1;
  background: var(--bg);
  padding-block: var(--s6);
}

.content-section {
  padding-block: var(--s6);
}

.content-section + .content-section {
  border-top: 1px solid var(--border);
}

/* Sectieomschrijving */
.section-lead {
  font-size: .9rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: var(--s5);
}

/* Sectiekop — compact, zonder decoratieve lijn */
.section-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--q-gray-900);
  margin-bottom: var(--s4);
}

/* ══════════════════════════════════════════════════════════
   CONTENTKAARTEN — plat, wit, dun kader
   ══════════════════════════════════════════════════════════ */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--s3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  color: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}

a.card:hover,
a.card:focus-visible {
  border-color: var(--q-blue-muted);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.card-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--q-blue-muted);
}

.card-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--q-gray-900);
}

.card-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.card-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--q-blue);
  margin-top: var(--s1);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════════════════════════════════
   VAARDIGHEIDSDOMEINEN (Toetsing-tab)
   ══════════════════════════════════════════════════════════ */
.skill-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.skill-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--q-blue);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: var(--s4) var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.skill-block__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.skill-block__name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--q-gray-900);
}

.skill-block__desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.skill-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s1);
}

.tag {
  font-size: .68rem;
  font-weight: 600;
  background: var(--q-blue-light);
  color: var(--q-blue-dark);
  padding: 1px 7px;
  border-radius: 99px;
}

/* Gebruik-inzetten rij */
.use-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

.use-chip {
  font-size: .78rem;
  color: var(--q-gray-700);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
}

/* ══════════════════════════════════════════════════════════
   MODULES (Platform-tab)
   ══════════════════════════════════════════════════════════ */
.module-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.module-table th {
  background: var(--q-gray-50);
  border-bottom: 1px solid var(--border);
  padding: var(--s2) var(--s4);
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.module-table td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--q-gray-100);
  vertical-align: top;
  line-height: 1.55;
}

.module-table tr:last-child td { border-bottom: none; }

.module-table td:first-child {
  font-weight: 600;
  color: var(--q-gray-900);
  white-space: nowrap;
  width: 160px;
}

.module-table td:nth-child(2) { color: var(--muted); }

/* Hubs */
.hub-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s3);
  margin-top: var(--s5);
}

.hub-block {
  background: var(--q-blue-light);
  border: 1px solid var(--q-blue-light);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}

.hub-block__icon { font-size: 1.1rem; flex-shrink: 0; }

.hub-block__name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--q-blue-dark);
}

.hub-block__sub {
  font-size: .76rem;
  color: var(--q-blue-muted);
  margin-top: 1px;
}

/* ══════════════════════════════════════════════════════════
   VERTROUWEN (Vertrouwen-tab)
   ══════════════════════════════════════════════════════════ */
.trust-inset {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--q-blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s5);
}

.trust-inset__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--q-blue);
  margin-bottom: var(--s2);
}

.trust-inset__text {
  font-size: .85rem;
  line-height: 1.75;
  color: var(--q-gray-700);
}

.trust-inset__text strong { color: var(--q-gray-900); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s3);
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4);
}

.trust-item__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--q-blue-muted);
  margin-bottom: var(--s2);
}

.trust-item__text {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════
   MOSAIC — RONDETEGELS
   ══════════════════════════════════════════════════════════ */
.round-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s5) var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.round-card--active {
  border-color: var(--q-blue);
  border-left: 3px solid var(--q-blue);
}

.round-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--q-blue-muted);
  background: var(--q-blue-light);
  padding: 2px 10px;
  border-radius: 99px;
}

.round-card--active .round-card__badge {
  background: var(--q-blue);
  color: #fff;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.round-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--q-gray-900);
}

.round-card__desc {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.68;
}

/* Actief-label */
.active-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--q-blue);
  margin-top: var(--s1);
}

.active-label__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--q-blue);
  animation: pulse-blue 2s ease-in-out infinite;
}

@keyframes pulse-blue {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ══════════════════════════════════════════════════════════
   METHODISCH INZETBLOK (Mosaic)
   ══════════════════════════════════════════════════════════ */
.method-inset {
  background: var(--q-blue-light);
  border: 1px solid var(--q-blue-light);
  border-left: 3px solid var(--q-blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s5);
}

.method-inset__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--q-blue-dark);
  margin-bottom: var(--s2);
}

.method-inset__quote {
  font-size: .9rem;
  line-height: 1.78;
  color: var(--q-gray-700);
  font-style: italic;
  margin-bottom: var(--s3);
}

.method-inset__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.method-tag {
  font-size: .72rem;
  background: var(--surface);
  color: var(--q-blue-dark);
  border: 1px solid var(--q-blue-light);
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   KNOPPEN
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-md);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), box-shadow var(--ease),
              border-color var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--q-blue);
  color: #fff;
  border: 1px solid var(--q-blue);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--q-blue-dark);
  border-color: var(--q-blue-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(45,109,164,.3);
}

.btn--secondary {
  background: transparent;
  color: var(--q-blue);
  border: 1px solid var(--q-blue-muted);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--q-blue-light);
  text-decoration: none;
  color: var(--q-blue-dark);
}

/* Terug-link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--q-blue);
  font-weight: 500;
  margin-bottom: var(--s4);
}

.back-link:hover { text-decoration: underline; color: var(--q-blue-dark); }

/* ══════════════════════════════════════════════════════════
   DOMEINEN / USE CASE RASTER
   ══════════════════════════════════════════════════════════ */
.domain-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: var(--s3);
}

.domain-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: .82rem;
  color: var(--q-gray-700);
  font-weight: 500;
}

.domain-item__icon { font-size: 1rem; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   FOOTER — zelfde stijl als Academy-voettekst
   ══════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--s4);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
}

.footer-copy {
  font-size: .75rem;
  color: var(--q-gray-400);
}

.footer-copy a { color: var(--q-blue); font-size: .75rem; }

.footer-links {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .75rem;
  color: var(--q-gray-400);
}

.footer-links a:hover { color: var(--q-blue); text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   COMING-SOON pagina specifiek
   ══════════════════════════════════════════════════════════ */
.cs-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s8) var(--s8);
  max-width: 560px;
  margin-block: var(--s8);
}

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--q-blue-muted);
  margin-bottom: var(--s4);
}

.cs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--q-blue-muted);
  animation: pulse-blue 2s ease-in-out infinite;
}

.cs-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--q-gray-900);
  margin-bottom: var(--s4);
}

.cs-body {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--s6);
}

.cs-body p + p { margin-top: var(--s3); }

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
}

.cs-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s5);
  font-size: .77rem;
  color: var(--q-gray-400);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 780px) {
  .site-nav { display: none; }   /* simpele verberging op mobiel — later hamburger */

  .card-row,
  .skill-row,
  .trust-grid,
  .domain-row,
  .hub-row { grid-template-columns: 1fr; }

  .module-table td:first-child { width: auto; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .cs-panel { padding: var(--s5); }
}
