/* Navbar */
.nav-bar {
    /* Old padding - Overridden by .navbar */
}

/* Header(nav-bar) */ /*  4. Dashboard, 8. Public profile */
.navbar {
    /* Use CSS variables for responsive design */
    height: var(--navbar-height);
    padding: var(--navbar-padding-y) var(--navbar-padding-x);
    transition: var(--transition-duration);
}

.navbar.dashboard {
    padding-left: 0;
    padding-right: 0;
}

.navbar.settings {
    height: auto;
}

.navbar.config .navbar__actions {
    width: 20%;
    min-width: 150px;
}

.navbar__logo-img,
.navbar__logo-image {
    /* Use CSS variables for responsive design */
    width: var(--logo-width);
    height: var(--logo-height);
    object-fit: contain;
    transition: var(--transition-duration);
}

.navbar__hamburger-menu-image {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.navbar__icon {
    width: 24px;
    height: 24px;
}

.navbar__profile {
    width: var(--profile-width);
    height: var(--profile-width);
    flex-shrink: 0;
    border-radius: 50%;
}

.navbar__profile .navbar__profile-image {
    object-fit: cover;
}

.navbar__profile-initials {
    line-height: 1;
}

.navbar__profile-thumbnail-initials {
    line-height: 1;
}

/* Profile dropdown */
.navbar__profile-dropdown {
    position: absolute;
    content: '';
    right: 0;
    top: calc(var(--profile-width) + var(--navbar-padding-y)); /* height of the profile */
    width: 402px;
    z-index: 3;
}

.navbar__profile-info {
    position: relative;
    padding: 25px 30px;
    border-radius: 10px 10px 0px 0px;
    --navbar-profile-banner-image: none;
    background: var(--navbar-profile-info-gradient);
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.30);
}

.navbar__profile-info.has-banner-image {
    background: var(--navbar-profile-banner-image) lightgray 50% / cover no-repeat;
}

.header.has-banner-image .navbar__profile-info {
    background: var(--header-banner-image) lightgray 50% / cover no-repeat;
}

.navbar__profile-info::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 10px 10px 0px 0px;
    background: var(--navbar-profile-info-overlay);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.navbar__profile-info > *:not(.navbar__profile-bg) {
    position: relative;
    z-index: 2;
}

.navbar__profile-info .navbar__profile-thumbnail {
    object-fit: cover;
}

.navbar__profile-option {
    padding: 11.5px 20px;
}

/* Change text, icon color on hover */
.navbar__profile-option:not(.is-disabled):hover strong,
.navbar__profile-option:not(.is-disabled):hover .navbar__profile-link {
    color: var(--color-primary) !important;
}
.navbar__profile-option:not(.is-disabled):hover svg path {
    fill: var(--color-primary);
}

.navbar__profile-option.is-disabled {
    display: none !important;
}

/* Add artwork */

.navbar__add-artwork-dropdown {
    position: absolute;
    content: '';
    right: 0;
    top: calc(22px + 33px); /* 22px is the height of the icon */
    filter: drop-shadow(0px 0px 30px rgba(0, 0, 0, 0.30));
    width: 274px;
    z-index: 3;
}

.navbar__add-artwork-item {
    padding: 11.5px 20px;
}

.navbar__add-artwork-item:last-child {
    border-top: 1px solid var(--color-accent);
}

/* Change text, icon color on hover */
.navbar__add-artwork-item:hover strong {
    color: var(--color-primary) !important;
}
.navbar__add-artwork-item:hover svg path {
    fill: var(--color-primary);
}

/* Active icon */
.navbar__icon--add-artwork.active svg path {
    fill: var(--color-primary);
}

/* Banner header */
.banner {
    position: relative;
    width: 100%;
    height: 500px;
    padding: 0 var(--spacing-3xl);
}

.banner__empty,
.banner__image {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.banner__image {
    object-fit: cover;
}

.banner__empty {
    background: var(--color-accent);
}

.banner__camera-icon {
    position: absolute;
    background: var(--banner-camera-icon-background);
    bottom: 30px;
    right: calc(30px + 30px); /* 30px of pasding of parent and 30px pour spacing in right */
    border: none;
    border-radius: 50%;
}

/* header */
.header {
    position: relative;
    padding: 0 var(--spacing-6xl);
    --header-banner-overlay: linear-gradient(
        0deg,
        var(--color-secondary) 0%,
        rgba(14, 17, 24, 0.00) 100%
    );
    --header-banner-image: none;
    /* overflow: hidden; */
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 96%; /* not 100% to give the design a vibe of connection */
    z-index: -1;
    background: var(--header-banner-overlay);
    filter: blur(42.5px);
}

.header.has-banner-image::before {
    background: var(--header-banner-overlay), var(--header-banner-image);
    background-color: lightgray;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* =================================== */
/*    Responsive Adjustments           */
/* =================================== */

/* Smaller screen adjustments for dropdown positions */
@media (max-width: 414px) {
    /* Adjust dropdown positions for smaller navbar height */
    .navbar__profile-dropdown{
        top: calc(38px + 15px); /* Based on profile height at this size */
        width: 330px; /* Narrower dropdown for small screens */
    }
    .navbar__add-artwork-dropdown{
        top: calc(24px + 15px); /* Based on icon height */
        width: 250px; /* Narrower dropdown for small screens */
    }

    .navbar__icon svg {
        width: 18px;
        height: auto;
    }
}

/* Banner header */
.banner{
    position: relative;
    width: 100%;
    height: 500px;
    padding: 0 var(--spacing-3xl);
}

/* ================================= */
/*  Existing Responsive Breakpoints  */
/* ================================= */

@media (max-width: 1200px) {
    .banner{
        height: 450px;
        transition: height 0.6s ease;
    }
}

/* Responsive styling for Tablet devices */
@media (max-width: 1080px) {
    .banner {
        height: 400px;
    }
}

@media (max-width: 800px) {
    .banner {
        height: 350px;
    }
}

/* Responsive styling for mobile devices */
@media (max-width: 700px) {
    .banner{
        display: none !important;
    }

    .header::before{
        background: var(--color-background-dark);
    }

    .navbar.classic .navbar__actions .close-button{
        width: auto !important;
        height: auto !important;
    }
}
