/*
Theme Name: RIE-NL Dashboard
Theme URI: https://rie-nl.nl
Description: Clean, snel en minimalistisch thema voor het RIE Dashboard. Verwijdert overbodige WordPress-onderdelen (reacties, emoji, embeds, generator-meta) en biedt een nette, premium menustructuur die aansluit op de RIE-plugin.
Version: 0.3.0
Author: RIE-NL
Text Domain: rie-nl
*/

:root {
  --rie-brand: #4057CB;
  --rie-brand-dark: #2d3aa0;
  --rie-navy: #1c2358;
  --rie-ink: #18222e;
  --rie-muted: #5b6675;
  --rie-faint: #8a93a1;
  --rie-line: #e9ecf1;
  --rie-line-strong: #dde1e8;
  --rie-bg: #f7f8fa;
  --rie-card: #ffffff;
  --rie-radius: 14px;
  --rie-radius-sm: 9px;
  --rie-shadow: 0 1px 2px rgba(16,32,44,.04), 0 6px 20px rgba(16,32,44,.04);
  --rie-max: 1080px;
  --rie-font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--rie-font);
  color: var(--rie-ink);
  background: var(--rie-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--rie-brand); text-decoration: none; }
a:hover { color: var(--rie-brand-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -0.01em; line-height: 1.25; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rie-line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  max-width: var(--rie-max);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--rie-ink); }
.site-brand img { max-height: 38px; width: auto; }
.site-brand a { color: inherit; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--rie-muted); font-weight: 500; font-size: .94rem; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--rie-bg); color: var(--rie-ink); }
.main-nav .current-menu-item > a { background: rgba(43,91,171,.10); color: var(--rie-brand-dark); }

/* ---------- Layout ---------- */
.site-main { max-width: var(--rie-max); margin: 34px auto 10px; padding: 0 24px; }
.card {
  background: var(--rie-card);
  border: 1px solid var(--rie-line);
  border-radius: var(--rie-radius);
  box-shadow: var(--rie-shadow);
  padding: 34px 38px;
}
.entry-title { margin: 0 0 .5em; font-size: 1.85rem; font-weight: 600; color: var(--rie-ink); }
.entry-content { font-size: 1.02rem; color: #2b3543; }
.entry-content h2 { color: var(--rie-ink); margin-top: 1.6em; font-size: 1.3rem; font-weight: 600; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--rie-navy);
  color: #fff;
  border-radius: var(--rie-radius);
  padding: 60px 48px;
  margin-bottom: 22px;
  box-shadow: var(--rie-shadow);
}
.hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; font-weight: 600; color: #9db4dd; margin-bottom: 16px;
}
.hero h1 { margin: 0 0 .35em; font-size: 2.3rem; font-weight: 600; }
.hero p { margin: 0; color: #c5d0e0; max-width: 56ch; font-size: 1.06rem; }
.hero .button { margin-top: 24px; background: #fff; color: var(--rie-navy) !important; }
.hero .button:hover { background: #eef2f8; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tile {
  position: relative;
  background: var(--rie-card);
  border: 1px solid var(--rie-line);
  border-radius: var(--rie-radius);
  box-shadow: var(--rie-shadow);
  padding: 26px 26px 24px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--rie-line-strong); box-shadow: 0 10px 30px rgba(16,32,44,.08); }
.tile .tile-mark { width: 38px; height: 38px; border-radius: 10px; background: rgba(43,91,171,.10); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.tile .tile-mark span { width: 14px; height: 14px; border: 2.5px solid var(--rie-brand); border-radius: 4px; display: block; }
.tile h3 { margin: 0 0 .35em; font-size: 1.18rem; font-weight: 600; color: var(--rie-ink); }
.tile p { margin: 0 0 1.2em; color: var(--rie-muted); font-size: .97rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rie-brand); color: #fff !important;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .96rem;
  text-decoration: none !important; border: 0; cursor: pointer;
  transition: background .15s, transform .1s;
}
.button:hover { background: var(--rie-brand-dark); }
.button:active { transform: translateY(1px); }
.button .arrow { transition: transform .15s; }
.button:hover .arrow { transform: translateX(3px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rie-line); background: #fff; margin-top: 48px; }
.site-footer__inner {
  max-width: var(--rie-max); margin: 0 auto; padding: 26px 24px;
  color: var(--rie-faint); font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

@media (max-width: 720px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-header { position: static; }
  .hero { padding: 40px 28px; }
  .hero h1 { font-size: 1.85rem; }
  .card { padding: 24px 22px; }
}

/* Huisstijl-logo in header */
.site-brand .brand-logo img, .site-brand img.brand-logo { max-height: 44px; width: auto; display: block; }
.site-brand img { max-height: 44px; width: auto; }
