/* ============================================================
   rj.css — RaaktJou gedeelde stijlen
   Versie 1.0 · raaktjou.nl
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background: #F7F2E8;
  color: #181511;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: #15945A; color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Animaties ---------- */
@keyframes rj-ping  { 0% { transform: scale(0.55); opacity: 0.9; } 80%,100% { transform: scale(1.6); opacity: 0; } }
@keyframes rj-tik   { 0%, 80%, 100% { transform: rotate(0deg); } 87% { transform: rotate(20deg); } 91% { transform: rotate(7deg); } 95% { transform: rotate(2deg); } }
@keyframes rj-knock { 0%, 85%, 100% { transform: translateX(0) rotate(0deg); } 89% { transform: translateX(3px) rotate(6deg); } 93% { transform: translateX(-1.5px) rotate(-2deg); } 97% { transform: translateX(1px) rotate(1deg); } }
@keyframes rj-pop   { 0% { transform: translateY(10px) scale(0.96); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes rj-blip  { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes rj-sweep { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes rj-spin  { to { transform: rotate(360deg); } }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 30px;
  background: rgba(247,242,232,0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #E4DCCB;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 11px; }

/* Logo animatie-onderdelen */
.rj-bang { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.rj-bang .bar { width: 7px; height: 27px; border-radius: 4px; background: #15945A; transform-origin: bottom center; animation: rj-tik 4.5s ease-in-out infinite; }
.rj-bang .dot { position: relative; width: 7px; height: 7px; }
.rj-bang .dot span { position: absolute; inset: 0; border-radius: 50%; background: #15945A; }
.rj-bang .dot .ping { animation: rj-ping 2.2s ease-out infinite; }
.rj-word { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.rj-word .name { font-weight: 900; font-size: 25px; letter-spacing: -0.8px; color: #181511; }
.rj-word .name .r { display: inline-block; transform-origin: left center; animation: rj-knock 4.5s ease-in-out infinite; }
.rj-word .name .jou { color: #15945A; }
.rj-word .tg { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #15945A; white-space: nowrap; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: #181511; font-weight: 600; font-size: 16px; }
.nav-links a:hover { color: #15945A; }
.nav-right { display: inline-flex; align-items: center; gap: 14px; }
.nav-cta {
  white-space: nowrap; text-decoration: none; font-weight: 800; font-size: 16px;
  background: #15945A; color: #fff; border-radius: 999px; padding: 11px 22px;
  box-shadow: 0 4px 0 #0E6B41;
}
.nav-cta:hover { background: #128A51; }

/* User dropdown */
.nav-user { position: relative; display: inline-flex; align-items: center; }
.nav-avatar {
  cursor: pointer; border: none; padding: 0; width: 38px; height: 38px; border-radius: 50%;
  background: #15945A; color: #fff; font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-family: 'Hanken Grotesk', sans-serif;
}
.nav-dd {
  display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 208px;
  background: #fff; border: 1px solid #E4DCCB; border-radius: 14px;
  box-shadow: 0 16px 38px rgba(24,21,17,0.16); padding: 7px; z-index: 70;
}
.nav-dd[data-open="1"] { display: block; }
.nav-dd .dd-head { padding: 10px 12px 9px; border-bottom: 1px solid #EFE9DA; margin-bottom: 5px; }
.nav-dd .dd-head .nm { font-weight: 800; font-size: 14px; }
.nav-dd .dd-head .em { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8A8275; }
.nav-dd a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 10px 12px; border-radius: 9px; color: #181511; }
.nav-dd a.logout { color: #B22A1D; }
.nav-dd a:hover { background: #F2ECDD; }
.nav-dd a.logout:hover { background: #FBE7E3; }

/* Hamburger */
.nav-burger {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  flex: none; padding: 0; border: none; background: none; cursor: pointer; border-radius: 10px;
}
@media (max-width: 860px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { font-size: 13px; padding: 8px 13px; box-shadow: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 16px;
    background: #F7F2E8; border-bottom: 1px solid #E4DCCB; box-shadow: 0 16px 30px rgba(24,21,17,0.12);
  }
  .nav[data-menu-open="1"] .nav-links { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid #ECE5D6; font-size: 17px; }
}

/* ---------- LOGO (footer dark variant) ---------- */
.rj-logo-dark .bar { background: #7FD9A6; }
.rj-logo-dark .dot span { background: #7FD9A6; }
.rj-logo-dark .name { color: #F7F2E8; }
.rj-logo-dark .jou { color: #7FD9A6; }

/* ---------- FOOTER ---------- */
.footer { background: #181511; color: #C7C0B2; padding: 54px 30px 40px; }
.footer .footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 34px;
}
.footer .footer-brand .sub { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #7FD9A6; margin: 10px 0 0; }
.footer h4 { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: #8A8275; margin: 0 0 14px; }
.footer .footer-col a { display: block; color: #C7C0B2; text-decoration: none; font-weight: 600; font-size: 15px; margin: 9px 0; }
.footer .footer-col a:hover { color: #F7F2E8; }
.footer .footer-legal {
  max-width: 1080px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid #322C24;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 12.5px; color: #8A8275;
}

/* ---------- Knoppen ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 800; font-size: 16px;
  background: #15945A; color: #fff; border: none; border-radius: 999px;
  padding: 13px 26px; box-shadow: 0 5px 0 #0E6B41; cursor: pointer;
  font-family: 'Hanken Grotesk', sans-serif; transition: background .15s;
}
.btn-primary:hover { background: #128A51; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; font-size: 16px;
  color: #181511; background: #fff; border: 1.5px solid #181511;
  border-radius: 999px; padding: 12px 24px; cursor: pointer;
  font-family: 'Hanken Grotesk', sans-serif; transition: background .15s;
}
.btn-outline:hover { background: #F2ECDD; }

/* ---------- Formulieren ---------- */
.rj-input {
  font-family: 'Hanken Grotesk', sans-serif; font-size: 16px;
  padding: 13px 18px; border: 1.5px solid #D8D0BF; border-radius: 12px;
  background: #fff; color: #181511; width: 100%;
  transition: border-color .15s;
}
.rj-input:focus { outline: none; border-color: #15945A; }
.rj-input::placeholder { color: #A39A88; }
.rj-label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }

/* ---------- Signaalkaart ---------- */
.signal-card {
  background: #fff; border: 1px solid #E4DCCB; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(24,21,17,0.06); overflow: hidden;
  display: flex; flex-direction: column; animation: rj-pop .35s ease both;
}
.signal-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 22px;
}
.signal-card-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.signal-card-title { font-weight: 900; font-size: 22px; line-height: 1.08; letter-spacing: -0.6px; margin: 0 0 10px; }
.signal-card-desc { font-size: 15.5px; font-weight: 500; line-height: 1.5; color: #4A453C; margin: 0 0 14px; }
.signal-card-action { border-radius: 12px; padding: 13px 15px; margin: 0 0 14px; }
.signal-card-action .action-label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.signal-card-action .action-text { font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.signal-card-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.signal-card-source { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #EFE9DA; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8A8275; }
.signal-card-opvolg { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #EFE9DA; }
.signal-card-opvolg button {
  flex: 1; font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 14px;
  padding: 9px 14px; border-radius: 10px; border: 1.5px solid #D8D0BF;
  background: #fff; color: #181511; cursor: pointer; transition: all .15s;
}
.signal-card-opvolg button:hover { background: #E4F4EA; border-color: #15945A; color: #0E6B41; }
.signal-card-opvolg button.done { background: #E4F4EA; border-color: #15945A; color: #0E6B41; }

/* ---------- Feed grid ---------- */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 22px;
}

/* ---------- Page wrapper ---------- */
.page-wrap { max-width: 1080px; margin: 0 auto; padding: 56px 30px; }
.page-wrap-wide { max-width: 1240px; margin: 0 auto; padding: 56px 30px; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-radius: 999px; padding: 4px 11px;
}
.badge-saving {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 800; font-size: 12.5px; color: #0E6B41;
  background: #E4F4EA; border-radius: 999px; padding: 4px 11px;
}
.zekerheid-dots { display: inline-flex; gap: 3px; }
.zekerheid-dots span { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Toast notificatie ---------- */
.rj-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #181511; color: #F7F2E8; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  z-index: 200; opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap;
}
.rj-toast.show { opacity: 1; }

/* ---------- Spinner ---------- */
.rj-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid #E4DCCB; border-top-color: #15945A;
  animation: rj-spin .7s linear infinite; margin: 40px auto;
}

/* ---------- Lege staat ---------- */
.empty-state {
  text-align: center; background: #fff; border: 1px dashed #C9BFA9;
  border-radius: 20px; padding: 48px 28px;
}
.empty-state h3 { font-weight: 800; font-size: 22px; margin: 0 0 6px; }
.empty-state p { font-size: 16px; color: #6B6358; margin: 0; }

/* ---------- Sectie-header ---------- */
.section-kicker {
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.8px; text-transform: uppercase; color: #15945A;
}
.section-h2 {
  font-weight: 900; font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.02; letter-spacing: -1.4px; margin: 12px 0 8px;
}
.section-lead { font-size: 18px; font-weight: 500; color: #4A453C; line-height: 1.5; margin: 0; }

/* ---------- Categorie-kleuren ---------- */
[data-cat="geld"]      { --cat-tint:#E4F4EA; --cat-ink:#0E6B41; }
[data-cat="fraude"]    { --cat-tint:#FBE7E3; --cat-ink:#B22A1D; }
[data-cat="product"]   { --cat-tint:#FAEFDA; --cat-ink:#9C5C09; }
[data-cat="wonen"]     { --cat-tint:#DEF0F5; --cat-ink:#0C6075; }
[data-cat="reizen"]    { --cat-tint:#E8E6FA; --cat-ink:#3F389E; }
[data-cat="werk"]      { --cat-tint:#E6EDF8; --cat-ink:#2D5BA8; }
[data-cat="ondernemen"]{ --cat-tint:#F7E5F0; --cat-ink:#9B2C72; }
[data-cat="zorg"]      { --cat-tint:#FBE6EC; --cat-ink:#C0395F; }
[data-cat="tech"]      { --cat-tint:#E0F1EC; --cat-ink:#0F7A6B; }
[data-cat="onderwijs"] { --cat-tint:#F3EFD6; --cat-ink:#7E6B12; }

/* ---------- Print hide ---------- */
@media print { .nav, .footer { display: none; } }
