/* /Pages/Shared/_Layout.cshtml.rz.scp.css */
/* H E A D E R */

header[b-gr0lbiv8iy] {
    background-color: black;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Note: logo styled in global, since for some reason does not work here. */

/* M E N U */

/* AESTHETIC STYLES */
nav[b-gr0lbiv8iy] {
    /* Name and size of container need to be set to use a @container query */
    container: nav / inline-size;
    /* The following centers everything, for both mobile and desktop */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo-link[b-gr0lbiv8iy] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    grid-column: 1;
}

.header-right[b-gr0lbiv8iy] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 3;
    gap: 0.5rem;
}

.user-icon-link[b-gr0lbiv8iy] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: opacity 0.2s ease;
}

.user-icon-link:hover[b-gr0lbiv8iy] {
    opacity: 0.7;
}

.user-icon[b-gr0lbiv8iy] {
    width: 24px;
    height: 24px;
}

nav button[b-gr0lbiv8iy] {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.25rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

nav button:hover[b-gr0lbiv8iy] {
    color: rgba(132, 87, 255, 1);
    transform: scale(1.05);
}

#menu-list[b-gr0lbiv8iy] {
    text-align: center;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    min-width: 0;
    /* Zorgt ervoor dat flex item kan krimpen */
}

#menu-list li[b-gr0lbiv8iy] {
    display: inline-block;
}

#menu-list li a[b-gr0lbiv8iy] {
    text-transform: uppercase;
    font-weight: 600;
    color: white;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.2s ease;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

#menu-list li a:hover[b-gr0lbiv8iy] {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transform: none;
}

#menu-list li form[b-gr0lbiv8iy] {
    display: inline-block;
    margin: 0;
}

#menu-list li form button[b-gr0lbiv8iy] {
    text-transform: uppercase;
    font-weight: 600;
    color: white;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.2s ease;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-family: inherit;
    cursor: pointer;
}

#menu-list li form button:hover[b-gr0lbiv8iy] {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(132, 87, 255, 1);
    transform: translateY(-2px);
}

#menu-button[b-gr0lbiv8iy] {
    display: inline-block;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

#menu-button:hover[b-gr0lbiv8iy] {
    background: rgba(139, 69, 229, 0.2);
    border-color: rgba(139, 69, 229, 0.4);
}

/* MENU INTERACTION */
/* If JS is disabled: hide the menu button */
#menu-button:not(.js-enabled)[b-gr0lbiv8iy] {
    display: none;
}

/* If JS is enabled: hide the menu list by default */
#menu-list.js-enabled[b-gr0lbiv8iy] {
    display: none;
}

/* If menu is marked as expanded, display the menu list */
nav:has(#menu-button[aria-expanded="true"]) #menu-list[b-gr0lbiv8iy] {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: black;
    padding: 1rem;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

nav:has(#menu-button[aria-expanded="true"]) #menu-list li[b-gr0lbiv8iy] {
    width: 100%;
}

nav:has(#menu-button[aria-expanded="true"]) #menu-list li a[b-gr0lbiv8iy] {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
}

#menu-button[aria-expanded="true"][b-gr0lbiv8iy]::after {
    content: " ✕";
}

#menu-list li a.active[b-gr0lbiv8iy] {
    background: var(--iera-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

#menu-list li a.active:hover[b-gr0lbiv8iy] {
    background: var(--iera-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: none;
}

#menu-list li a.active[b-gr0lbiv8iy]::before {
    display: none;
}

/* MOBILE OPTIMIZATIONS */
@container nav (width <=450px) {

    /* Verbeter touch targets op mobiel */
    #menu-list li a[b-gr0lbiv8iy] {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    /* Maak dropdowns volledig zichtbaar in mobiel menu */
    #menu-button[aria-expanded="true"]+#menu-list .nav-dropdown-menu[b-gr0lbiv8iy] {
        position: static;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
        width: 100%;
        background: rgba(139, 69, 229, 0.1);
        border-color: rgba(139, 69, 229, 0.4);
    }

    #menu-button[aria-expanded="true"]+#menu-list .nav-dropdown-menu[b-gr0lbiv8iy]::before {
        display: none;
    }

    #menu-button[aria-expanded="true"]+#menu-list .nav-dropdown[b-gr0lbiv8iy] {
        width: 100%;
    }

    #menu-button[aria-expanded="true"]+#menu-list .nav-dropdown-toggle[b-gr0lbiv8iy] {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }

    /* User dropdown in mobiel menu */
    #menu-button[aria-expanded="true"]+#menu-list .user-dropdown-menu[b-gr0lbiv8iy] {
        position: static;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
        width: 100%;
        background: rgba(139, 69, 229, 0.1);
        border-color: rgba(139, 69, 229, 0.4);
    }

    #menu-button[aria-expanded="true"]+#menu-list .user-dropdown-menu[b-gr0lbiv8iy]::before {
        display: none;
    }

    /* Verberg user name op kleine schermen in header */
    .header-right .user-name[b-gr0lbiv8iy] {
        display: none;
    }

    /* Verbeter user icon op mobiel */
    .user-icon-link[b-gr0lbiv8iy],
    .user-dropdown-toggle[b-gr0lbiv8iy] {
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }

    /* Dropdown chevron groter op mobiel */
    .dropdown-chevron[b-gr0lbiv8iy] {
        width: 14px;
        height: 14px;
    }
}

/* BIGGER SCREENS */
/* Styling children of container named "nav" when width > 450px */
@container nav (width > 450px) {

    /* Hide the menu button for all users (JS enabled or not) */
    #menu-button[b-gr0lbiv8iy] {
        display: none !important;
    }

    /* If JS is enabled, remove the `display: none` style previously set */
    #menu-list.js-enabled[b-gr0lbiv8iy] {
        display: flex !important;
    }

    nav[b-gr0lbiv8iy] {
        grid-template-columns: 1fr auto 1fr;
    }

    #menu-list[b-gr0lbiv8iy] {
        gap: 1.5rem;
        justify-content: center;
    }

    #menu-list li a[b-gr0lbiv8iy] {
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
}


.iera-border[b-gr0lbiv8iy] {
    width: 100%;
    height: 0.2rem;
    background: var(--iera-gradient);
    display: block;
}

/* M A I N */

main[b-gr0lbiv8iy] {
    background-color: var(--background-color);
}

/* F O O T E R */

footer[b-gr0lbiv8iy] {
    background-color: black;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: small;
}

footer ul[b-gr0lbiv8iy] {
    container: footer / inline-size;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    height: 4rem;
}

@media only screen and (min-width: 450px) {

    footer ul[b-gr0lbiv8iy] {
        flex-direction: row;
        height: auto;
        gap: 2rem;
    }

}
