﻿/* =========================================================
   HEADER
   ========================================================= */

.main-header {
    width: 100%;
    position: relative;
    z-index: 100;
    background: #ffffff;
}

.header-navbar {
    min-height: 100px;
    display: flex;
    align-items: center;
    padding: 0;
}

.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;
}

/* =========================================================
   BRAND / LOGO
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 17px;
    flex-shrink: 0;
    color: #000000;
    text-decoration: none;
}

    .brand:hover,
    .brand:focus {
        color: #000000;
    }


/* BRUGGE */

.brugge-brand {
    display: flex;
    flex-direction: column;
    width: 62px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: .82;
    letter-spacing: 6px;
    color: #000000;
}


/* Afstudeerbeurs Brugge */

.event-brand {
    display: flex;
    flex-direction: column;
}

    .event-brand strong {
        font-size: 23px;
        line-height: 1;
        font-weight: 800;
        white-space: nowrap;
    }

    .event-brand small {
        margin-top: 7px;
        font-size: 11px;
        line-height: 1;
        font-weight: 700;
    }

.nav-icon img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}
/* =========================================================
   NAVIGATIE
   ========================================================= */

#mainNav {
    flex-grow: 1;
}

.main-navigation {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

    .main-navigation .nav-item {
        display: flex;
        align-items: center;
    }

    .main-navigation .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 4px !important;
        color: #111111;
        font-size: 13px;
        line-height: 1;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        transition: color .2s ease;
    }

        .main-navigation .nav-link:hover,
        .main-navigation .nav-link:focus {
            color: var(--red);
        }


/* =========================================================
   NAVIGATIE ICONEN
   ========================================================= */

.nav-icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    color: var(--red);
}

    .nav-icon svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .nav-icon img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* =========================================================
   MATCH BUTTON
   ========================================================= */

.match-nav-item {
    margin-left: 18px;
}

.match-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border: 2px solid var(--red);
    border-radius: 11px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

    .match-button svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: var(--red);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .match-button:hover,
    .match-button:focus {
        background: var(--red);
        color: #ffffff;
    }

        .match-button:hover svg,
        .match-button:focus svg {
            stroke: #ffffff;
        }


/* =========================================================
   MOBILE TOGGLER
   ========================================================= */

.header-toggler {
    border: 0;
    box-shadow: none !important;
}

    .header-toggler:focus {
        box-shadow: none !important;
    }


/* =========================================================
   RESPONSIVE HEADER
   ========================================================= */

@media (max-width: 1199px) {

    .event-brand strong {
        font-size: 20px;
    }

    .main-navigation {
        gap: 10px;
    }

        .main-navigation .nav-link {
            font-size: 12px;
        }

    .match-nav-item {
        margin-left: 8px;
    }
}


@media (max-width: 991.98px) {

    .header-navbar {
        min-height: 85px;
        padding: 10px 0;
    }

    .navbar-collapse {
        width: 100%;
        margin-top: 10px;
        padding: 18px 0 22px;
        border-top: 1px solid #ededed;
        background: #ffffff;
    }

    .main-navigation {
        align-items: stretch !important;
        gap: 0;
    }

        .main-navigation .nav-item {
            width: 100%;
        }

        .main-navigation .nav-link {
            width: 100%;
            padding: 12px 0 !important;
            font-size: 14px;
        }

    .match-nav-item {
        margin-left: 0;
        margin-top: 8px;
    }

    .match-button {
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 767.98px) {

    .brand {
        gap: 10px;
    }

    .brugge-brand {
        width: 47px;
        font-size: 19px;
        letter-spacing: 4px;
    }

    .event-brand strong {
        font-size: 16px;
    }

    .event-brand small {
        margin-top: 5px;
        font-size: 10px;
    }
}


@media (max-width: 480px) {

    .event-brand strong {
        font-size: 14px;
    }
}
