/* Stijl van de onderzoekswebapp. Beide condities gebruiken exact dezelfde
   opmaak; het enige verschil is het uitlegpaneel (.explanation), dat in de
   NONE-conditie afwezig is waarbij de layout het gat sluit (spec). */

:root {
  --ink: #1a1d21;
  --muted: #5b6470;
  --line: #e3e6ea;
  --accent: #1560bd;
  --accent-dark: #0f4c96;
  --bg: #f4f5f7;
  --card: #ffffff;
  --read: #2e7d32;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.container { max-width: 700px; margin: 0 auto; padding: 24px 16px 64px; }

.concept-banner {
  background: #fff3cd;
  color: #664d03;
  font-size: 13px;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid #ffe69c;
}

.progress-wrap {
  height: 6px; background: var(--line); border-radius: 3px;
  margin-bottom: 28px; overflow: hidden;
}
.progress-bar { height: 100%; background: var(--accent); border-radius: 3px; }

h1 { font-size: 26px; line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 24px 0 8px; }
p { margin: 0 0 14px; }

.btn {
  display: inline-block;
  background: var(--accent); color: #fff; border: 0;
  padding: 12px 22px; font-size: 16px; border-radius: 8px;
  cursor: pointer; text-decoration: none; margin-top: 12px;
}
.btn:hover { background: var(--accent-dark); }
.btn-small { padding: 8px 14px; font-size: 14px; margin-top: 8px; }
.btn-disabled { opacity: 0.5; }

.checkboxes { margin: 18px 0; }
.opt { display: block; padding: 6px 0; cursor: pointer; }
.opts { margin-top: 6px; }

.q-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 14px;
}
.q-label { font-weight: 600; margin-bottom: 8px; }
.q-note { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

.likert { display: flex; gap: 4px; justify-content: space-between; margin: 10px 0 4px; }
.likert-opt {
  flex: 1; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 13px; color: var(--muted);
}
.likert-ends {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; font: inherit;
}

.app-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.app-brand { font-size: 22px; font-weight: 700; color: var(--accent); }
.round-label { color: var(--muted); font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; }
.flash {
  background: #fdecea; color: #8a1c12; border: 1px solid #f5c6c1;
  border-radius: 8px; padding: 10px 14px; font-size: 14px;
}

.cards { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
}
.card-opened { border-color: #bcd6bd; }
.card-meta { display: flex; gap: 8px; margin-bottom: 6px; }
.chip {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--muted); background: var(--bg);
  border-radius: 999px; padding: 2px 10px;
}
.chip-read { color: #fff; background: var(--read); }
.card-title { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }
.card-teaser { color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* Uitlegpaneel: alleen aanwezig in de EXPLAINED-conditie, direct onder
   titel en teaser (spec). */
.explanation {
  font-size: 14px; color: #4a3f10;
  background: #fbf6e3; border-left: 3px solid #d9b940;
  padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 8px 0 4px;
}

.article-view h1 { font-size: 24px; }
.article-teaser { font-weight: 600; }

.timer { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.ws-wrap { display: flex; gap: 24px; flex-wrap: wrap; }
.ws-grid { border-collapse: collapse; user-select: none; }
.ws-grid td {
  width: 30px; height: 30px; text-align: center;
  border: 1px solid var(--line); background: var(--card);
  font-weight: 600; cursor: pointer;
}
.ws-grid td.sel { background: #cfe2ff; }
.ws-grid td.found { background: #d1e7dd; color: var(--read); }
.ws-words { list-style: none; padding: 0; margin: 0; }
.ws-words li { padding: 3px 0; font-weight: 600; letter-spacing: 1px; }
.ws-words li.done { text-decoration: line-through; color: var(--muted); }

.code-box {
  background: var(--card); border: 1px dashed var(--accent);
  border-radius: 10px; padding: 14px 18px; margin: 18px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.code-label { font-size: 13px; color: var(--muted); }
.code-box code { font-size: 16px; word-break: break-all; }

.admin-table { border-collapse: collapse; width: 100%; margin-bottom: 18px; }
.admin-table th, .admin-table td {
  border: 1px solid var(--line); padding: 6px 10px; text-align: left;
  font-size: 14px; background: var(--card);
}

@media (max-width: 480px) {
  .ws-grid td { width: 24px; height: 24px; font-size: 12px; }
}
