/* BoomerangBot Forum — aanvulling op style.css (zelfde kleuren en lettertypes) */

.forum-header { padding: 56px 0 40px; }
.forum-header h1 { margin-bottom: 12px; }
.forum-main { padding: 36px 0 96px; }
.forum-main .container { max-width: 960px; }

/* Bovenbalk: kruimelpad + account */
.f-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 24px; }
.f-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; color: var(--grey); min-width: 0; }
.f-crumbs a { color: var(--grey); }
.f-crumbs a:hover { color: var(--teal); opacity: 1; }
.f-crumbs span.sep { color: var(--grey-dark); }
.f-crumbs .cur { color: var(--white); overflow-wrap: anywhere; }
.f-account { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: .88rem; color: var(--grey); }
.f-account strong { color: var(--white); }

.f-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-sm);
  font: 600 .875rem var(--font-body); cursor: pointer; border: 1.5px solid var(--border); background: transparent; color: var(--white);
  transition: border-color .15s, color .15s, background .15s, opacity .15s; white-space: nowrap; text-decoration: none; }
.f-btn:hover { border-color: var(--teal); color: var(--teal); opacity: 1; }
.f-btn--primary { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.f-btn--primary:hover { color: var(--navy); opacity: .9; }
.f-btn--sm { padding: 5px 10px; font-size: .8rem; }
.f-btn--danger:hover { border-color: var(--red); color: var(--red); }
.f-btn[disabled] { opacity: .55; cursor: default; pointer-events: none; }
.f-link { background: none; border: none; color: var(--teal); font: inherit; cursor: pointer; padding: 0; }
.f-link:hover { opacity: .75; }

/* Categorieën en onderwerpen */
.f-section-title { font-family: var(--font-display); font-size: 1.15rem; margin: 36px 0 14px; }
.f-section-title:first-child { margin-top: 0; }
.f-list { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--card); }
.f-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.f-row:last-child { border-bottom: none; }
.f-row:hover { background: #18213A; }
.f-row__title { font-weight: 600; color: var(--white); font-size: .98rem; overflow-wrap: anywhere; }
.f-row__title a { color: var(--white); }
.f-row__title a:hover { color: var(--teal); opacity: 1; }
.f-row__sub { font-size: .82rem; color: var(--grey); margin-top: 3px; max-width: none; }
.f-row__stats { text-align: right; font-size: .8rem; color: var(--grey); white-space: nowrap; }
.f-row__stats b { display: block; color: var(--white); font-size: .95rem; font-weight: 600; }
.f-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px;
  border-radius: 99px; margin-right: 6px; vertical-align: 2px; background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,212,180,.25); }
.f-tag--gold { background: rgba(245,200,66,.12); color: var(--gold); border-color: rgba(245,200,66,.25); }
.f-tag--grey { background: rgba(139,149,176,.1); color: var(--grey); border-color: var(--border); }
.f-tag--red { background: rgba(245,101,101,.1); color: var(--red); border-color: rgba(245,101,101,.3); }
.f-empty { padding: 28px 20px; text-align: center; color: var(--grey); font-size: .92rem; }
.f-cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.f-cat-head h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 6px; }

/* Berichten */
.f-topic-title { font-size: clamp(1.4rem, 3.5vw, 2.1rem); margin-bottom: 8px; overflow-wrap: anywhere; }
.f-topic-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; font-size: .85rem; color: var(--grey); }
.f-post { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; }
.f-post--hidden { opacity: .6; border-style: dashed; }
.f-post__head { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--border); background: rgba(13,17,23,.4); }
.f-post__author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--white); font-size: .92rem; min-width: 0; }
.f-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font: 700 .82rem var(--font-display); color: var(--navy); }
.f-post__date { font-size: .8rem; color: var(--grey); align-self: center; }
.f-post__body { padding: 18px 20px 6px; color: #D9DEEC; font-size: .95rem; line-height: 1.7; overflow-wrap: anywhere; }
.f-post__body p.f-text { color: inherit; max-width: none; margin: 0 0 12px; white-space: pre-wrap; }
.f-post__body a { text-decoration: underline; text-underline-offset: 2px; }
.f-img { margin: 4px 0 14px; }
.f-img a { display: inline-block; max-width: 100%; text-decoration: none; }
.f-img img { width: auto; display: block; max-width: 100%; height: auto; max-height: 640px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #0D1117; }
.f-filechip { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 12px 16px; max-width: 100%;
  border: 1px solid rgba(0,212,180,.3); border-radius: var(--radius-sm); background: var(--teal-dim); color: var(--white); text-decoration: none !important; }
.f-filechip:hover { opacity: 1; border-color: var(--teal); }
.f-filechip svg { flex-shrink: 0; color: var(--teal); }
.f-filechip__name { font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.f-filechip__size { font-size: .78rem; color: var(--grey); }
.f-post__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 4px 20px 14px; }
.f-trans { font-size: .8rem; color: var(--grey); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.f-trans svg { color: var(--teal); flex-shrink: 0; }
.f-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.f-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(0,212,180,.3); border-top-color: var(--teal); border-radius: 50%; animation: fspin .8s linear infinite; vertical-align: -2px; }
@keyframes fspin { to { transform: rotate(360deg); } }
.f-modbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 14px; margin-bottom: 18px; border: 1px dashed rgba(245,200,66,.35); border-radius: var(--radius-sm); background: rgba(245,200,66,.05); font-size: .8rem; color: var(--gold); }
.f-modbar select { width: auto; padding: 5px 8px; font-size: .8rem; }
.f-pages { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 22px 0; font-size: .85rem; color: var(--grey); flex-wrap: wrap; }
.f-note { padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); color: var(--grey); font-size: .92rem; }
.f-note .f-btn { margin: 10px 8px 0 0; }

/* Formulieren */
.f-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.f-card--narrow { max-width: 460px; margin: 0 auto; }
.f-card h2 { font-size: 1.4rem; margin-bottom: 18px; }
.f-form { display: flex; flex-direction: column; gap: 16px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-help { font-size: .78rem; color: var(--grey-dark); max-width: none; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--grey); font-weight: 400; }
.f-check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--teal); }
.f-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; }
.f-msg--err { background: rgba(245,101,101,.08); border: 1px solid rgba(245,101,101,.3); color: var(--red); }
.f-msg--ok { background: var(--teal-dim); border: 1px solid rgba(0,212,180,.3); color: var(--teal); }
.f-alt { font-size: .85rem; color: var(--grey); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Editor */
.f-editor-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0D1117; transition: border-color .2s, box-shadow .2s; }
.f-editor-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,212,180,.12); }
.f-editor-wrap.drag { border-color: var(--teal); background: rgba(0,212,180,.06); }
.f-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.f-toolbar .f-help { margin-left: auto; }
.f-editor { min-height: 180px; max-height: 70vh; overflow-y: auto; padding: 14px 16px; color: var(--white); font-size: .95rem; line-height: 1.7;
  outline: none; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.f-editor:empty::before { content: attr(data-ph); color: var(--grey-dark); pointer-events: none; }
.f-editor .f-fig { display: block; position: relative; margin: 8px 0; max-width: 100%; width: fit-content; user-select: none; }
.f-editor .f-fig img { display: block; max-width: 100%; max-height: 360px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.f-editor .f-fig.uploading img { opacity: .45; }
.f-editor .f-fig .f-fig__state { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; color: var(--white); }
.f-editor .f-fig.uploading .f-fig__state { display: flex; }
.f-editor .f-fig .f-fig__rm { position: absolute; top: 6px; right: 6px; border: none; border-radius: 4px; padding: 3px 8px; font: 600 .75rem var(--font-body);
  background: rgba(10,15,30,.85); color: var(--white); cursor: pointer; }
.f-editor .f-fig .f-fig__rm:hover { background: var(--red); }
.f-editor .f-fig--file { display: flex; align-items: center; gap: 10px; padding: 10px 70px 10px 14px; border: 1px solid rgba(0,212,180,.3); border-radius: var(--radius-sm); background: var(--teal-dim); font-size: .88rem; }
.f-editor .f-fig--file .f-fig__state { position: static; display: none; }
.f-editor .f-fig--file.uploading .f-fig__state { display: inline-flex; }
.f-editor-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

/* Beheer */
.f-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-admin-grid .f-card { padding: 22px; }
.f-admin-grid h3 { font-size: 1.05rem; margin-bottom: 12px; }
.f-model { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; }
.f-model.active { border-color: var(--teal); background: var(--teal-dim); }
.f-model small { display: block; color: var(--grey); font-size: .76rem; }
.f-kv { width: 100%; border-collapse: collapse; font-size: .85rem; }
.f-kv td { padding: 6px 0; border-bottom: 1px solid rgba(30,42,64,.6); vertical-align: top; }
.f-kv td:last-child { text-align: right; color: var(--white); }
.f-ok { color: var(--green); } .f-bad { color: var(--red); }
.f-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.f-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 640px; }
.f-table th { text-align: left; padding: 10px 12px; color: var(--grey); font-weight: 600; background: #0D1117; border-bottom: 1px solid var(--border); }
.f-table td { padding: 9px 12px; border-bottom: 1px solid rgba(30,42,64,.6); color: var(--white); }
.f-table tr:last-child td { border-bottom: none; }

.f-loading { padding: 48px 0; text-align: center; color: var(--grey); }

@media (max-width: 768px) {
  .forum-header { padding: 40px 0 28px; }
  .forum-main { padding: 24px 0 64px; }
  .f-row { grid-template-columns: 1fr; padding: 14px 16px; }
  .f-row__stats { text-align: left; display: flex; gap: 14px; }
  .f-row__stats b { display: inline; margin-right: 4px; }
  .f-post__head, .f-post__body, .f-post__foot { padding-left: 14px; padding-right: 14px; }
  .f-card { padding: 20px; }
  .f-admin-grid { grid-template-columns: 1fr; }
  .f-toolbar .f-help { display: none; }
}
