/* =========================================
   1. VARIABLES & CONFIGURATION
   ========================================= */
:root {
    /* Kleuren */
    --main-color: var(--bs-danger); 
    
    --main-color-light: #ff9f8a;    
    --chill-color: #2c3e50;
    --text-body: #4a4a4a;          
    --text-muted: #7f8c8d;             
    
    --bg-light: #f8f9fa;            
    --bg-white: #ffffff;
    
    /* Borders & Lines */
    --border-color: #e9ecef;
    --border-radius: 8px;          
    --border-radius-pill: 8px;    

    /* Spacing & Layout */
    --wrapper-width: 1100px;        
    --gap-grid: 2rem;               

    /* Shadows (Modern & Soft) */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    --transition-base: all 0.2s ease-in-out;
    
    /* Fonts (NIEUW: Professionele System Stack) */
    --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: var(--font-family-base); /* Of een specifieke header font */
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box; 
}

body {
    font-family: var(--font-family-base); 
    font-size: 16px;                      /* Goede leesbare basis */
    color: var(--text-body);
    line-height: 1.7;                
    margin: 0;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;  /* Scherpere tekst op Mac */
}

/* Typography - Gebalanceerder */
h1, h2, h3, h4 {
    font-family: var(--font-family-heading);
    color: var(--chill-color);
    margin-top: 0;
    line-height: 1.2;
}

h1 { 
    font-size: 3rem;   
    font-weight: 800; 
    text-align: center; 
    margin-bottom: 0.5em; 
    letter-spacing: -0.02em;
}

h2 { 
    font-size: 2rem;  
    font-weight: 700; 
    margin: 2em 0 1em; /* Meer ruimte boven kopjes */
}

h3 { 
    font-size: 1.5rem; 
    color: var(--main-color); 
    font-weight: 600;
    margin: 1.5em 0 0.5em; 
}

a {
    color: var(--chill-color);
    font-weight: 600;
    text-decoration: none; /* Cleaner zonder onderstreping (tot hover) */
    transition: var(--transition-base);
}

a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

img, iframe {
    max-width: 100%;
    height: auto;
    margin: 1em auto;
    display: block; /* Voorkomt layout shifts */
}

blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--main-color);
    margin: 2em 0;
    padding: 1.5em 2em;
    font-style: italic;
    color: var(--text-body);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Layout Wrapper */
.wrapper {
    max-width: var(--wrapper-width);
    margin: 0 auto;
    padding: 0 1.5rem; 
}

main { padding-bottom: 80px; }

/* =========================================
   3. SHARED COMPONENTS (Card System)
   ========================================= */

/* --- Generic Card Style --- */
.news-card,
.initiative-card,
.org-card,
.person-card,
.team-member,
.rss-item-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%; 
    text-decoration: none !important;
    color: inherit;
    position: relative; /* Voor click area */
}

/* Hover effect: Card komt iets omhoog, schaduw wordt zachter */
.news-card:hover,
.initiative-card:hover,
.org-card:hover,
.person-card:hover,
.team-member:hover,
.rss-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent; /* Rand verdwijnt, schaduw neemt over */
    color: inherit;
}

/* --- Buttons (.main-item, etc) --- */
/* Moderne, platte knoppen */
.main-item {
    display: inline-block;
    background-color: var(--main-color);
    color: #fff !important;
    padding: 0.8em 2em;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition-base);
    border: 2px solid var(--main-color); /* Voor outline varianten later */
}

.main-item:hover {
    background-color: #fff;
    color: var(--main-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.meta-btn, .quick-link-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--border-radius);
    background: #fff;
    border: 1px solid #ddd;
    color: var(--chill-color);
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
}

.meta-btn:hover, .quick-link-btn:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    text-decoration: none;
}

/* =========================================
   4. SPECIFIC COMPONENT OVERRIDES
   ========================================= */

/* --- Navigation --- */
nav {
    background-color: var(--chill-color); 
    padding: 1em 0;
    box-shadow: var(--shadow-sm);
}

/* Zorg dat de nav content ook binnen de .wrapper breedte valt */
nav .wrapper, nav > div { 
    max-width: var(--wrapper-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}

nav a {
    color: rgba(255,255,255,0.85);
    font-size: 1.05em;
    padding: 0.5em 0.8em;
    border-radius: 4px;
    font-weight: 500;
}

nav a:hover, nav a.active {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* --- Footer --- */
footer {
    background-color: var(--chill-color); /* Matcht nu met nav */
    color: #fff;
    padding: 4em 0;
    margin-top: auto;
}
footer a { color: #fff; opacity: 0.8; }
footer a:hover { opacity: 1; text-decoration: underline; }
.footer-box { display: flex; flex-wrap: wrap; gap: 3em; }

/* --- Hero Banner --- */
.hero-banner {
    width: 100%;
    padding: 4em 1em; /* Flexibele hoogte op basis van padding */
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-light) 100%); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3em;
}
.hero-logo-box {
    background: #fff;
    padding: 2em 3em;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mission-statement {
    font-size: 1.5em; 
    line-height: 1.5;
    text-align: center;
    color: var(--bs-danger); 
    font-weight: 300; 
    max-width: 800px;
    margin: 2rem auto; 
}

/* --- Grids --- */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--gap-grid);
    margin-top: 1.5em;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

/* --- Card Content Specifics --- */

/* Org Logos */
.org-logo-box {
    width: 100%; height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 1em;
}
.org-logo-box img {
    filter: grayscale(100%); opacity: 0.7; transition: var(--transition-base); max-height: 60px;
}
.org-card:hover .org-logo-box img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }
.org-title { text-align: center; font-weight: 700; font-size: 0.95em; color: var(--chill-color); }

/* Nieuws Cards */
.news-card h3 { margin-top: 0; font-size: 1.25em; line-height: 1.4; }
.news-card h3 a { color: var(--chill-color); }
.news-card:hover h3 a { color: var(--main-color); }

.news-card__meta { 
    font-size: 0.8em; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: var(--text-muted); 
    margin-bottom: 0.8em; 
    font-weight: 600;
}

/* Personen */
.person-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5em; }
.person-name { font-weight: 700; font-size: 1.1em; color: var(--chill-color); }
.lid-badge { font-size: 0.7em; color: var(--text-muted); background: var(--bg-light); padding: 3px 6px; border-radius: 4px; }

/* --- Tags --- */
.tag-cloud {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8em; margin: 2em 0;
}

a.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.8em;
    border-radius: var(--border-radius); 
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-bottom: 3px solid var(--border-color); /* Default kleur */
    color: var(--text-body);
    font-size: 0.85em;
    font-weight: 600;
    transition: var(--transition-base);
}

a.tag:hover { 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-sm); 
    color: #000;
}

/* Tag Kleuren (Consistent) */
.tag.makers { border-bottom-color: #e83e8c; }
.tag.open-access { border-bottom-color: #dc3545; }
.tag.open-source { border-bottom-color: #ffc107; }
.tag.open-design { border-bottom-color: #0dcaf0; }
.tag.open-glam { border-bottom-color: #198754; }
.tag.open-onderwijs { border-bottom-color: #20c997; }
.tag.open-onderzoek { border-bottom-color: #0d6efd; }
.tag.open-overheid { border-bottom-color: #6610f2; }
.tag.open-zorg { border-bottom-color: #fd7e14; }

/* --- Page Specifics --- */
.quick-links {
    display: flex; flex-wrap: wrap; gap: 0.8em; margin-bottom: 3em; padding: 1em 1.5em;
    background: var(--bg-white); border-radius: var(--border-radius); 
    border: 1px solid var(--border-color); align-items: center;
    box-shadow: var(--shadow-sm);
}
.quick-links-title { font-weight: 700; margin-right: 1em; color: var(--chill-color); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; }

.wikidata-badge {
    font-size: 0.8em; background: #fff; padding: 4px 10px; border-radius: 20px; 
    color: var(--text-muted); border: 1px solid var(--border-color); 
    display: inline-flex; align-items: center; gap: 6px;
}

.connection-box {
    background-color: var(--bg-light); 
    border: 1px solid transparent; /* Geen harde rand */
    border-radius: var(--border-radius); 
    padding: 2em; 
    margin: 2em 0;
}

/* --- Highlight Section (Nieuws) --- */
.highlight-section {
    background-color: #fff; 
    padding: 2em;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--main-color);
    margin-bottom: 4em;
    box-shadow: var(--shadow-sm);
}

/* --- Forms --- */
.newsletter-box {
    background-color: #fff; padding: 3em 2em; border-radius: 12px; 
    margin: 3em auto; max-width: 600px; text-align: center; 
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.newsletter-box input[type="text"], .newsletter-box input[type="email"] {
    width: 100%; padding: 12px 16px; 
    border: 1px solid #ced4da; border-radius: var(--border-radius); 
    margin-bottom: 1em; font-size: 1em;
}

.newsletter-box input[type="submit"] {
    background-color: var(--main-color); color: #fff; border: none; padding: 12px 24px; 
    font-size: 1.1em; font-weight: 700; border-radius: var(--border-radius-pill); 
    cursor: pointer; width: 100%; transition: var(--transition-base);
}
.newsletter-box input[type="submit"]:hover { background-color: #c02871; }


/* =========================================
   5. UTILITIES (Keep these!)
   ========================================= */
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }
.mb-xl { margin-bottom: 4rem; }
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }

.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-left { text-align: left !important; }
.font-bold { font-weight: 700; }
.ml-auto { margin-left: auto; }
.mt-auto { margin-top: auto; }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.tag-group { display: flex; gap: 0.6em; flex-wrap: wrap; }
.gap-sm { gap: 0.5em; }
.gap-md { gap: 1em; }

.container-narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.container-center { text-align: center; margin-left: auto; margin-right: auto; }
.source-box { text-align: center; max-width: 600px; margin: 0 auto; }

.content-body { font-size: 1.125em; line-height: 1.8; color: var(--text-body); }
.content-body p { margin-bottom: 1.5em; }

.page-meta-header {
    font-size: 1.1em; color: var(--text-muted); font-weight: 600; 
    display: block; margin-bottom: 0.5em; text-transform: uppercase; letter-spacing: 1px;
}

hr { border-top: 1px solid var(--border-color); margin: 3rem 0; opacity: 0.6; }
hr.large-gap { margin-top: 80px; margin-bottom: 60px; }

/* Mobile */
@media screen and (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .wrapper { padding: 0 1rem; }
    .hero-logo-box { padding: 1.5em; }
    .footer-box { flex-direction: column; gap: 2em; }
}