/* ═══ Basis ═══ */
* { box-sizing: border-box; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c1e21;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; }

/* ═══ Feedpagina ═══ */
.feed-body { background: #eef0f3; min-height: 100vh; }

.feed-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff; border-bottom: 1px solid #dde0e4;
}
.feed-header-inner {
  max-width: 620px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.feed-header h1 { font-size: 17px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e0245e; flex: none; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.feed { max-width: 620px; margin: 0 auto; padding: 16px 12px 60px; display: flex; flex-direction: column; gap: 14px; }
.feed-empty { text-align: center; color: #7a8087; padding: 48px 0; }

/* ── Rasterweergave (wall) ── */
.view-grid .feed {
  max-width: 1720px; flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px 16px 60px;
}
.view-grid .feed-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.view-grid .feed-empty { width: 100%; }
.view-grid .ig-textpost { font-size: 18px; padding: 22px; }

.view-toggle { display: flex; border: 1px solid #d5d9de; border-radius: 7px; overflow: hidden; flex: none; }
.view-toggle a {
  padding: 4px 11px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: #55595e; background: #fff;
}
.view-toggle a.on { background: #29303a; color: #fff; }

.card { background: #fff; overflow: hidden; }
.card.is-new { animation: slideIn .45s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  .card.is-new { animation: none; }
  .live-dot { animation: none; }
}

/* Gedeelde bouwstenen */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 700; flex: none; user-select: none;
}
.av28 { width: 28px; height: 28px; font-size: 11px; }
.av32 { width: 32px; height: 32px; font-size: 12px; }
.av40 { width: 40px; height: 40px; font-size: 15px; }
.av48 { width: 48px; height: 48px; font-size: 17px; }
.avatar.sq { border-radius: 6px; }
.name { font-weight: 700; }
.sub { color: #65676b; font-weight: 400; }
.msg { white-space: normal; line-height: 1.4; }
.tag { color: #1d9bf0; }
.media { margin-top: 10px; }
.media img { width: 100%; }
.media.video { position: relative; padding-top: 56.25%; }
.media.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ico-inline svg, .ico-inline { display: inline-block; vertical-align: -2px; }
svg { width: 18px; height: 18px; }

.brand {
  margin-left: auto; flex: none; align-self: flex-start;
  font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; color: #fff;
}
.brand-tw { background: #0f1419; border-radius: 6px; font-size: 12px; padding: 1px 7px; }
.brand-fb { background: #1877f2; }
.brand-ig { background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045); }
.brand-li { background: #0a66c2; }

/* ── X / Twitter ── */
.tw { border: 1px solid #e3e6e8; border-radius: 16px; padding: 12px 14px; font-size: 15px; }
.tw-row { display: flex; gap: 10px; }
.tw-main { flex: 1; min-width: 0; }
.tw-head { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 2px; }
.tw .msg { margin-top: 1px; }
.tw .media { border-radius: 14px; overflow: hidden; border: 1px solid #e3e6e8; }
.tw-actions { display: flex; gap: 0; justify-content: space-between; max-width: 380px; margin-top: 10px; color: #536471; font-size: 13px; }
.tw-actions span { display: inline-flex; align-items: center; gap: 6px; }
.tw-actions .liked { color: #f91880; }

/* ── Facebook ── */
.fb { border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.15); padding: 12px 0 4px; font-size: 15px; }
.fb-head { display: flex; gap: 10px; align-items: center; padding: 0 14px 8px; }
.fb-head .name { font-size: 15px; }
.fb-head .sub { font-size: 13px; }
.fb .msg { padding: 0 14px 8px; }
.fb .media { margin-top: 2px; }
.fb-counts {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  color: #65676b; font-size: 14px; border-bottom: 1px solid #e4e6ea;
}
.fb-counts .right { margin-left: auto; }
.fb-like-bubble {
  width: 19px; height: 19px; border-radius: 50%; background: #1877f2; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.fb-like-bubble svg { width: 11px; height: 11px; }
.fb-actions { display: flex; padding: 4px 8px 2px; }
.fb-actions span {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  color: #65676b; font-weight: 600; font-size: 14px; padding: 8px 0; border-radius: 6px;
}

/* ── Instagram ── */
.ig { border: 1px solid #dbdbdb; border-radius: 10px; font-size: 14px; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-ring {
  border-radius: 50%; padding: 2px; flex: none;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.ig-ring .avatar { border: 2px solid #fff; }
.ig .media { margin-top: 0; }
.ig-textpost {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; font-weight: 700; text-align: center; padding: 28px; line-height: 1.35;
}
.ig-actions { display: flex; gap: 16px; padding: 10px 12px 6px; }
.ig-actions svg { width: 24px; height: 24px; }
.ig-actions .liked { color: #ed4956; }
.ig-likes { padding: 0 12px; font-weight: 700; }
.ig-caption { padding: 4px 12px 0; line-height: 1.4; }
.ig-comments { padding: 4px 12px 0; color: #8e8e8e; }
.ig-time { padding: 6px 12px 12px; color: #8e8e8e; font-size: 11px; text-transform: uppercase; letter-spacing: .2px; }

/* ── LinkedIn ── */
.li { border: 1px solid #e0e0e0; border-radius: 10px; padding: 12px 0 4px; font-size: 14px; }
.li-head { display: flex; gap: 10px; padding: 0 14px 8px; }
.li-head .name { font-size: 14px; }
.li-head .sub { font-size: 12px; line-height: 1.35; }
.li .msg { padding: 0 14px 8px; }
.li-counts {
  display: flex; align-items: center; gap: 5px; padding: 8px 14px;
  color: #666; font-size: 12px; border-bottom: 1px solid #e8e8e8;
}
.li-counts .right { margin-left: auto; }
.li-like-bubble {
  width: 16px; height: 16px; border-radius: 50%; background: #378fe9; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.li-like-bubble svg { width: 10px; height: 10px; }
.li-actions { display: flex; padding: 4px 6px 2px; }
.li-actions span {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: #666; font-weight: 600; font-size: 13px; padding: 9px 0; border-radius: 6px;
}

/* ── Nieuwsartikel ── */
.news { border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.14); padding: 16px 18px 18px; }
.news-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.news-outlet { font-weight: 800; font-size: 14px; letter-spacing: .2px; }
.news-live {
  margin-left: auto; background: #c4170c; color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .8px; padding: 2px 7px; border-radius: 3px;
}
.news-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px; line-height: 1.22; font-weight: 700; margin-bottom: 6px;
}
.news-meta { color: #6b7075; font-size: 12.5px; margin-bottom: 4px; }
.news .media { margin: 10px -18px; }
.news-lead { font-size: 15.5px; line-height: 1.55; color: #2b2e31; }
.news-more { display: inline-block; margin-top: 10px; color: #0b5cad; font-weight: 600; font-size: 14px; }

/* ═══ Beheer & event aanmaken ═══ */
.admin-body { background: #f2f3f5; min-height: 100vh; }
.admin-wrap { max-width: 1060px; margin: 0 auto; padding: 24px 16px 60px; }
.admin-wrap.narrow { max-width: 560px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-title { font-size: 21px; }
.admin-sub { font-size: 16px; margin-bottom: 12px; }
.muted { color: #75797e; font-weight: 400; font-size: .88em; }

.admin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } }

.card-form, .post-admin-list, .event-list {
  background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.card-form label { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 0 5px; }
.card-form label:first-of-type { margin-top: 0; }
.card-form label.inline { display: inline-flex; gap: 6px; font-weight: 400; margin: 6px 0 0; }
.card-form input[type=text], .card-form input[type=password], .card-form input[type=number],
.card-form input[type=datetime-local], .card-form select, .card-form textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #ccd0d5; border-radius: 7px; background: #fafbfc;
}
.card-form textarea { resize: vertical; }
.card-form input:focus, .card-form select:focus, .card-form textarea:focus {
  outline: 2px solid #4a71d0; outline-offset: 0; border-color: #4a71d0; background: #fff;
}
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.form-actions { margin-top: 18px; display: flex; gap: 10px; align-items: center; }

button, .btn {
  display: inline-block; background: #29303a; color: #fff; border: 0; border-radius: 7px;
  padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
}
button:hover, .btn:hover { background: #3a4250; }
.btn.ghost { background: #e9ebee; color: #29303a; }
.btn.ghost:hover { background: #dde0e4; }
.btn.danger, button.danger { background: #d13438; }
.btn.sm, button.sm { padding: 6px 11px; font-size: 13px; }

.flash { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: #e2f4e6; color: #1e6330; }
.flash.err { background: #fbe3e4; color: #9c1c23; }
.linkblock label { display: block; font-weight: 600; font-size: 12.5px; margin: 10px 0 4px; }
.linkblock input { width: 100%; padding: 8px 10px; border: 1px solid #b9ccb9; border-radius: 6px; font-size: 13px; background: #fff; }

.current-img { margin-top: 8px; }
.current-img img { max-height: 90px; border-radius: 6px; }

.post-row {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 12px 2px; border-bottom: 1px solid #eceef1;
}
.post-row:last-child { border-bottom: 0; }
.post-row.is-scheduled { background: #fffbef; }
.post-row-main { min-width: 0; }
.post-row-msg { color: #4c5157; font-size: 13.5px; margin-top: 3px; }
.post-row-actions { display: flex; gap: 8px; flex: none; align-items: center; }
.post-row-actions form { display: inline; }

.pill {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; color: #fff; margin-right: 4px; vertical-align: 1px;
}
.pill-twitter { background: #0f1419; }
.pill-facebook { background: #1877f2; }
.pill-instagram { background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045); }
.pill-linkedin { background: #0a66c2; }
.pill-news { background: #c4170c; }
.pill-sched { background: #b9770e; }

.event-list { padding: 6px 18px; }
.event-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eceef1; }
.event-row:last-child { border-bottom: 0; }
.event-links { display: flex; gap: 12px; flex: none; }
.event-links a { color: #2455b5; font-weight: 600; text-decoration: none; font-size: 14px; }
