:root {
    --nav-height: 64px;
    --blur-bg: rgba(255, 255, 255, 0.35);
    --border-glass: rgba(255, 255, 255, 0.25);
    --text: #121212;
    --text-dim: #4a4a4a;
    --hover: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --blur-bg: rgba(20, 20, 22, 0.35);
        --border-glass: rgba(255, 255, 255, 0.15);
        --text: #eaeaea;
        --text-dim: #bdbdbd;
        --hover: rgba(255, 255, 255, 0.08);
    }
}

/* ===== Navbar ===== */
.aradoo-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    height: var(--nav-height);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    background: var(--blur-bg);
    transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* Fallback als blur niet wordt ondersteund */
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .navbar {
        background: rgba(255, 255, 255, 0.9);
    }

    @media (prefers-color-scheme: dark) {
        .navbar {
            background: rgba(20, 20, 22, 0.9);
        }
    }
}

.navbar.scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    background: color-mix(in oklab, var(--blur-bg) 85%, transparent);
        border-bottom: 1px solid var(--border-glass);

}

.nav-wrap {
    width: 100%;
    padding: 0 40px;
    height: 100%;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* links / midden / rechts */
    align-items: center;
    gap: 12px;
}

/* Links: logo */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .2px;
}

.brand .logo {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-block;
    overflow: hidden;
}

/* Midden: menu */
.menu {
    justify-self: center; /* écht centreren, ongeacht links/rechts */
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu a, .menu button {
    position: relative;
    display: inline-block;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-radius: 10px;
    border-color: transparent;
    background-color: transparent;
}

.menu a.active, .menu button.active {
    text-decoration: underline;
}

.menu a:hover, .menu button:hover {
    background: var(--hover);
}

/* Rechts: dropdown */
.actions {
    justify-self: end;
    position: relative;
}

.dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
}

.dropdown-btn:focus-visible {
    outline: 2px solid #6aa3ff;
    outline-offset: 2px;
}

.dropdown[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown a {
    display: block;
    padding: 10px 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.dropdown a span {
    color: var(--text-dim);
    font-weight: 400;
    margin-left: 6px;
    font-size: .95em;
}

.dropdown a:hover {
    background: var(--hover);
}

/* Kleine schermen: iets compacter */
@media (max-width: 640px) {
    .menu {
        gap: 10px;
    }

    .menu a {
        padding: 8px 8px;
    }

    .brand .label {
        display: none;
    }
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text);
    background: radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, .12), transparent 40%),
    radial-gradient(900px 400px at 90% -20%, rgba(16, 185, 129, .12), transparent 40%),
    radial-gradient(600px 600px at 50% 120%, rgba(59, 130, 246, .12), transparent 40%),
    #0b0b0c;
}

main {
    padding: 24px;
}
