/* =========================================
   1. VARIABLES & CONFIGURATION
   ========================================= */
:root {
    /* Kleuren */
    --main-color: var(--bs-danger); /* Rood */
    --main-color-light: #ff9f8a;    /* Voor gradients */
    --chill-color: #333;            /* Donkere tekst */
    --text-muted: #666;             /* Lichte tekst */
    --bg-light: #f8f9fa;            /* Achtergrond blokken */
    --bg-white: #ffffff;
    
    /* Borders & Lines */
    --border-color: #e9ecef;
    --border-radius: 6px;
    --border-radius-pill: 6px;

    /* Spacing & Layout */
    --wrapper-width: 40em; /* Of breder: 1200px voor desktop */
    --gap-grid: 1.5em;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-hover: 0 6px 15px rgba(0,0,0,0.15);
    --transition-base: all 0.2s ease;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box; /* Essentieel voor grids en padding */
}

body {
    font-size: 1em;
    color: var(--chill-color);
    line-height: 1.6;
    margin: 0;
}

/* Typography */
h1 { font-size: 4em; text-align: center; margin-bottom: 0.5em; }
h2 { font-size: 3em; font-weight: 500; margin: 1em 0 0.5em; }
h3 { font-size: 2em; color: var(--main-color); line-height: 1.3; margin: 1em 0 0.5em; }

a {
    color: var(--chill-color);
    font-weight: 700;
    transition: var(--transition-base);
}

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

img, iframe {
    max-width: 100%;
    margin: 1em auto;
}

blockquote {
    background: #f9f9f9;
    border-left: 5px solid var(--main-color);
    margin: 1.5em 0;
    padding: 1em 1.5em;
    font-style: italic;
    color: #555;
    font-size: 0.95em;
}

/* Layout Wrapper */
.wrapper {
    max-width: var(--wrapper-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; /* Voorkomt dat tekst tegen de rand plakt op mobiel */
}

main { padding-bottom: 80px; }

/* =========================================
   3. SHARED COMPONENTS (The "Uniformity" Layer)
   ========================================= */

/* --- Generic Card Style --- */
/* Dit vervangt de dubbele code in news-card, org-card, team-member etc. */
.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.5em;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%; /* Zorgt voor gelijke hoogte in grids */
    text-decoration: none; /* Voor als de hele card een link is */
    color: inherit;
}

/* Hover effect voor alle kaarten */
.news-card:hover,
.initiative-card:hover,
.org-card:hover,
.person-card:hover,
.team-member:hover,
.rss-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--main-color);
    text-decoration: none;
    color: inherit;
}

/* --- Generic Pill Buttons (.main-item, .quick-link, etc) --- */
.btn-pill {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

/* Specifieke knop varianten */
.main-item {
    background-color: var(--main-color);
    color: #fff;
    padding: 1em 2em;
    font-size: 1.2em;
    box-shadow: var(--shadow-sm);
    margin: 0.5em;
}
.main-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #fff;
    filter: brightness(110%);
}

.meta-btn, .quick-link-btn {
    background: #fff;
    border-color: #ddd;
    color: var(--chill-color);
    font-size: 0.9em;
}
.meta-btn:hover, .quick-link-btn:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

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

/* --- Navigation & Footer --- */
nav {
    background-color: #000;
    padding: 1em;
}
nav a {
    color: #fff;
    font-size: 1.2em;
    padding: 0 0.4em;
    text-decoration: none;
}

footer {
    background-color: var(--main-color);
    color: #fff;
    min-height: 200px;
    padding: 3em 0;
}
footer a { color: #fff; font-weight: 900; }
.footer-box { display: flex; flex-wrap: wrap; gap: 2em; }
.footer-box__right { margin-left: auto; }

/* --- Hero Banner --- */
.hero-banner {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-light) 100%); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2em;
}
.hero-logo-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5em 3em;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.hero-logo-box img { max-height: 120px; width: auto; margin: 0; display: block; }

.mission-statement {
    font-size: 1.6em; 
    line-height: 1.4;
    text-align: center;
    color: var(--main-color); 
    font-weight: 300; 
    font-style: italic;
    max-width: 900px;
    margin: 2rem auto 1rem auto; 
}

/* --- Grids --- */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Aangepast naar 300px voor desktop responsive */
    gap: var(--gap-grid);
    margin-top: 1em;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--gap-grid);
    margin: 2em 0;
    list-style: none; padding: 0;
}

.people-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 1em;
    list-style: none; padding: 0;
    margin: 2em 0;
}

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

/* Organisatie 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.8; transition: var(--transition-base);
}
.org-card:hover .org-logo-box img { filter: grayscale(0%); opacity: 1; }
.org-title { text-align: center; font-weight: 600; font-size: 0.9em; }

/* Nieuws Cards */
.news-card h3 { margin-top: 0; font-size: 1.4em; }
.news-card__meta { font-size: 0.85em; color: var(--text-muted); margin-bottom: 0.5em; }
.news-card__footer { margin-top: auto; align-self: flex-end; }

/* Personen / Team */
.person-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.8em; }
.person-name { font-weight: 700; font-size: 1.1em; line-height: 1.3; }
.lid-badge { font-size: 0.75em; color: #999; background: #f8f8f8; padding: 2px 6px; border-radius: 4px; margin-left: 10px; }
.person-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* --- Tags --- */
.tag-cloud {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8em; margin: 2em 0;
}
a.tag {
    display: inline-block;
    padding: 0.4em 1em;
    border-radius: var(--border-radius-pill);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-bottom-width: 3px;
    color: var(--chill-color);
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}
a.tag:hover { transform: translateY(-2px); background-color: #fff; }

/* Tag Kleuren */
.tag.makers { border-bottom-color: var(--bs-pink); }
.tag.open-access { border-bottom-color: var(--bs-danger); }
.tag.open-source { border-bottom-color: var(--bs-warning); }
.tag.open-design { border-bottom-color: var(--bs-info); }
.tag.open-glam { border-bottom-color: var(--bs-success); }
.tag.open-onderwijs { border-bottom-color: var(--bs-teal); }
.tag.open-onderzoek { border-bottom-color: var(--bs-primary); }
.tag.open-overheid { border-bottom-color: var(--bs-purple); }
.tag.open-zorg { border-bottom-color: var(--bs-orange); }
.tag.unknown-theme { border-bottom-color: var(--bs-gray); }

/* Compacte tags in cards */
.person-card .tag { font-size: 0.7em; padding: 0.2em 0.6em; pointer-events: none; }


/* --- Page Specific: Tag Super Page --- */
.quick-links {
    display: flex; flex-wrap: wrap; gap: 0.8em; margin-bottom: 3em; padding: 1.5em;
    background: var(--bg-light); border-radius: 8px; border: 1px solid var(--border-color); align-items: center;
}
.quick-links-title { font-weight: 700; margin-right: 0.5em; color: var(--text-muted); font-size: 0.85em; text-transform: uppercase; }
.wikidata-badge {
    font-size: 0.85em; background: var(--bg-light); padding: 4px 10px; border-radius: 4px; color: #555; 
    border: 1px solid var(--border-color); display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}

/* --- Page Specific: Member Detail --- */
.connection-box {
    background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5em; margin: 2em 0;
}
.connection-title {
    font-size: 0.85em; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.5em; font-weight: bold;
}
.role-tag {
    display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.85em; font-weight: 600; margin-bottom: 0.5em; margin-right: 0.5em;
}
.role-board { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.role-cc { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }

.rss-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1em; }
.rss-item-card p { font-size: 0.9em; color: var(--text-muted); margin: 0; }
.related-members-section { margin-top: 4em; padding-top: 2em; border-top: 1px solid var(--border-color); }


/* --- Forms (Laposta) --- */
.newsletter-box {
    background-color: var(--bg-light); padding: 2em; border-radius: 8px; margin: 3em auto; max-width: 600px; text-align: center; border: 1px solid var(--border-color);
}
.newsletter-box form { max-width: 350px; margin: 1em auto; text-align: left; }
.newsletter-box input[type="text"], .newsletter-box input[type="email"] {
    width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 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 { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* --- Mobile --- */
@media screen and (max-width: 680px) {
    .footer-box { display: block; }
    .footer-box__right { margin-top: 2em; margin-left: 0; }
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
}