/* Cataract — Licht medisch design
   Geïnspireerd door LUMC, Erasmus MC, Mayo Clinic */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:wght@400;700;900&display=swap');

:root {
    --bg: #f7f9fc;
    --bg-white: #ffffff;
    --bg-light: #eef2f7;
    --bg-blue: #e8f0fe;
    --bg-dark: #1a365d;
    --bg-nav: #ffffff;
    --text: #2d3748;
    --text-bright: #1a202c;
    --text-dim: #718096;
    --text-muted: #a0aec0;
    --accent: #2b6cb0;
    --accent-hover: #2c5282;
    --accent-light: #ebf4ff;
    --teal: #2c7a7b;
    --teal-light: #e6fffa;
    --green: #276749;
    --green-light: #f0fff4;
    --orange: #c05621;
    --orange-light: #fffaf0;
    --red: #c53030;
    --red-light: #fff5f5;
    --purple: #6b46c1;
    --purple-light: #faf5ff;
    --border: #e2e8f0;
    --border-dark: #cbd5e0;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 14px rgba(0,0,0,0.08);
    --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-mono: 'Cascadia Code', 'JetBrains Mono', monospace;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; }
strong { color: var(--text-bright); }

/* ═══ NAVIGATION ═══ */
nav {
    background: var(--bg-nav);
    border-bottom: 2px solid var(--accent);
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--bg-dark);
    letter-spacing: 0.3px;
}
.nav-logo span { color: var(--accent); }
.nav-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 1px 7px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    gap: 2px;
    margin-left: 28px;
}
.nav-links a {
    color: var(--text-dim);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-links a:hover {
    color: var(--text-bright);
    background: var(--bg-light);
    text-decoration: none;
}
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
}
.nav-dc {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}
.nav-dc a { color: var(--text-dim); font-weight: 500; }

/* ═══ HERO ═══ */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 60%, #3182ce 100%);
    padding: 64px 32px 52px;
    text-align: center;
    position: relative;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero h1 .hl { color: #90cdf4; }
.hero .subtitle {
    font-size: 17px;
    color: #bee3f8;
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.65;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 900;
    color: #fff;
}
.hero-stat .label {
    font-size: 11px;
    color: #bee3f8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 2px;
}

/* ═══ PAGE HEADER ═══ */
.page-header {
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    padding: 44px 32px 32px;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}
.page-header p {
    color: #bee3f8;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* ═══ CONTAINER ═══ */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 28px;
}

/* ═══ SECTION TITLES ═══ */
.section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--bg-dark);
    margin-bottom: 6px;
}
.section-sub {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* ═══ CARDS ═══ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-dark);
}
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 22px;
}
.card-icon.blue { background: var(--accent-light); color: var(--accent); }
.card-icon.green { background: var(--green-light); color: var(--green); }
.card-icon.orange { background: var(--orange-light); color: var(--orange); }
.card-icon.red { background: var(--red-light); color: var(--red); }
.card-icon.purple { background: var(--purple-light); color: var(--purple); }
.card-icon.teal { background: var(--teal-light); color: var(--teal); }
.card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
}
.card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }
.card ul { color: var(--text-dim); font-size: 13.5px; padding-left: 18px; line-height: 1.65; }
.card ul li { margin-bottom: 3px; }
.card-link { cursor: pointer; }
.card-link:hover { border-color: var(--accent); }
.card-link h3::after { content: ' \2192'; color: var(--accent); }

/* ═══ INFO BLOCKS ═══ */
.info-block {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.info-block h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-block h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin: 18px 0 8px;
    color: var(--accent);
}
.info-block p { margin-bottom: 10px; font-size: 14px; line-height: 1.75; }
.info-block ul { font-size: 14px; padding-left: 20px; line-height: 1.75; }
.info-block ul li { margin-bottom: 4px; }
.info-block ol { font-size: 14px; padding-left: 20px; line-height: 1.75; }

/* ═══ BADGES ═══ */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.badge.green { background: var(--green-light); color: var(--green); border: 1px solid #c6f6d5; }
.badge.orange { background: var(--orange-light); color: var(--orange); border: 1px solid #feebc8; }
.badge.red { background: var(--red-light); color: var(--red); border: 1px solid #fed7d7; }
.badge.blue { background: var(--accent-light); color: var(--accent); border: 1px solid #bee3f8; }
.badge.purple { background: var(--purple-light); color: var(--purple); border: 1px solid #e9d8fd; }
.badge.teal { background: var(--teal-light); color: var(--teal); border: 1px solid #b2f5ea; }

/* Evidence badges */
.evidence {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.evidence.high { background: var(--green-light); color: var(--green); border: 1px solid #c6f6d5; }
.evidence.moderate { background: var(--orange-light); color: var(--orange); border: 1px solid #feebc8; }
.evidence.emerging { background: var(--purple-light); color: var(--purple); border: 1px solid #e9d8fd; }
.evidence.preclinical { background: var(--accent-light); color: var(--accent); border: 1px solid #bee3f8; }

/* ═══ TABLES ═══ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin: 14px 0;
    background: var(--bg-white);
}
th {
    text-align: left;
    padding: 10px 14px;
    background: var(--bg-light);
    color: var(--text-dim);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 2px solid var(--border);
}
td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
tr:hover td { background: var(--accent-light); }

/* ═══ CITATIONS ═══ */
.ref {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    vertical-align: super;
    cursor: help;
    margin-left: 1px;
}
.sources {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-top: 18px;
}
.sources h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.sources ol { padding-left: 22px; font-size: 12px; color: var(--text-dim); line-height: 1.8; }
.sources ol li { margin-bottom: 3px; }

/* ═══ COLLAPSIBLE ═══ */
.collapsible {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.collapsible::after {
    content: 'expand_more';
    font-family: 'Material Icons';
    font-size: 20px;
    color: var(--text-muted);
    transition: transform 0.3s;
}
.collapsible.open::after { transform: rotate(180deg); }
.collapsible-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.collapsible-content.open { max-height: 3000px; }

/* ═══ TIMELINE ═══ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-dark);
}
.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}
.timeline-item .year {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}
.timeline-item h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
}
.timeline-item p { font-size: 13px; color: var(--text-dim); line-height: 1.65; }

/* ═══ STAT GRID ═══ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.stat-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-align: center;
}
.stat-item .num {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--accent);
}
.stat-item .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* ═══ ALERT BOXES ═══ */
.alert {
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 14px 0;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.65;
}
.alert .material-icons { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert.info { background: var(--accent-light); border-left: 4px solid var(--accent); color: var(--text); }
.alert.info .material-icons { color: var(--accent); }
.alert.warning { background: var(--orange-light); border-left: 4px solid var(--orange); color: var(--text); }
.alert.warning .material-icons { color: var(--orange); }
.alert.success { background: var(--green-light); border-left: 4px solid var(--green); color: var(--text); }
.alert.success .material-icons { color: var(--green); }
.alert.danger { background: var(--red-light); border-left: 4px solid var(--red); color: var(--text); }
.alert.danger .material-icons { color: var(--red); }

/* ═══ KLINIEK CARDS ═══ */
.kliniek-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 14px;
    display: flex;
    gap: 18px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.kliniek-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.kliniek-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.kliniek-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
}
.kliniek-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.kliniek-card .meta {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.kliniek-card .meta span {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.kliniek-card .meta .material-icons { font-size: 14px; }

/* ═══ FOOTER ═══ */
footer {
    background: var(--bg-dark);
    color: #bee3f8;
    padding: 32px;
    text-align: center;
    font-size: 12px;
}
footer .disclaimer {
    max-width: 600px;
    margin: 0 auto 14px;
    line-height: 1.6;
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    color: #bee3f8;
    font-size: 11px;
}
footer a { color: #90cdf4; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    nav { padding: 0 16px; }
    .nav-links { display: none; }
    .hero { padding: 44px 16px 36px; }
    .hero h1 { font-size: 32px; }
    .hero-stats { gap: 24px; }
    .container { padding: 28px 16px; }
    .cards { grid-template-columns: 1fr; }
    .kliniek-card { flex-direction: column; }
    .section-title { font-size: 22px; }
    .page-header h1 { font-size: 26px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
    font-family: 'Material Icons';
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 2px solid var(--accent);
        padding: 8px 16px;
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }

/* Print */
@media print {
    nav, footer, .nav-toggle { display: none; }
    body { background: #fff; color: #000; font-size: 12px; }
    .hero, .page-header { background: none !important; color: #000; padding: 16px 0; }
    .hero h1, .page-header h1 { color: #000; }
    .card, .info-block, .kliniek-card { border: 1px solid #ccc; box-shadow: none; }
    .alert { border: 1px solid #999; }
}
