﻿/* =========================================================
   MATCH PAGINA
   ========================================================= */

.match-page {
    width: 100%;
    background: #ffffff;
    color: #111111;
}

.match-container {
    width: min(980px, calc(100% - 60px));
    margin: 0 auto;
}

/*Loading*/
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.page-loader.is-visible {
    opacity: 1;
    visibility: visible;
}

.page-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    text-align: center;
}

.page-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 20px;
}

.page-loader-title {
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.page-loader-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* =========================================================
   FILTER SECTIE
   ========================================================= */

.match-filter-section {
    padding: 55px 0 45px;
    background: #f5f2d8;
}


/* =========================================================
   TITEL
   ========================================================= */

.match-page-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 38px;
}

.match-title-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red, #f20a2e);
}

    .match-title-icon svg {
        width: 44px;
        height: 44px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.match-page-header h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.8px;
}


/* =========================================================
   FILTERS
   ========================================================= */

.match-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 65px;
}

.match-filter-block h2 {
    margin: 0 0 15px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}


/* =========================================================
   FILTER OPTIES
   ========================================================= */

.match-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.study-filter,
.sector-filter {
    border: 0;
    padding: 6px 9px;
    border-radius: 7px;
    background: transparent;
    color: #111111;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .study-filter:hover,
    .sector-filter:hover {
        color: var(--red, #f20a2e);
    }

    .study-filter.active,
    .sector-filter.active {
        background: var(--red, #f20a2e);
        color: #ffffff;
    }


/* =========================================================
   FILTER FOOTER
   ========================================================= */

.match-filter-footer {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.match-reset-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--red, #f20a2e);
    font-family: inherit;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
}

.match-counter {
    color: #555555;
    font-size: 11px;
}


/* =========================================================
   RESULTATEN
   ========================================================= */

.match-results {
    padding: 50px 0 90px;
}


/* =========================================================
   BEDRIJF GRID
   ========================================================= */

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 240px);
    justify-content: center;
    gap: 18px;
}


/* =========================================================
   BEDRIJF TILE
   ========================================================= */

.company-tile {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: var(--red, #f20a2e);
    color: #ffffff;
    clip-path: polygon( 8% 0, 92% 0, 100% 9%, 100% 91%, 92% 100%, 8% 100%, 0 91%, 0 9% );
}

    .company-tile:nth-child(even) {
        background: #86272a;
    }

    .company-tile.is-hidden {
        display: none;
    }


/* =========================================================
   LOGO
   ========================================================= */

.company-logo {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 11px;
}

    .company-logo img {
        display: block;
        max-width: 120px;
        max-height: 48px;
        object-fit: contain;
    }


/* tijdelijke fallback */

.company-logo-placeholder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--red, #f20a2e);
    font-size: 22px;
    font-weight: 800;
}


/* =========================================================
   BEDRIJF INFO
   ========================================================= */

.company-info {
    flex-grow: 1;
}

    .company-info h2 {
        margin: 0 0 5px;
        color: #ffffff;
        font-size: 19px;
        line-height: 1.05;
        font-weight: 800;
    }

    .company-info p {
        margin: 0;
        color: #ffffff;
        font-size: 10px;
        line-height: 1.3;
        font-weight: 500;
    }


/* =========================================================
   BEDRIJF SECTOR
   ========================================================= */

.company-sector {
    margin: 0 0 7px !important;
    color: #ffffff !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    font-weight: 500;
}


/* =========================================================
   WEBSITE BEDRIJF
   ========================================================= */

.company-website {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: #ffffff;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

    .company-website svg {
        width: 12px;
        height: 12px;
        flex: 0 0 12px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .company-website:hover,
    .company-website:focus {
        color: #ffffff;
        text-decoration: underline;
    }


/* =========================================================
   VACATUREKNOP
   ========================================================= */

.company-action {
    margin-top: 13px;
}

.company-vacancy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 8px;
    background-color: #ffffff;
    color: #f5003d;
    border: 2px solid #ffffff;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

    .company-vacancy-button:hover,
    .company-vacancy-button:focus {
        background-color: #f2f2f2;
        color: #d90036;
        transform: translateY(-1px);
    }


/* =========================================================
   GEEN RESULTATEN
   ========================================================= */

.match-no-results {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .match-container {
        width: min(760px, calc(100% - 50px));
    }

    .match-filter-section {
        padding: 45px 0 40px;
    }

    .match-page-header h1 {
        font-size: 40px;
    }

    .match-filters {
        gap: 35px;
    }

    .company-grid {
        grid-template-columns: repeat(2, 220px);
        gap: 16px;
    }

    .company-tile {
        min-height: 195px;
        padding: 17px;
    }

    .company-logo {
        min-height: 52px;
        margin-bottom: 10px;
    }

        .company-logo img {
            max-width: 110px;
            max-height: 44px;
        }

    .company-info h2 {
        font-size: 18px;
    }
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 767.98px) {

    .match-container {
        width: calc(100% - 40px);
    }

    .match-filter-section {
        padding: 35px 0;
    }

    .match-page-header {
        gap: 12px;
        margin-bottom: 30px;
    }

    .match-title-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

        .match-title-icon svg {
            width: 35px;
            height: 35px;
        }

    .match-page-header h1 {
        font-size: 34px;
    }


    /* Filters onder elkaar */

    .match-filters {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .match-filter-footer {
        margin-top: 25px;
    }


    /* Bedrijven onder elkaar */

    .match-results {
        padding: 35px 0 60px;
    }

    .company-grid {
        grid-template-columns: minmax(0, 260px);
        justify-content: center;
        gap: 12px;
    }

    .company-tile {
        min-height: 175px;
        padding: 16px;
        clip-path: polygon( 6% 0, 94% 0, 100% 11%, 100% 89%, 94% 100%, 6% 100%, 0 89%, 0 11% );
    }

    .company-logo {
        min-height: 48px;
        margin-bottom: 8px;
    }

        .company-logo img {
            max-width: 105px;
            max-height: 40px;
        }

    .company-info h2 {
        font-size: 17px;
    }

    .company-action {
        margin-top: 11px;
    }
}


/* =========================================================
   ZEER KLEINE SMARTPHONE
   ========================================================= */

@media (max-width: 480px) {

    .match-container {
        width: calc(100% - 32px);
    }

    .match-page-header h1 {
        font-size: 30px;
    }

    .study-filter,
    .sector-filter {
        font-size: 10px;
    }

    .company-grid {
        grid-template-columns: minmax(0, 230px);
    }

    .company-tile {
        min-height: 165px;
        padding: 15px;
    }

    .company-logo {
        min-height: 44px;
    }

        .company-logo img {
            max-width: 95px;
            max-height: 38px;
        }

    .company-info h2 {
        font-size: 16px;
    }

    .company-sector,
    .company-website {
        font-size: 9px !important;
    }

    .company-vacancy-button {
        min-height: 30px;
        padding: 0 10px;
        font-size: 9px;
    }
}
