/* Playtest Log: rustige versie van "Dark fantasy game-database met Keltische sfeer" (inspiratiebord #8).
   Nachtblauw, dunne lijnen, uncial alleen voor merk en paginatitels. Twee pagina's: kop + formulier + lijst. */
:root {
  --bg: #0b1a26;
  --panel: #0f2232;
  --panel-2: #132a3d;
  --line: rgba(122, 160, 186, 0.16);
  --line-strong: rgba(185, 202, 214, 0.32);
  --text: #d3dce2;
  --muted: #8ba0ae;
  --faint: #62798a;
  --white: #f1f5f7;
  --blue: #5aa9e6;
  --blue-soft: rgba(90, 169, 230, 0.12);
  --gold: #c9a24a;
  --green: #6fc59a;
  --amber: #e0a24a;
  --red: #e0645a;
  --purple: #c3aef0;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 500px at 50% -200px, rgba(29, 62, 87, 0.55), transparent 70%), var(--bg);
  color: var(--text); font: 400 15px/1.55 var(--sans);
}
main { flex: 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(980px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }
.title { font: 650 30px/1.15 var(--display); color: var(--white); margin: 0; letter-spacing: -0.015em; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }

/* iconen */
.i { display: inline-flex; width: 20px; height: 20px; flex: none; }
.i svg { width: 100%; height: 100%; }
.i.xs { width: 16px; height: 16px; }

/* ── kop */
.top { border-bottom: 1px solid var(--line); background: rgba(8, 20, 30, 0.6); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); font: 650 17px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-knot { width: 30px; height: 30px; }
.tabs-main { display: flex; gap: 6px; flex: 1; align-self: stretch; }
.project-pick { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.project-pick select { height: 34px; max-width: 220px; font-weight: 500; color: var(--white); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.check span { display: flex; flex-direction: column; gap: 2px; }
.tag-celtic { color: var(--purple); }
.tabs-main a { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-main a:hover { color: var(--white); text-decoration: none; }
.tabs-main a.on { color: var(--white); border-color: var(--blue); }
.top-tools { display: flex; align-items: center; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 6px;
  background: none; cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tool:hover { color: var(--white); border-color: var(--line); text-decoration: none; }
.tool .i { width: 18px; height: 18px; }

/* ── pagina */
.page { padding-top: 36px; padding-bottom: 64px; }
.page-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.intro { margin: 8px 0 0; max-width: 60ch; }

/* knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--white); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--white); text-decoration: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #06121b; }
.btn.primary:hover { background: #7bbcee; border-color: #7bbcee; }
.btn.ghost { color: var(--text); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--red); border-color: rgba(224, 100, 90, 0.5); }
.icon-btn .i { width: 16px; height: 16px; }

/* invoer */
select, input[type="text"], input[type="search"], input[type="password"], input[type="number"], textarea {
  height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(6, 16, 24, 0.55); color: var(--text); outline: none; min-width: 0; }
select { padding-right: 32px; appearance: none; cursor: pointer;
  background: rgba(6, 16, 24, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ba0ae' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; }
select option { background: var(--panel); }
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
::placeholder { color: var(--faint); }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 7px; background: rgba(6, 16, 24, 0.45); align-self: flex-start; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 5px; background: none; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 14px; }
.seg button:hover { color: var(--white); }
.seg button.on { background: var(--panel-2); color: var(--white); box-shadow: inset 0 0 0 1px rgba(90, 169, 230, 0.4); }

/* filters */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 16px; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(6, 16, 24, 0.55); color: var(--faint); }
.search:focus-within { border-color: var(--blue); }
.search input[type="search"] { border: 0; background: none; height: 100%; padding: 0; width: 200px; box-shadow: none; }

/* ── lijst */
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 34, 50, 0.7); transition: border-color 0.15s; }
.entry:hover, .entry.open { border-color: var(--line-strong); }
.entry-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; cursor: pointer; text-align: left; color: inherit; }
.entry-head .chev { color: var(--faint); transition: transform 0.15s; }
.entry.open .entry-head .chev { transform: rotate(180deg); }
.eh { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.eh-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.eh-title { color: var(--white); font-weight: 500; overflow-wrap: anywhere; }
.eh-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.eh-pills { display: flex; gap: 6px; flex: none; }
.eh-items { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 50%; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--purple); }
.cam { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); }
.cat { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(6, 16, 24, 0.5); }
.cat .i { width: 18px; height: 18px; }
.cat-bug { color: #ef9a8e; } .cat-visual { color: #8fd0f0; } .cat-balance { color: #e6c477; }
.cat-performance { color: #9ad8b5; } .cat-idea { color: #f0d88a; } .cat-other { color: var(--muted); } .cat-quest { color: var(--purple); }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: rgba(255, 255, 255, 0.04); border: 1px solid currentColor; }
.sev-low { color: #8fb1c6; } .sev-medium { color: var(--blue); } .sev-high { color: var(--amber); } .sev-blocker { color: var(--red); }
.st-open, .st-new { color: var(--text); border-color: var(--line-strong); } .st-progress { color: var(--gold); } .st-fixed, .st-processed { color: var(--green); }
.st-wontfix, .st-archived { color: var(--faint); }
.ik-reward { color: var(--green); } .ik-choice { color: var(--purple); } .ik-drop { color: var(--amber); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 3px; border-radius: 5px; background: rgba(6, 16, 24, 0.55); border: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.chip.more { padding-left: 9px; color: var(--muted); }
.ic { width: 32px; height: 32px; flex: none; border-radius: 4px; object-fit: contain; background: rgba(6, 16, 24, 0.6); }
.ic.sm { width: 22px; height: 22px; border-radius: 3px; }
.ic-empty { display: inline-grid; place-items: center; color: var(--faint); }
.ic-empty .i { width: 60%; height: 60%; }

/* opengeklapte regel */
.entry-body { padding: 4px 16px 16px 64px; }
.eb { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.prose { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; }
.steps .prose { margin-top: 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.shot { width: 168px; aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: #08141e; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.loot { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 560px; }
.loot li { display: flex; align-items: center; gap: 12px; }
.loot-name { flex: 1; min-width: 0; color: var(--white); }
.loot-qty { color: var(--muted); font-variant-numeric: tabular-nums; }
.dev-note { padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(201, 162, 74, 0.06); border-radius: 0 6px 6px 0; }
.dev-note p { margin: 4px 0 0; white-space: pre-wrap; color: #ecdcb3; }
.actions { display: flex; gap: 8px; }
.admin { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 6px; }
.admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin textarea { width: 100%; }
.row-end { display: flex; justify-content: flex-end; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; color: var(--muted); font-size: 14px; }

/* ── formulier */
.form-slot:not(:empty) { margin-bottom: 28px; }
.panel { padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > input, .field > textarea, .field > select, .field .ac input { width: 100%; }
.field.narrow { max-width: 320px; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.req { color: var(--blue); }
.hint { color: var(--faint); font-size: 12.5px; min-height: 1em; }
.field.bad input, .field.bad textarea, .field.bad .item-rows input { border-color: var(--red); }
.field.bad > .lbl { color: var(--red); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.error { color: var(--red); margin: 0; font-size: 14px; }
.error:empty { display: none; }
.form-end { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.ac { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #0d2031; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); }
.suggest li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.suggest li .i { color: var(--purple); }
.suggest li.on, .suggest li:hover { background: var(--blue-soft); color: #fff; }
.item-rows { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 80px 120px 40px; gap: 8px; align-items: center; }
.item-row .ac input { width: 100%; }
.row-ic { display: grid; place-items: center; }
.qty { width: 100%; }
.add-item { align-self: flex-start; }
.drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 14px; }
.drop.over { border-color: var(--blue); background: var(--blue-soft); color: var(--text); }
.drop > span:nth-child(2) { flex: 1; min-width: 180px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 112px; height: 72px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-strong); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 0; background: rgba(6, 16, 24, 0.85); cursor: pointer; color: #fff; }
.thumb button .i { width: 13px; height: 13px; }

/* melding onderin na opslaan */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 6px; background: #163049; border: 1px solid rgba(111, 197, 154, 0.5); color: var(--white); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: opacity 0.4s; }
.toast .i { color: var(--green); }
.toast.out { opacity: 0; }

/* lichtbak */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 48px; background: rgba(4, 10, 16, 0.92); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 96px); border-radius: 4px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11, 26, 38, 0.85); cursor: pointer; color: var(--white); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 13px; }

/* ── inloggen */
.login { min-height: calc(100vh - 130px); display: grid; place-items: center; padding: 40px var(--gutter);
  background: linear-gradient(180deg, rgba(11, 26, 38, 0.3), var(--bg) 95%), url(/art/glen-night.webp) center 40% / cover no-repeat; }
.login-card { width: 100%; max-width: 380px; padding: 32px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(8, 20, 30, 0.85); display: grid; gap: 10px; }
.login-card .muted { margin: 0 0 10px; }
.login-card input { width: 100%; height: 44px; }
.login-card .btn { margin-top: 6px; }
.login-knot { width: 44px; height: 44px; }

/* ── voet */
.foot { border-top: 1px solid var(--line); padding: 18px 0; color: var(--faint); font-size: 13px; text-align: center; }

/* ── smaller */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .top-in { gap: 8px; flex-wrap: wrap; height: auto; padding-top: 10px; }
  .project-pick { order: 2; flex: 1; }
  .project-pick select { max-width: none; width: 100%; }
  .top-tools { order: 3; }
  .tabs-main { order: 4; flex-basis: 100%; height: 44px; }
  .brand span:not(.i) { display: none; }
  .tabs-main { gap: 0; min-width: 0; }
  .tabs-main a { padding: 0 7px; font-size: 14px; white-space: nowrap; }
  .top-tools { gap: 0; }
  .tool { padding: 0 6px; }
  .tool span:not(.i) { display: none; }
  .shot { width: calc(50% - 5px); }
  .page { padding-top: 24px; }
  .title { font-size: 26px; }
  .page-top { flex-direction: column; align-items: stretch; }
  .search { margin-left: 0; width: 100%; }
  .search input[type="search"] { width: 100%; }
  .entry-head { align-items: flex-start; padding: 12px; }
  .eh { flex-wrap: wrap; gap: 10px 12px; }
  .eh-text { flex-basis: calc(100% - 50px); }
  .eh-pills, .eh-items { margin-left: 48px; max-width: none; justify-content: flex-start; }
  .entry-body { padding: 0 12px 14px; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 > :last-child { grid-column: 1 / -1; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .item-row { grid-template-columns: 24px minmax(0, 1fr) 64px 40px; }
  .item-row select { grid-column: 2 / 4; }
  .panel { padding: 18px 14px; }
  .lightbox { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
