@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Quantico:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quantico", sans-serif;
}

:root {
    /* Dark neutrals (replacing blues) */
    --black-bg: #121826;       /* Rich near-black for headers */
    --mixture-bg: #1e293b;   
    --navbar-bg: #1a1a1a; 
    --hover-bg: #4f46e5;  /* Use it also for all the bigger text and hovers *\
    
    --accent: #c0a080;           /* Warm taupe - neutral sophistication */
    
    /* Neutrals */
    --light-blue: #f5f5f5;       /* Light gray background */
    --white: #ffffff;            /* Pure white */
    
    /* Text */
          /* Soft black for body text */
    --text-light: #f1f5f9;       /*normal text should be with this  Light text for dark backgrounds */
    
    /* Utility */
    --success: #5a7247;          /* Muted green (e.g., "Saved" indicators) */
    --warning: #b38b6d;          /* Earthy orange (subtle alerts) */
}




/* start header Navbar Styles */
.header {
    position: relative;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, var(--black-bg), var(--mixture-bg));
}

.navbar {
    height: 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1.1rem;
    background-color: var(--mixture-bg);
    border: 2px solid var(--hover-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    margin: 1rem;
    /* position: fixed; */
    width: calc(100% - 10%);
    z-index: 1000;
}

.nav-brand {
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}
.left-nav a{
    display: flex;
    /* justify-content: center; */
    align-items: center;
    flex-direction: row;
    width: 100%;
}
.right-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Regular Nav Items */
.nav-items {
    display: flex;
    gap: .6rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 45px;
    transition: background 0.3s;
}

.nav-link:hover {
    background-color: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-link:active {
    transform: translateY(0);
}
.backgroundcolor-active{
    background-color: var(--hover-bg);
}

/* User Dropdown */
.user-container {
    position: relative;
}

.user-btn {
    /* background: none; */
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem .4rem;
    border-radius: 50%;
}
.user-btn-a{
    color: var(--text-light);
}
.user-dropdown {
    display: none;
    position: absolute;
    right: 1px;
    top: 100%;
    background-color: var(--mixture-bg);
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1001;
}

.user-dropdown a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.user-dropdown a:hover {
    color: var(--hover-bg);
}
.show-dropdown{
    display:  block !important;
}
.user-dropdown i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}
.user-container.logged-in:hover .user-dropdown {
    display: block;
}

/* Prevent hover effects for guest users */


/* Style for logged-in user button */
.user-container.logged-in .user-btn:hover {
    background-color: var(--hover-bg);
    cursor: pointer;
}

/* Show dropdown when user is logged in */
body.logged-in .user-dropdown {
    display: block;
}


#userAvatar {
    width: 32px;
    height: 32px;
    border-radius: 55%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#userAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    font-size: 32px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */


.mobile-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: block;
}

.mobile-link:hover {
    background-color: var(--ocean-blue);
}

/* start main section  */
@media (max-width: 450px) {
    .left-nav p{
        font-size: 1.3rem;
    }
}


/* Responsive Styles */

@media (max-width: 885px) {
    /* Hide regular nav items */
    .left-nav a{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        width: 100%;
    }
    .nav-items {
        display: none !important;
    }
    
    /* Right-aligned hamburger */
    .right-nav {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
    }
    
    /* Hamburger button styling */
    .hamburger {
        display: block;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        order: 2; /* Positions after user icon */
    }
    
    /* User container positioning */
    .user-container {
         order: 1; 
        /* margin-left: auto; Pushes to right */
    }
    
    /* Mobile menu - right-aligned dropdown */
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 1rem;
        background-color: var(--mixture-bg);
        border-radius: 8px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 10px 0;
        max-width: 200px;
        z-index: 1001;
    }
    
    .mobile-menu.active {
        display: block;
        display: flex;
        flex-direction: column;
        align-items: start;
    }
    
    /* User dropdown - matches mobile menu */
    .user-dropdown {
        top: 100%;
        margin-top: 5px;
        min-width: 250px;
    }
    .user-dropdown.active{
        display: block;
        display: flex;
        flex-direction: column;
        align-items: start;
    }
    
    /* Shared dropdown styles */
    .mobile-link, .user-dropdown a {
        display: block;
        padding: 8px 20px;
        color: var(--text-light);
        text-decoration: none;
        transition: background 0.2s;
    }
    
    .mobile-link i, .user-dropdown a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }
    
    .mobile-link:hover, .user-dropdown a:hover {
        background-color: var(--navbar-blue);
    }
    .most-right{
        display: flex;
        flex-direction: row;
    }

    /* ending of navbar  */




}


/* Desktop Styles (769px and above) */
@media (min-width: 886px) {
    .hamburger {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    /* Reset positioning for desktop */
    .right-nav {
        justify-content: flex-end;
        gap: 1.5rem;
    }
    
    .user-container {
        margin-left: 0;
    
    }
    
}