/* digi-klas — productie CSS
   Versie 2.0 — matches WordPress huisstijl
*/

:root {
  /* Hoofdkleuren */
  --c-bg: #F8FAFC;
  --c-surface: #FFFFFF;
  --c-text: #0F172A;
  --c-text-soft: #475569;
  --c-text-mute: #94A3B8;
  --c-border: #E2E8F0;
  --c-border-soft: #F1F5F9;

  /* Brand */
  --c-digi: #6B46C1;
  --c-digi-dark: #553C9A;
  --c-digi-soft: #EDE9FE;

  /* Platform-kleuren (matchen WordPress) */
  --c-robo: #9d4edd;
  --c-robo-soft: #EDE6FB;
  --c-office: #2b579a;
  --c-office-soft: #DCEBFC;
  --c-media: #fe2c55;
  --c-media-soft: #FFE0E8;
  --c-design: #DB2777;
  --c-design-soft: #FCE7F3;
  --c-type: #0EB1D2;
  --c-type-soft: #D4F1F8;

  /* Shadows & sizing */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-digi); text-decoration: none; }
a:hover { color: var(--c-digi-dark); }

button { font-family: inherit; cursor: pointer; }

/* ───── Header ───── */
.dk-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 50;
}
.dk-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.dk-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--c-text);
}
.dk-logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-digi), var(--c-robo));
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
}
.dk-nav { display: flex; gap: 24px; align-items: center; }
.dk-nav a { color: var(--c-text-soft); font-weight: 500; font-size: 15px; }
.dk-nav a:hover { color: var(--c-digi); }

/* ───── Hero (paars) ───── */
.dk-hero {
  background: var(--c-digi);
  color: white;
  padding: 80px 24px;
  text-align: center;
}
.dk-hero-inner { max-width: 880px; margin: 0 auto; }
.dk-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--c-digi-soft);
  margin-bottom: 20px;
}
.dk-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: white;
}
.dk-hero p {
  font-size: 18px; line-height: 1.6;
  color: var(--c-digi-soft);
  max-width: 640px; margin: 0 auto 32px;
}

/* ───── Buttons ───── */
.dk-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  border: none; cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}
.dk-btn:hover { transform: translateY(-1px); }
.dk-btn-primary {
  background: var(--c-digi); color: white;
  box-shadow: var(--shadow-md);
}
.dk-btn-primary:hover { background: var(--c-digi-dark); color: white; }
.dk-btn-white {
  background: white; color: var(--c-digi-dark);
  box-shadow: var(--shadow-md);
}
.dk-btn-white:hover { background: #F8FAFC; color: var(--c-digi-dark); }
.dk-btn-ghost {
  background: transparent; color: white;
  border: 2px solid white;
}
.dk-btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; }
.dk-btn-outline {
  background: transparent; color: var(--c-digi);
  border: 2px solid var(--c-digi);
}
.dk-btn-outline:hover { background: var(--c-digi-soft); color: var(--c-digi-dark); }

.dk-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ───── Sections ───── */
.dk-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}
.dk-section-fill {
  background: var(--c-bg);
  padding: 60px 24px;
}
.dk-section-soft {
  background: var(--c-digi-soft);
  padding: 60px 24px;
}
.dk-section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800; letter-spacing: -0.01em;
  text-align: center; margin: 0 0 12px;
}
.dk-section .lead {
  color: var(--c-text-soft);
  text-align: center; font-size: 17px;
  max-width: 640px; margin: 0 auto 48px;
}

/* ───── Platform cards ───── */
.dk-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.dk-platform-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
  display: block;
}
.dk-platform-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--accent, var(--c-digi));
}
.dk-platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--c-text);
}
.dk-platform-card[data-platform="robo"]   { --accent: var(--c-robo);   --accent-soft: var(--c-robo-soft); }
.dk-platform-card[data-platform="office"] { --accent: var(--c-office); --accent-soft: var(--c-office-soft); }
.dk-platform-card[data-platform="media"]  { --accent: var(--c-media);  --accent-soft: var(--c-media-soft); }
.dk-platform-card[data-platform="design"] { --accent: var(--c-design); --accent-soft: var(--c-design-soft); }
.dk-platform-card[data-platform="type"]   { --accent: var(--c-type);   --accent-soft: var(--c-type-soft); }

.dk-mascot-frame {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.dk-mascot-frame svg {
  max-height: 180px;
  max-width: 100%;
  width: auto; height: auto;
}
.dk-platform-card h3 {
  margin: 0 0 8px;
  font-size: 22px; font-weight: 700;
  text-align: center;
}
.dk-platform-card .desc {
  margin: 0 0 16px;
  color: var(--c-text-soft);
  font-size: 14px;
  text-align: center;
}
.dk-platform-card .meta {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

.dk-badge-soon {
  display: inline-block;
  background: var(--c-text-mute);
  color: white;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 8px;
}
.dk-badge-live {
  background: #10B981;
}

/* ───── Roles (rolkiezer) ───── */
.dk-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.dk-role-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  color: var(--c-text);
  display: block;
  box-shadow: var(--shadow-sm);
}
.dk-role-card:hover {
  border-color: var(--c-digi);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--c-text);
  text-decoration: none;
}
.dk-role-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  display: block;
}
.dk-role-card h3 {
  margin: 0 0 6px;
  font-size: 22px; font-weight: 700;
}
.dk-role-card p {
  margin: 0; color: var(--c-text-soft); font-size: 14px;
}

/* ───── Auth (login) ───── */
.dk-auth-page {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, var(--c-bg), var(--c-digi-soft));
}
.dk-auth-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.dk-auth-card h1 {
  margin: 0 0 8px;
  font-size: 26px; font-weight: 800;
}
.dk-auth-card .sub {
  color: var(--c-text-soft);
  font-size: 15px;
  margin: 0 0 24px;
}
.dk-form-row { margin-bottom: 16px; }
.dk-form-row label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.dk-form-row input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: inherit;
  transition: border-color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
}
.dk-form-row input:focus {
  outline: none;
  border-color: var(--c-digi);
  background: white;
  box-shadow: 0 0 0 3px var(--c-digi-soft);
}
.dk-auth-btn {
  width: 100%;
  background: var(--c-digi); color: white;
  border: none;
  padding: 14px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius);
  margin-top: 8px;
}
.dk-auth-btn:hover { background: var(--c-digi-dark); }
.dk-auth-back {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--c-text-soft);
}

/* ───── Dashboards ───── */
.dk-dash {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
}
.dk-dash-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap;
  gap: 16px; margin-bottom: 28px;
}
.dk-dash-header h1 {
  margin: 0 0 4px;
  font-size: 28px; font-weight: 800; letter-spacing: -0.01em;
}
.dk-dash-header .sub { color: var(--c-text-soft); margin: 0; }
.dk-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.dk-user-chip button {
  background: none; border: none;
  color: var(--c-text-soft);
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}

.dk-section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--c-text-soft);
  font-weight: 700;
  margin: 32px 0 14px;
}

/* ───── Stats / admin ───── */
.dk-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.dk-stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}
.dk-stat .num {
  font-size: 30px; font-weight: 800;
  color: var(--c-digi);
  line-height: 1; margin-bottom: 4px;
}
.dk-stat .lbl {
  font-size: 13px; color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px; font-weight: 600;
}

.dk-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dk-table th, .dk-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--c-border);
}
.dk-table th {
  background: var(--c-digi);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.4px;
}
.dk-table tr:last-child td { border-bottom: none; }

.dk-platform-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px; font-weight: 600;
  border-radius: 999px;
}
.dk-platform-tag-robo   { background: var(--c-robo-soft);   color: var(--c-robo); }
.dk-platform-tag-office { background: var(--c-office-soft); color: var(--c-office); }
.dk-platform-tag-media  { background: var(--c-media-soft);  color: var(--c-media); }
.dk-platform-tag-design { background: var(--c-design-soft); color: var(--c-design); }
.dk-platform-tag-type   { background: var(--c-type-soft);   color: var(--c-type); }

.dk-error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 14px;
  display: none;
}
.dk-error.show { display: block; }

.dk-info {
  background: var(--c-digi-soft);
  color: var(--c-digi-dark);
  border: 1px solid #DDD6FE;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ───── Footer ───── */
.dk-footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
  margin-top: 60px;
  padding: 32px 24px;
  text-align: center;
  color: var(--c-text-soft);
  font-size: 14px;
}
.dk-footer a { color: var(--c-text-soft); margin: 0 10px; }
.dk-footer a:hover { color: var(--c-digi); }

/* Responsiveness */
@media (max-width: 720px) {
  .dk-section { padding: 40px 20px; }
  .dk-hero { padding: 60px 20px; }
  .dk-cta-row { flex-direction: column; }
  .dk-cta-row .dk-btn { width: 100%; }
}
