/* Break-out: dashboard en opslaanfunctie (v3.18.0) */

/* =========================================================
   1. Opslaanknop
   ========================================================= */
.bo-save {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bo-save__label { font-family: var(--mm-font, inherit); font-weight: 700; letter-spacing: -0.015em; }
.bo-save__icon { flex: none; transition: transform .2s ease; }
.bo-save.is-saved .bo-save__icon path { fill: currentColor; }
.bo-save.is-busy { opacity: .6; pointer-events: none; }
.bo-save:active .bo-save__icon { transform: scale(.88); }
.bo-save:focus-visible { outline: 3px solid var(--purple, #7b15f2); outline-offset: 3px; }

/* Op een detailpagina (donker): witte rand, vol wit als bewaard */
.bo-save--detail {
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.bo-save--detail:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.bo-save--detail.is-saved { background: #fff; border-color: #fff; color: #000; }
.bo-save--detail.is-saved:hover { background: #e6e6e6; }

/* Op een kaart: rond knopje rechtsboven in het beeld */
.card { position: relative; }
.bo-save--card {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.bo-save--card .bo-save__label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bo-save--card:hover { transform: scale(1.06); }
.bo-save--card.is-saved { background: #000; color: #fff; }

/* Rij op de detailpagina's van de plugins */
.bo-save-row { margin: 18px 0 0; }

/* =========================================================
   2. Popup voor bezoekers
   ========================================================= */
.bo-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; }
.bo-modal[hidden] { display: none; }
.bo-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bo-modal__card {
  position: relative;
  width: min(480px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border-radius: 28px;
  background: #fff;
  color: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: bo-pop .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes bo-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.bo-modal__close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: #f2f2f2; color: #000; cursor: pointer;
}
.bo-modal__close:hover { background: #000; color: #fff; }
.bo-modal__title { margin: 0 0 12px; font-family: var(--mm-font, inherit); font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.bo-modal__text { margin: 0 0 26px; color: var(--ink-soft, #3d3649); font-size: 17px; line-height: 1.6; }
.bo-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; }
html.bo-modal-open { overflow: hidden; }

/* Melding onderaan het scherm */
.bo-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10001;
  max-width: calc(100vw - 32px);
  padding: 14px 24px;
  border-radius: 999px;
  background: #000; color: #fff;
  font-family: var(--mm-font, inherit); font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transform: translate(-50%, 20px); opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.bo-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   3. Dashboard
   ========================================================= */
.bd-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 40px); }
.bd-nav .pg-more { padding: 11px 20px; font-size: 16px; }
.bd-block { scroll-margin-top: 90px; }
#community { scroll-margin-top: 90px; }

/* Cijfers */
.bd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.bd-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--pg-line, #e6e6e6);
  border-radius: 24px;
  color: inherit; text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.bd-stat:hover { border-color: #000; background: #f7f7f7; }
.bd-stat__num { font-family: var(--mm-font, inherit); font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.bd-stat__label { color: var(--ink-soft, #3d3649); font-size: 16px; font-weight: 600; }

/* Verder kijken */
.bd-resume { margin-top: 0; }
.bd-progress { height: 6px; margin: 18px 0 0; border-radius: 99px; background: #e6e6e6; overflow: hidden; }
.bd-progress > span { display: block; height: 100%; border-radius: 99px; background: var(--purple, #7b15f2); }
.bd-progress--light { max-width: 420px; background: rgba(255, 255, 255, .25); }
.bd-progress--light > span { background: var(--pg-purple-light, #b58cff); }
.bd-resume .pg-release__meta { margin-top: 12px; }

/* Filter */
.bd-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); }
.bd-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--line-strong, #cfcfcf); border-radius: 999px;
  background: #fff; color: #000; cursor: pointer;
  font-family: var(--mm-font, inherit); font-size: 16px; font-weight: 700; letter-spacing: -0.015em;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.bd-chip[hidden] { display: none; }
.bd-chip:hover { border-color: #000; }
.bd-chip.is-active { border-color: #000; background: #000; color: #fff; }
.bd-chip__n { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, .08); font-size: 13px; text-align: center; }
.bd-chip.is-active .bd-chip__n { background: rgba(255, 255, 255, .22); }

/* Bewaarde kaarten */
.bd-grid { gap: clamp(32px, 3.4vw, 52px) clamp(20px, 2.6vw, 36px); }
.bd-grid .card__media { margin-bottom: 20px; border-radius: 28px; }
.bd-item { transition: opacity .3s ease, transform .3s ease; }
.bd-item[hidden] { display: none; }
.bd-item.is-leaving { opacity: 0; transform: scale(.96); }

/* Lege staat */
.bd-empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed var(--line-strong, #cfcfcf);
  border-radius: 28px;
  background: #f7f7f7;
}
.bd-empty[hidden] { display: none; }
.bd-empty h3 { margin: 0; font-family: var(--mm-font, inherit); font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.035em; }
.bd-empty p { max-width: 52ch; margin: 0; color: var(--ink-soft, #3d3649); font-size: 17px; line-height: 1.6; }
.bd-empty__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 50%; background: #000; color: #fff; }
.bd-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Activiteit */
.bd-acts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pg-line, #e6e6e6); }
.bd-act {
  display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.4vw, 32px);
  padding: 20px 0; border-bottom: 1px solid var(--pg-line, #e6e6e6);
}
.bd-act__media { display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #f2f2f2; }
.bd-act__media img, .bd-act__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-act__kicker { margin: 0 0 6px; color: var(--mm-accent, #7b15f2); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.bd-act__title { display: block; color: #000; font-family: var(--mm-font, inherit); font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; text-decoration: none; }
.bd-act__title:hover { text-decoration: underline; text-underline-offset: 4px; }
.bd-act .bd-progress { max-width: 360px; margin-top: 14px; }
.bd-act__meta { margin: 8px 0 0; color: var(--ink-soft, #3d3649); font-size: 14px; font-weight: 600; }
.bd-clear { cursor: pointer; font: inherit; font-family: var(--mm-font, inherit); font-weight: 700; }

/* Account */
.bd-account { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.bd-facts { display: grid; gap: 22px; margin: 0; }
.bd-facts dt { margin: 0 0 4px; color: var(--mm-accent, #7b15f2); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.bd-facts dd { margin: 0; font-family: var(--mm-font, inherit); font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.bd-account__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 760px) {
  .bd-stats { grid-template-columns: 1fr; }
  .bd-stat { flex-direction: row; align-items: center; justify-content: space-between; }
  .bd-stat__num { font-size: 40px; }
  .bd-act { grid-template-columns: 96px minmax(0, 1fr); }
  .bd-act__cta { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .bo-modal__card, .bo-toast, .bd-item, .bo-save__icon { animation: none; transition: none; }
}

/* Specifiekere regels, zodat de fade-in van de pagina niet wint */
.pg-js .pg-reveal.bd-item.is-leaving { opacity: 0; transform: scale(.96); }
.bd-grid[hidden], .bd-filter[hidden] { display: none; }
