﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #12161d;
    --bg-alt: #181d26;
    --bg-soft: #202736;
    --text: #e9edf1;
    --muted: #a9b3c1;
    --primary: #2564cf;
    --primary-600: #1f55b0;
    --accent: #f2b705;
    --card: #151b25;
    --card-2: #111722;
    --border: #2a3347;
    --shadow-1: 0 12px 28px rgba(0,0,0,.22), 0 6px 12px rgba(0,0,0,.14);
    --shadow-2: 0 18px 42px rgba(0,0,0,.28), 0 8px 18px rgba(0,0,0,.18);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --focus: 0 0 0 3px rgba(37,100,207,.28);
    --page-ink: #20252d;
    --page-ink-soft: rgba(32,37,45,.72);
    --page-surface: rgba(255,255,255,.58);
    --page-surface-strong: rgba(255,255,255,.78);
    --modal-bg: #121a26;
    --modal-bg-2: #172131;
    --modal-line: rgba(255,255,255,.08);
    --modal-chip: rgba(255,255,255,.06);
    --modal-shadow: 0 38px 90px rgba(0,0,0,.30), 0 14px 36px rgba(0,0,0,.18);
}

html,
body {
    height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--page-ink);
    background: radial-gradient(1100px 700px at 50% 0%, rgba(255,255,255,.18), transparent 72%), linear-gradient(180deg, #d8d3cd 0%, #cec8c1 52%, #c6c0b9 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
}

.form-check-label {
    color: #222;
}

.text-muted,
.muted {
    color: var(--muted) !important;
}

.badge {
    border-radius: 999px;
    padding: .4rem .65rem;
    font-weight: 600;
}

:where(button, [role="button"], a, input, select, textarea):focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.vacatures-hero {
    margin-top: 10vh;
    padding: clamp(28px, 4vw, 56px) 0 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

    .vacatures-hero .page-title {
        background: linear-gradient(180deg, #1c1f23 0%, #565c66 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.page-title {
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.08;
    margin: -125px 0 .25rem 0;
    letter-spacing: -.03em;
    font-weight: 800;
 }

.page-subtitle {
    margin: 0;
    color: #171a1f;
    font-size: clamp(1rem, 1.2vw, 1.18rem);
}

.vacatures-filters .filters-row {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin: .6rem 0;
}

.vacatures-filters .form-control,
.vacatures-filters .form-select,
#f-reset {
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.vacatures-filters .form-control,
.vacatures-filters .form-select {
    padding: .72rem .85rem;
}

    .vacatures-filters .form-control::placeholder {
        color: #7f8aa2;
    }

    .vacatures-filters .form-control:focus,
    .vacatures-filters .form-select:focus {
        border-color: var(--primary);
        box-shadow: var(--focus);
    }

#f-reset {
    appearance: none;
    padding: .72rem 1rem;
    line-height: 1;
    font-weight: 700;
    font-size: .95rem;
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}

    #f-reset:hover {
        border-color: rgba(37,100,207,.55);
        box-shadow: 0 14px 32px rgba(0,0,0,.18);
        filter: brightness(1.04);
        transform: translateY(-1px);
    }

    #f-reset:active {
        transform: translateY(0);
        box-shadow: 0 10px 22px rgba(0,0,0,.14);
    }

.vacatures-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.2vw, 22px);
    align-items: stretch;
}

.vacatures-empty {
    color: #2a2f35;
    background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.24));
    border: 1px dashed rgba(0,0,0,.12);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
}

.vacature-card {
    position: relative;
    overflow: clip;
    isolation: isolate;
    background: linear-gradient(180deg, var(--card), var(--card-2));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    transform: translateZ(0);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
    cursor: pointer;
}

    .vacature-card::before {
        content: "";
        position: absolute;
        inset: -1px;
        background: radial-gradient(600px 180px at 30% -40%, rgba(37,100,207,.12), transparent 60%);
        pointer-events: none;
        z-index: 0;
    }

    .vacature-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-2);
        border-color: rgba(37,100,207,.34);
    }

    .vacature-card:focus-visible {
        outline: none;
        box-shadow: var(--focus);
    }

.card-hero {
    aspect-ratio: 16 / 9;
    background: #0d1016;
}

    .card-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .card-hero.d-none {
        display: none !important;
    }

.card-body {
    padding: 16px 16px 18px;
    position: relative;
    z-index: 1;
}

.card-title,
.vacature-card .card-title {
    font-size: clamp(17px, 1.6vw, 20px);
    margin: 6px 0 2px 0;
    line-height: 1.22;
    color: #e9edf1;
    font-weight: 800;
    letter-spacing: -.02em;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .1rem 0 .35rem 0;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    padding: .25rem .55rem;
    color: #c8d2e3;
    background: #0f1420;
    border: 1px solid #24304a;
    border-radius: 999px;
}

.card-teaser {
    color: #cfd7e6;
    margin: .25rem 0 .35rem;
}

.card-date {
    color: #93a0b6;
    font-size: .85rem;
    margin: 0;
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: .35rem;
    z-index: 2;
}

    .card-badges .badge {
        background: rgba(0,0,0,.35);
        border: 1px solid rgba(255,255,255,.24);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

.vacatures-paging {
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .vacatures-paging .btn {
        border-radius: 999px;
    }

#pg-info {
    color: var(--muted);
}

.modal-dialog {
    width: min(980px, calc(100vw - 32px));
    max-width: min(980px, calc(100vw - 32px));
    height: calc(100vh - var(--navbar-height, 96px) - 28px);
    margin-top: calc(var(--navbar-height, 96px) + 8px) !important;
    margin-bottom: 8px !important;
}

.vacature-modal {
    height: 100%;
    max-height: 100%;
    background: radial-gradient(1200px 420px at 0% 0%, rgba(37,100,207,.08), transparent 42%), linear-gradient(180deg, #2b3442 0%, #232c38 100%);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
    border-radius: 26px;
    box-shadow: 0 44px 110px rgba(0,0,0,.34), 0 18px 44px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(14px) saturate(1.02);
    -webkit-backdrop-filter: blur(14px) saturate(1.02);
    overflow: hidden;
}

    .vacature-modal .modal-header {
        position: relative;
        padding: 1.1rem 1.2rem 1.05rem;
        border-bottom: 1px solid var(--modal-line);
        background: radial-gradient(600px 120px at 10% 0%, rgba(255,255,255,.06), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
    }

        .vacature-modal .modal-header::after {
            content: "";
            position: absolute;
            left: 1.2rem;
            right: 1.2rem;
            bottom: 0;
            height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.03), rgba(255,255,255,.08));
            pointer-events: none;
        }

    .vacature-modal .modal-title {
        font-size: clamp(1.5rem, 2vw, 2.2rem);
        line-height: 1.02;
        letter-spacing: -.03em;
        font-weight: 800;
        color: #f4f7fb;
        text-shadow: 0 2px 14px rgba(0,0,0,.18);
    }

    .vacature-modal .btn-close {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        filter: invert(1) grayscale(1) brightness(1.4);
        opacity: .88;
        background-color: rgba(255,255,255,.04);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    }

        .vacature-modal .btn-close:hover {
            opacity: 1;
        }

    .vacature-modal .modal-body {
        padding: 1.15rem 1.2rem 1rem;
        overflow-y: auto;
        min-height: 0;
    }

    .vacature-modal .modal-footer {
        position: relative;
        align-items: stretch;
        gap: .9rem;
        border-top: 1px solid var(--modal-line);
        padding: 1rem 1.2rem 1.15rem;
        background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.025)), linear-gradient(90deg, rgba(255,255,255,.015), rgba(255,255,255,.005));
        box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    }

        .vacature-modal .modal-footer::before {
            content: "";
            position: absolute;
            left: 1.2rem;
            right: 1.2rem;
            top: 0;
            height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.03), rgba(255,255,255,.08));
            pointer-events: none;
        }

#vd-hero {
    width: 100%;
    height: min(30vh, 320px);
    display: block;
    border-radius: 30px;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(180deg, var(--modal-bg) 0%, var(--modal-bg-2) 100%);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 18px 38px rgba(0,0,0,.18);
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(180deg, var(--modal-bg) 0%, var(--modal-bg-2) 100%), linear-gradient(90deg, rgba(193,17,26,0) 0%, rgba(193,17,26,.9) 50%, rgba(193,17,26,0) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

#vd-intro {
    max-width: 84ch;
    margin: 1.15rem auto 1.45rem auto !important;
    color: #e5edf8;
    line-height: 1.82 !important;
    font-size: 1.04rem;
    text-wrap: pretty;
    text-align: left;
    white-space: normal !important;
}

    #vd-intro p {
        margin: 0 !important;
    }

    #vd-intro br {
        content: "";
    }

#vd-intro p {
    margin: 0 !important;
}

#vd-intro br {
    content: "";
}

.vd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: .35rem 0 1.4rem 0 !important;
}

    .vd-badges .badge {
        background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
        border: 1px solid rgba(140,167,219,.24);
        color: #dbe8ff;
        padding: .42rem .72rem;
        border-radius: 999px;
        font-weight: 700;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    }

.vd-h6 {
    font-size: .84rem;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #d8e4f7;
    margin: 0 0 .75rem 0;
    font-weight: 800;
}

.vd-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #edf2f8;
}

    .vd-list li {
        margin: .34rem 0;
        line-height: 1.62;
    }

.vacature-detail-section {
    height: 100%;
    padding: 1rem 1rem .95rem;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.vd-praktisch .vacature-detail-section {
    padding-bottom: .8rem;
}

#vd-praktisch {
    margin-bottom: 0;
    row-gap: .35rem;
}

    #vd-praktisch dt {
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: #aebcd4;
        margin-bottom: 0;
    }

    #vd-praktisch dd {
        color: #f0f4fa;
        font-weight: 600;
        margin-bottom: .45rem;
    }

.vd-related {
    margin-top: 1.5rem !important;
}

.related-card {
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

    .related-card:hover {
        transform: translateY(-2px);
        background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
        border-color: rgba(97,138,219,.36);
    }

.vd-share {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
}

    .vd-share .btn {
        border-radius: 999px;
        min-height: 42px;
        padding: .65rem 1rem;
        font-weight: 700;
        background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
        border-color: rgba(255,255,255,.07);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    }

.btn {
    font-weight: 600;
}

.btn-outline-secondary {
    color: #d7e1ef;
    border-color: rgba(120,144,186,.34);
    background: rgba(255,255,255,.03);
}

    .btn-outline-secondary:hover {
        color: #fff;
        border-color: rgba(120,144,186,.52);
        background: rgba(255,255,255,.07);
    }

#vd-solliciteer {
    background: linear-gradient(180deg, var(--primary), var(--primary-600));
    border: none;
    border-radius: 999px;
    padding: .75rem 1.15rem;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(37,100,207,.22), inset 0 1px 0 rgba(255,255,255,.10);
}

    #vd-solliciteer:hover {
        filter: brightness(1.06);
        box-shadow: 0 20px 42px rgba(37,100,207,.30), inset 0 1px 0 rgba(255,255,255,.10);
    }

.solliciteer-form .small,
.solliciteer-form .small a {
    color: #000 !important;
}

#sollicitatieForm {
    max-width: 980px;
    margin: 18px auto 0;
    padding: clamp(18px, 3vw, 28px);
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(0,0,0,.14);
    backdrop-filter: blur(10px) saturate(1.05);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

    #sollicitatieForm .form-label {
        color: #1b1f24;
        font-weight: 700;
        letter-spacing: .2px;
        margin-bottom: .35rem;
    }

    #sollicitatieForm .form-control {
        border-radius: 14px;
        padding: .75rem .95rem;
        border: 1px solid rgba(0,0,0,.16);
        background: rgba(255,255,255,.92);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
    }

    #sollicitatieForm textarea.form-control {
        min-height: 160px;
        resize: vertical;
    }

    #sollicitatieForm .form-control:focus {
        border-color: rgba(37,100,207,.65);
        box-shadow: 0 0 0 4px rgba(37,100,207,.18);
        outline: 0;
    }

    #sollicitatieForm .form-text,
    #sollicitatieForm .text-muted,
    #sollicitatieForm .small.text-muted {
        color: rgba(27,31,36,.75) !important;
    }

    #sollicitatieForm .invalid-feedback {
        font-weight: 600;
    }

    #sollicitatieForm .mt-4.d-flex {
        align-items: center;
    }

    #sollicitatieForm .btn-outline-secondary {
        border-radius: 999px;
        padding: .75rem 1.05rem;
        border: 1px solid rgba(0,0,0,.18);
        color: #1b1f24;
        background: rgba(255,255,255,.55);
    }

        #sollicitatieForm .btn-outline-secondary:hover {
            background: rgba(255,255,255,.80);
            border-color: rgba(37,100,207,.45);
        }

.vacature-page-shell {
    padding: 24px;
    border-radius: 18px;
}

@media (max-width: 1024px) {
    #sollicitatieForm .mt-4.d-flex {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: .75rem;
        flex-wrap: wrap;
    }

        #sollicitatieForm .mt-4.d-flex .btn {
            width: auto;
            padding: .55rem .95rem;
            font-size: .95rem;
            white-space: nowrap;
        }
}

@media (max-width: 992px) {
    .vacatures-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-dialog {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        height: calc(100vh - var(--navbar-height, 96px) - 16px);
        margin-top: calc(var(--navbar-height, 96px) + 8px) !important;
        margin-bottom: 8px !important;
    }

    .vacature-modal .modal-body {
        padding: 1rem;
    }

    #vd-hero {
        height: min(20vh, 180px);
        border-radius: 24px;
    }

    #vd-intro {
        max-width: 100%;
        margin: 1rem auto 1.2rem auto !important;
    }

    .vacature-detail-section {
        border-radius: 18px;
        padding: .95rem .95rem .9rem;
    }
}

@media (max-width: 640px) {
    .vacatures-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .vacatures-filters .filters-row {
        gap: .5rem;
    }

    .card-body {
        padding: 14px;
    }

    .modal-dialog {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        height: calc(100vh - var(--navbar-height, 96px) - 10px);
        margin-top: calc(var(--navbar-height, 96px) + 5px) !important;
        margin-bottom: 5px !important;
    }

    .vacature-modal {
        height: 100%;
        max-height: 100%;
        border-radius: 18px;
    }

        .vacature-modal .modal-header,
        .vacature-modal .modal-body,
        .vacature-modal .modal-footer {
            padding-left: .9rem;
            padding-right: .9rem;
        }

        .vacature-modal .modal-header {
            padding-top: 1rem;
            padding-bottom: .95rem;
        }

        .vacature-modal .modal-title {
            font-size: clamp(1.28rem, 7vw, 1.7rem);
        }

        .vacature-modal .btn-close {
            width: 36px;
            height: 36px;
        }

        .vacature-modal .modal-body {
            padding-top: .9rem;
            padding-bottom: .9rem;
        }

        .vacature-modal .modal-footer {
            gap: .7rem;
        }

    #vd-hero {
        height: min(24vh, 190px);
        max-height: none;
        border-radius: 22px;
    }

    #vd-intro {
        font-size: .97rem;
        line-height: 1.64 !important;
        margin-bottom: 1.1rem !important;
    }

    .vacature-detail-section {
        border-radius: 16px;
        padding: .9rem .9rem .85rem;
    }

    .vd-share {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .55rem;
        align-items: stretch;
    }

        .vd-share .btn {
            width: 100%;
            min-height: 42px;
            padding: .6rem .7rem;
            font-size: .95rem;
            line-height: 1.2;
            justify-content: center;
        }

    #vd-solliciteer {
        width: 100%;
        min-height: 46px;
        padding: .75rem .95rem;
        font-size: 1rem;
        justify-content: center;
        margin-top: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .vacatures-hero,
    .vacatures-filters,
    .vacatures-paging,
    .vd-share {
        display: none !important;
    }

    .vacature-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        background: #fff;
    }

    .card-hero {
        display: none;
    }
}
