/* Component: smd-layout_header, smd-layout_header--floating, smd-layout_header--floating--min-width
 * Description: Styles for the main header/navigation bar of the 'Strawberry You' Design Language. 
 *              Provides fixed and floating header layouts with blur, shadow, and responsive design. 
 *              Includes logo, title, navigation links, and right-aligned elements. 
 *              Supports mobile responsiveness and profile picture styling with gradient and animation effects.
 */


/* Header layout for 'Strawberry You' Design Language */
.smd-layout_header {
    position: fixed;
    display: flex;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 64px;
    z-index: 999;
    background-color: var(--smd-header--primary);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    box-shadow: 0 4px 24px 0 var(--smd-header--shadow), 0 1.5px 6px 0 var(--smd-header--inset) inset;
    isolation: isolate;
}

.smd-layout_header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--smd-header--background-overlay);
    pointer-events: none;
}

.smd-layout_header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    box-shadow: var(--smd-header--after-shadow);
    pointer-events: none;
}

.smd-layout_header > * {
    position: relative;
    z-index: 2;
}

.smd-layout_header--floating {
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto; 
    border-radius: 48px;
    border: 0.5px solid var(--smd-header--floating-border);
}

.smd-layout_header--floating--min-width {
    top: 16px !important;
    left: 50% !important;
    right: auto !important; 
    transform: translateX(-50%) !important;
    width: fit-content !important;
    min-width: 400px !important;
    max-width: 90vw !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    border-radius: 48px;
    border: 0.5px solid var(--smd-header--floating-border);
}

.smd-layout_header--floating--min-width .smd-layout_header-logo {
    margin-left: 0; 
    flex-shrink: 0; 
}

.smd-layout_header--floating--min-width .smd-layout_navbar {
    margin-left: 20px; 
    flex-grow: 1; 
}

.smd-layout_header--floating--min-width .smd-layout_navbar-right {
    position: static; 
    right: auto;
    top: auto;
    transform: none;
    margin-left: 20px; 
    flex-shrink: 0; 
    
}

.smd-layout_header hr {
    border: 2px #1a1716;
}

.smd-layout_header--floating hr {
    border: 2px #1a1716;
}

.smd-layout_header-title {
    font-size: 25px;
    color: white;
    font-weight: bold;
    margin-left: 10px;
}

.smd-layout_header-logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 96px;
}

.smd-layout_header-logo img {
    width: 46px;
}


/* Navbar layout for 'Strawberry You' Design Language */

.smd-layout_navbar {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 96px;
}

.smd-layout_navbar a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    font-size: 16px;
}

.smd-layout_navbar-right {
    position: absolute;
    right: 96px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.smd-layout_navbar-right a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    font-size: 16px;
}


/* Profile picture style */

.smd-layout_navbar-profile-picture {
    border-radius: 20px;
    margin-left: 15px;
    width: 30px;
    padding: 2px;
    position: relative;
}

.smd-layout_navbar-profile-picture img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    display: block;
}

.smd-layout_navbar-profile-picture::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    z-index: -1;
    transition: transform 0.3s ease;
}

.smd-layout_navbar-profile-picture--one{
    background: var(--color-background-dark) !important;
}

.smd-layout_navbar-profile-picture--one::after {
    background: var(--gradient-one) !important;
}

.smd-layout_navbar-profile-picture:hover::after {
    animation: spin 4s linear infinite;
}


/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .smd-layout_header,
    .smd-layout_header--floating {
        height: 56px; 
    }

    .smd-layout_header--floating {
        top: 8px;
        left: 8px;
        right: 8px;
        border-radius: 16px;
    }

    .smd-layout_header-logo {
        margin-left: 16px; 
    }

    .smd-layout_header-logo img {
        width: 36px;/
    }

    .smd-layout_header-title {
        display: none;
    }

    .smd-layout_navbar {
        display: none;
        margin-left: 16px;
    }

    .smd-layout_navbar-right {
        right: 16px;
    }

    .smd-layout_navbar-mobile-toggle {
        display: block;
        color: white;
        font-size: 24px;
        padding: 0 16px;
        cursor: pointer;
    }

    /* temporary */
    .smd-layout_main {
        display: none;
    }

    .smd-layout_navbar-profile-name {
        display: none;
    }

    .smd-layout_navbar-profile-picture {
        margin-left: 0px;
    }
}