/* Top Navigation Menu */
#nav-menu {
    background: linear-gradient(135deg, #2d5e3f 0%, #3a7d52 50%, #4a9d6f 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(45, 94, 63, 0.2);
    border-bottom: 2px solid #52c77a;
    min-height: 60px;
}

/* Left section - tabs centered */
.nav-left {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 0;
}

/* Right section - auth */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Navigation Tabs */
.nav-tab {
    padding: 20px 35px;
    color: #f0f8f4;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Show full text by default, hide short */
.nav-short {
    display: none;
}

.nav-full {
    display: inline;
}

.nav-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: #7ed49f;
    transition: transform 0.3s ease;
}

.nav-tab:hover {
    background: rgba(82, 199, 122, 0.2);
    color: #ffffff;
}

.nav-tab:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-tab.active {
    background: rgba(82, 199, 122, 0.25);
    color: #ffffff;
    box-shadow: inset 0 -2px 0 #7ed49f;
}

/* Sign In Button */
.sign-in-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #2d5e3f;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.sign-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f8f9fa;
}

/* User Profile Container */
#user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 25px;
}

/* Avatar */
#user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    background: white;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

#user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* User Name */
#user-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

#user-name:hover {
    text-decoration: underline;
    color: #e8f5ee;
}

/* Sign Out Button */
#user-profile button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#user-profile button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    #nav-menu {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        min-height: auto;
    }
    
    .nav-left {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        gap: 5px;
    }
    
    .nav-tab {
        flex: 1;
        text-align: center;
        padding: 12px 10px;
        font-size: 11px;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
    }
    
    #user-name {
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    /* Switch to short tab names on mobile */
    .nav-full {
        display: none;
    }
    
    .nav-short {
        display: inline;
    }
    
    .nav-tab {
        font-size: 10px;
        padding: 10px 6px;
        letter-spacing: 0.3px;
        text-transform: none;
    }
    
    #user-name {
        display: none;
    }
    
    #user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .sign-in-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
