/*
Theme Name: Vaardighedenapp
Theme URI: https://vaardighedenapp.nl
Author: Vaardighedenapp
Description: Een learning management systeem voor zelfregulerend leren. Gebaseerd op Zimmerman & Martinez-Pons (1986) en Sebesta & Bray Speth (2017).
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: vaardighedenapp
Tags: learning, education, custom-menu, custom-logo, featured-images
*/

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --yellow:         #F5C842;
  --yellow-light:   #FDE97A;
  --yellow-dark:    #D9A800;
  --coral:          #F07060;
  --coral-light:    #FAB0A5;
  --coral-dark:     #C94030;
  --blue:           #AAD4E8;
  --blue-mid:       #5BAFD6;
  --blue-dark:      #2275A0;
  --white:          #FFFFFF;
  --off-white:      #FDF8EE;
  --bg:             #F5F2EA;
  --sand-mid:       #EEEBE3;
  --navy:           #1A2340;
  --text-primary:   #1A2340;
  --text-secondary: #5A5A72;
  --text-hint:      #9898A8;
  --border:         rgba(26,35,64,0.09);
  --success:        #2ABF72;
  --success-light:  #E8FAF2;

  --font: 'Nunito', sans-serif;

  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  12px;
  --r-lg:  14px;
  --r-xl:  16px;
  --r-2xl: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(26,35,64,0.08), 0 0 0 1px rgba(26,35,64,0.06);
  --shadow-md: 0 4px 20px rgba(26,35,64,0.12), 0 1px 4px rgba(26,35,64,0.06);
  --shadow-lg: 0 8px 32px rgba(26,35,64,0.16), 0 2px 8px rgba(26,35,64,0.08);

  --nav-width: 260px;
  --topnav-height: 64px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY SCALE
============================================================ */
.t-display { font-size: 48px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; }
.t-h1      { font-size: 32px; font-weight: 900; letter-spacing: -0.8px; line-height: 1.1; }
.t-h2      { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.15; }
.t-h3      { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.25; }
.t-h4      { font-size: 16px; font-weight: 800; line-height: 1.35; }
.t-h5      { font-size: 15px; font-weight: 700; line-height: 1.4; }
.t-body-lg { font-size: 16px; font-weight: 500; line-height: 1.7; color: var(--text-secondary); }
.t-body    { font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--text-secondary); }
.t-caption { font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--text-hint); }
.t-label   { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-hint); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--r-md);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  cursor: pointer; border: none; transition: opacity .15s, transform .1s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--coral); color: white; }
.btn-yellow  { background: var(--yellow); color: var(--text-primary); }
.btn-blue    { background: var(--blue); color: var(--blue-dark); }
.btn-outline { background: white; color: var(--text-primary); border: 2px solid var(--border); }
.btn-navy    { background: var(--navy); color: white; }
.btn-ghost   { background: transparent; color: var(--text-secondary); border: 2px solid var(--border); }
.btn-sm  { padding: 7px 16px; font-size: 12px; border-radius: 9px; }
.btn-lg  { padding: 14px 30px; font-size: 16px; border-radius: var(--r-lg); }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }

/* ============================================================
   BADGES
============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.badge-yellow  { background: #FFF0B0; color: var(--yellow-dark); }
.badge-coral   { background: #FFE8E5; color: var(--coral-dark); }
.badge-blue    { background: #D8EFF8; color: var(--blue-dark); }
.badge-outline { background: white; color: var(--text-secondary); border: 1.5px solid var(--border); }
.badge-navy    { background: var(--navy); color: white; }

/* ============================================================
   CARDS
============================================================ */
.card {
  background: white;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  padding: 22px;
}

/* ============================================================
   ALERTS
============================================================ */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--r-lg);
  font-size: 13px; font-weight: 600; line-height: 1.5;
}
.alert-success { background: var(--success-light); border: 1.5px solid #A0E0C2; color: #1A6B3F; }
.alert-info    { background: #D8EFF8; border: 1.5px solid #8CCDE8; color: var(--blue-dark); }
.alert-warning { background: #FFF8CC; border: 1.5px solid #FFD84A; color: var(--yellow-dark); }
.alert-error   { background: #FFF0EE; border: 1.5px solid #F5A098; color: var(--coral-dark); }

/* ============================================================
   PROGRESS BARS
============================================================ */
.prog-track {
  height: 8px; background: var(--sand-mid);
  border-radius: 8px; overflow: hidden;
}
.prog-fill { height: 100%; border-radius: 8px; background: var(--coral); }
.prog-fill-done   { background: var(--blue-mid); }
.prog-fill-yellow { background: var(--yellow-dark); }

/* ============================================================
   FORMS
============================================================ */
.input-field {
  padding: 11px 16px; border-radius: var(--r-md);
  border: 2px solid var(--border); background: white;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--text-primary); outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.input-field:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(240,112,96,.12);
}
.input-field::placeholder { color: var(--text-hint); font-weight: 500; }

/* ============================================================
   UTILITY
============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { max-width: 1200px; padding: 0 48px; }
.section-title { font-size: 24px; font-weight: 900; letter-spacing: -.5px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.see-all { font-size: 13px; font-weight: 700; color: var(--coral); cursor: pointer; }

/* ============================================================
   ENTRY CONTENT (WordPress standaard blokken)
============================================================ */
.entry-content h1 { font-size: 32px; font-weight: 900; letter-spacing: -.8px; margin-bottom: 16px; }
.entry-content h2 { font-size: 24px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 14px; margin-top: 32px; }
.entry-content h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; margin-top: 28px; }
.entry-content h4 { font-size: 16px; font-weight: 800; margin-bottom: 10px; margin-top: 24px; }
.entry-content p  { font-size: 15px; font-weight: 500; line-height: 1.75; color: var(--text-secondary); margin-bottom: 16px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--text-secondary); margin-bottom: 6px; }
.entry-content a  { color: var(--coral); text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--yellow); padding: 14px 20px;
  background: var(--off-white); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 20px 0;
}
.entry-content blockquote p { margin: 0; font-style: italic; }
.entry-content img { border-radius: var(--r-xl); margin: 24px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.entry-content th, .entry-content td { padding: 10px 16px; border: 1px solid var(--border); font-size: 14px; }
.entry-content th { background: var(--off-white); font-weight: 800; }
