/* =====================
   NAV PUBLIC - RESPONSIVE
===================== */

nav {
    background-color: white;
    height: 90px;
    display: flex;
    padding-inline: var(--grid-padding-x);
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
    justify-content: right;
}

/* Logo tekst verbergen op kleine schermen */
.nav-p-logo {
    display: none;
    font-size: 25px;
    color: var(--gray);
    text-decoration: none;
    margin-left: 0.75rem;
}

/* Nav links verbergen op mobile */
.nav-link {
    display: none;
    color: var(--gray);
    text-decoration: none;
}

.btn-nav {
    background-color: var(--red-color);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
    cursor: pointer !important;
    border-radius: 10px/50%;
    border-style: solid;
    border-width: 2px;
    border-color: var(--red-color);
    font-family: var(--paragraph-font);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.btn-nav:hover {
    background-color: var(--red-color-hover);
    border-color: var(--red-color-hover);
}

.nav-logo {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* SVG logo kleiner op mobile */
.nav-logo svg {
    width: 100px;
    height: auto;
}

/* Hamburger menu knop */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    margin-left: 0.5rem;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile menu */
.nav-mobile-menu {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem var(--grid-padding-x);
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
}

.nav-mobile-menu.open {
    display: flex;
}

.nav-mobile-menu a {
    color: var(--gray);
    text-decoration: none;
    font-family: var(--paragraph-font);
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav-mobile-menu a:last-child {
    border-bottom: none;
}

/* === TABLET (768px+) === */
@media (min-width: 768px) {
    .nav-logo svg {
        width: 120px;
    }

    .nav-p-logo {
        display: block;
        margin-left: 0.2rem;
        font-size: 20px;
    }

    .nav-hamburger {
        display: none;
    }

    .nav-link {
        display: block;
    }

    .btn-nav {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .nav-right {
        gap: 1rem;
    }
    
}

/* === DESKTOP (1200px+) === */
@media (min-width: 1200px) {
    nav {
        padding-inline: 150px;
    }

    .nav-logo svg {
        width: 150px;
    }

    .nav-right {
        gap: 30px;
    }

    .btn-nav {
        padding: 10px 40px;
    }

    .nav-logo svg {
        width: 130px;
    }

    .nav-p-logo {
        margin-left: 0.75rem;
        font-size: 25px;
    }
}


.profiel-dropdown {
    position: relative;
    cursor: pointer;
}

.profiel-icon {
    display: block;
    width: 38px;
    height: 38px;
}

.profiel-dropdown__menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    border-radius: var(--border-radius-items);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 100;
    overflow: hidden;
}

.profiel-dropdown__menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.profiel-dropdown:hover .profiel-dropdown__menu,
.profiel-dropdown.open .profiel-dropdown__menu {
    display: block;
}

.profiel-dropdown__menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color var(--duration-fast);
}

.profiel-dropdown__menu a:hover {
    background-color: var(--bg-color);
}

.dropdown-uitloggen {
    border-top: 1px solid #e5e5e5;
    color: var(--red-color) !important;
}

.dropdown-uitloggen svg {
    stroke: var(--red-color);
}