/* ============================================================
   COOPER — Actueel (nieuws & updates) — pagina-eigen CSS
   Bouwt voort op cooper-cpr.css + cooper-pages.css
   ============================================================ */

.act-wrap { padding: var(--s-9) 0 var(--s-8); }

/* ---------- Intro / section head variant ---------- */
.act-lead {
  max-width: 720px;
  font-size: 18px; line-height: 1.6; font-weight: 300;
  color: var(--text-2);
}

/* ============================================================
   COMPOSER — "Deel een update"
   ============================================================ */
.composer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
  margin-top: var(--s-7);
}

.composer__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-5);
}
.composer__panel h3 {
  font-weight: 300; font-size: 26px; letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 12px;
}
.composer__panel h3 .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cpr-mid);
}

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field > label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3);
}
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit; font-size: 15px; font-weight: 300;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2342697E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cpr-mid);
  background: var(--surface);
}
.field__hint {
  font-size: 12px; color: var(--text-3); font-weight: 300;
  display: flex; justify-content: space-between; gap: 8px;
}

/* photo dropzone */
.dropzone {
  border: 1.5px dashed color-mix(in oklch, var(--cpr-mid) 45%, var(--line));
  border-radius: 14px;
  background: var(--bg);
  padding: var(--s-5);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover, .dropzone.is-drag {
  border-color: var(--cpr-mid);
  background: color-mix(in oklch, var(--cpr-soft) 12%, var(--surface));
}
.dropzone__icon {
  width: 40px; height: 40px; margin: 0 auto var(--s-3);
  color: var(--cpr-mid);
}
.dropzone__t { font-size: 14px; font-weight: 400; color: var(--text); }
.dropzone__s { font-size: 12.5px; font-weight: 300; color: var(--text-3); margin-top: 4px; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb {
  position: relative;
  width: 76px; height: 76px; border-radius: 10px;
  background: var(--bg-2) center/cover no-repeat;
  border: 1px solid var(--line);
  overflow: hidden;
}
.thumb button {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(14,27,37,0.62); color: #fff;
  font-size: 13px; line-height: 1;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.thumb button:hover { background: rgba(14,27,37,0.85); }

.composer__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- LinkedIn preview card ---------- */
.li-wrap { position: sticky; top: 96px; display: flex; flex-direction: column; gap: var(--s-3); }
.li-wrap__label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3);
  display: flex; align-items: center; gap: 10px;
}
.li-wrap__label::after { content:''; flex:1; height:1px; background: var(--line); }

.li-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(14,27,37,0.10);
  font-size: 14px;
}
.li-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px 10px; }
.li-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cpr-deep);
  display: grid; place-items: center; flex-shrink: 0;
}
.li-avatar img { width: 30px; height: auto; filter: brightness(0) invert(1); }
.li-id { line-height: 1.3; }
.li-id .name { font-weight: 600; color: #1f2733; font-size: 14.5px; }
.li-id .meta { color: #5c6b7a; font-size: 12.5px; }
.li-id .meta .glb { font-size: 11px; }
.li-body {
  padding: 2px 16px 12px;
  color: #1f2733; line-height: 1.5; font-weight: 400;
  white-space: pre-wrap; word-break: break-word;
}
.li-body .tag { color: #0a66c2; font-weight: 500; }
.li-photos { display: grid; gap: 2px; background: #e6e9ec; }
.li-photos.n1 { grid-template-columns: 1fr; }
.li-photos.n2 { grid-template-columns: 1fr 1fr; }
.li-photos.n3 { grid-template-columns: 1fr 1fr; }
.li-photos.n3 .li-photo:first-child { grid-row: span 2; }
.li-photos.n4 { grid-template-columns: 1fr 1fr; }
.li-photo { background: #d8dde1 center/cover no-repeat; aspect-ratio: 1.6/1; position: relative; }
.li-photos.n1 .li-photo { aspect-ratio: 1.9/1; }
.li-photos.n3 .li-photo:first-child { aspect-ratio: auto; }
.li-photo .more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14,27,37,0.5); color: #fff; font-size: 22px; font-weight: 500;
}
.li-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px; border-top: 1px solid #eef0f2; color: #5c6b7a; font-size: 12.5px;
}
.li-foot .react { display: flex; align-items: center; gap: 6px; }
.li-foot .dotsep { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; }
.li-foot .dotsep.b { background: #0a66c2; }
.li-foot .dotsep.g { background: #0e8a3e; margin-left: -6px; }

/* LinkedIn-blue button */
.btn-li {
  display: inline-flex; align-items: center; gap: 9px;
  background: #0a66c2; color: #fff;
  border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 12px 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-li:hover { background: #08518f; transform: translateY(-1px); }
.btn-li svg { width: 17px; height: 17px; }

.btn-soft {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 400;
  padding: 12px 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-soft:hover { border-color: var(--cpr-mid); background: var(--surface); }
.btn-soft.is-ok { border-color: #0e8a3e; color: #0e8a3e; }

/* ============================================================
   FEED — recente updates
   ============================================================ */
.feed { display: flex; flex-direction: column; gap: var(--s-8); margin-top: var(--s-7); }

.post {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line);
}
.post:last-child { border-bottom: none; padding-bottom: 0; }
.post:nth-child(even) .post__gallery { order: 2; }

/* text-only update (no photos): single column, roomier */
.post--text { grid-template-columns: 1fr; max-width: 760px; }

/* gallery */
.post__gallery { display: grid; gap: 8px; }
.post__gallery.g3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post__gallery.g3 .pg-img:first-child { grid-row: span 2; }
.post__gallery.g2 { grid-template-columns: 1fr 1fr; }
.pg-img {
  background: var(--bg-2) center/cover no-repeat;
  border-radius: 14px; aspect-ratio: 1/1; min-height: 0;
}
.post__gallery.g3 .pg-img:first-child { aspect-ratio: auto; }

.post__meta { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-4); flex-wrap: wrap; }
.post__chip {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cpr-mid);
  padding: 5px 11px; border-radius: 999px;
  background: color-mix(in oklch, var(--cpr-soft) 16%, transparent);
}
.post__date { font-size: 13px; color: var(--text-3); font-weight: 300; }
.post__title {
  font-weight: 300; font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: var(--s-4);
}
.post__title em { color: var(--cpr-mid); font-style: italic; font-weight: 400; }
.post__text { font-size: 15.5px; line-height: 1.62; font-weight: 300; color: var(--text-2); margin-bottom: var(--s-5); }
.post__text + .post__text { margin-top: calc(var(--s-4) * -1 + 0px); }
.post__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* uitgelicht bericht — donkerblauw paneel */
.post--dark {
  background: var(--cpr-deep);
  color: #fff;
  border-bottom: 0;
  border-radius: 18px;
  padding: clamp(24px, 3vw, 48px);
}
.post--dark .post__chip {
  color: #fff;
  background: color-mix(in oklch, var(--cpr-soft) 28%, transparent);
}
.post--dark .post__date { color: rgba(255,255,255,0.6); }
.post--dark .post__title { color: #fff; }
.post--dark .post__title em { color: var(--cpr-soft); }
.post--dark .post__text { color: rgba(255,255,255,0.74); }
.post--dark .btn-soft {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.post--dark .btn-soft:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--cpr-soft);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--cpr-deep); color: #fff;
  padding: 13px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 300;
  box-shadow: 0 14px 40px rgba(14,27,37,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200; display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ok { color: #6fd99a; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .composer { grid-template-columns: 1fr; }
  .li-wrap { position: static; }
  .post { grid-template-columns: 1fr; gap: var(--s-5); }
  .post:nth-child(even) .post__gallery { order: 0; }
}
