.profiles_banner {
    min-height: 250px;
    max-height: 500px;
    position: relative;
    background: lighten(#0c0c0c, 10%);

    .cover > img {
        background-size: cover;
        width: 100%;
        min-height: 380px;
    }

    h1 a, h1 a:hover, .h1 a, .h1 a:hover {
        color: #fff;
    }

    .profiles_extra_info {
        color: darken(#fff, 25%);

        @media (max-width: @screen-xs) {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        > span + span {
            &:before {
                .fa('\a0\b7\a0');
            }
        }
    }

    .profiles_banner_bg {
        > .cover_bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
        }
        .cover {
            display: block;
            overflow: hidden;
            max-height: 420px;
            .ui-draggable {
                cursor: move;
            }
        }
        #save_reposition_cover {
            position: absolute;
            bottom: @block-content-padding;
            right: @block-content-padding;
        }
        h1 a, h1 a:hover, .h1 a, .h1 a:hover {
            color: #fff;
        }

        .profiles_extra_info {
            color: darken(#fff, 10%);
            font-weight: 400;
            text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
        }
    }
}

#change_cover_function {
    position: absolute;
    top: 15px;
    left: 40px;
    .fa-camera {
        :hover {
            font-size: 30px;
        }
        font-size: 25px;
        color: @header-bg;
    }
}

.profile_image {
    background: @block-bg;
    border: 4px @block-bg solid;
    border-radius: @border-radius-base;
    position: absolute;
    left: 20px;
    bottom: -20px;
    @media (max-width: @screen-xs) {
        height: 80px;
        width: 80px;
    }
    width: 160px;
    height: 160px;
    overflow: hidden;
    z-index: 4;

    img {
        width: 100%;
        height: 100%;
        background-size: contain;
    }

    > .p_4 {
        display: none;

        input {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            opacity: 0;
            z-index: 2;
        }
    }

    > .p_4 > span {
        display: block;
        position: absolute;
        overflow: hidden;
        text-indent: -1000px;
        background: rgba(0, 0, 0, 0.4);
        color: #fff;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1;
        height: 30%;
    }

    > .p_4 > span:before {
        .fa('\f093');
        position: absolute;
        left: 50%;
        top: 50%;
        font-size: 30px;
        margin-left: @block-content-padding*-1;
        margin-top: @block-content-padding*-1;
    }
}

.profile_menu_is_fixed.panel_is_active {
    .profiles_menu, .profile_image {
        z-index: 298;
    }
}

._is_groups_view  {
    .profiles_menu{
        > ul {
            padding-left: inherit;
        }
    }
}
.profiles_menu {
    background: @header-bg;
    height: @header-height;
    position: relative;

    span.badge_number {
        position: absolute;
        right: 5px;
        top: 12px;
        font-size: @font-size-base - 4;
        display: inline-block;
        background: darken(@block-bg, 5%);
        height: auto;
        line-height: normal;
        padding: 4px 6px;
    }

    li.active span.badge_number {
        background: darken(@block-bg, 20%);
    }

    > ul {
        position: relative;
        padding-left: 180px;
        > li {
            vertical-align: top;
            border-bottom: 3px transparent solid;
            display: inline-block;
            height: @header-height;
            line-height: @header-height;
            margin-right: -2px;
            position: relative;

            > a.explore, > a.explore:hover {
                font-size: 24px;
                border-left: 2px darken(@header-bg, 6%) solid;
            }

            > a.explore:hover {
                background: @brand-primary;
                color: @brand-primary-color;

                i:hover {
                    color: @brand-primary-color;
                }
            }

            > a, > a:hover {
                display: block;
                color: darken(@header-color, 20%);
                padding: 0 20px;
                font-size: @font-size-base + 1;
                font-weight: 300;
                letter-spacing: 1px;

                > span {
                    font-size: @font-size-base - 4;
                    display: inline-block;
                    vertical-align: middle;
                    margin-left: 8px;
                    margin-bottom: 2px;
                    background: darken(@header-bg, 5%);
                    height: auto;
                    line-height: normal;
                    padding: 4px 6px;
                }
            }
        }

        > li:hover {
            border-color: @brand-primary;
            transition: @transition;

            > a, > a:hover {
                color: lighten(@header-color, 10%);
            }

            > a.explore, > a.explore:hover {
                background: @brand-primary;
                color: @brand-primary-color;
            }

            > ul {
                display: block;
            }
        }

        > li.active {
            border-color: @brand-primary;
        }
    }
}

.profiles_info {
    position: absolute;
    max-width: 100%;
    bottom: 15px;
    @media (max-width: @screen-xs) {
        left: 0;
        text-align: center;
        width: 100%;
        padding: 0 @block-content-padding;
        bottom: 55px;
    }
    padding-left: 200px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);

    &.groups_profile {
        bottom: 10px;
        padding-left: 0px;
        left: 20px;

        @media (max-width: @screen-xs) {
            left: 0;
            bottom: 55px;
        }
    }

    h1 {
        @media (max-width: @screen-xs) {
            font-size: 25px;
        }
        font-size: 32px;
        font-weight: 200;
        letter-spacing: 1px;
        padding: 0;
    }

    h1 a {
        .truncateLines(30px, 32px, 1, true);
        font-weight: 400;
    }
}

.profiles_action {
    position: absolute;
    right: 0;
    top: 0;

    > ul {
        > li:hover {
            background: @brand-primary;
            color: @brand-primary-color;

            > ul {
                display: block;
            }
        }

        > li {
            float: left;
            display: block;
            position: relative;
            > a, > a:hover {
                display: block;
                height: @header-height;
                line-height: @header-height;
                font-size: 20px;
                padding: 0 10px;
                border-left: 1px darken(@header-bg, 8%) solid;

                i {
                    color: darken(@header-color, 4%);
                }

                span {
                    display: none;
                }
            }

            > a:hover {
                i {
                    color: @brand-primary-color;
                }
            }
        }

        > li > ul {
            margin: 0;
        }
    }
}

.pages_view_sub_menu {
    border: 0;
    font-size: @font-size-base - 1;
    padding: 0;

    a, a:hover {
        color: darken(@block-bg, 30%);
    }

    a:hover {
        color: @link-color;
        transition: @transition;
    }
}

#page_profile_index {
    #panels #right {
        right: -@column-width;
    }
}

.noHeader(page_profile_index);

.profile_image_holder {
    i {
        position: absolute;
        left: 50%;
        top: 50%;
        font-size: 30px;
        margin-left: @block-content-padding*-1;
        margin-top: @block-content-padding * -1;
    }
}

._is_profile_view {
    #top {
        margin-top: 0;
    }

    #header {
        display: none;
    }

    .profiles_banner .breadcrumbs_menu {
        top: auto;
        position: absolute;
        bottom: -10px;
        right: 10px;
        z-index: 10;
    }
}

#page_profile_index #container #right {
    width: auto;
}

#page_user_privacy .table_right {
    background: inherit;
    border: none;
    @media (max-width: @screen-xs) {
        .privacy_setting_div {
            width: 100%;
            a {
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;

                i.fa-caret-down {
                    display: none;
                }
            }

            ul.dropdown-menu {
                left: auto;
                right: 0;
            }
        }
    }
}