/*! _account.scss | Nephos | CSS Ninja */

/* ==========================================================================
Account pages styles
========================================================================== */

/***
TABLE OF CONTENTS
=============================================================================
0. Account Header
1. Wishlist styles
2. Profile Card
3. Details Card
4. Wishlists
5. Avatar Upload
=============================================================================
***/

/* ==========================================================================
0. Account Header
========================================================================== */

//Page title
.account-header {
    h2 {
        font-family: 'Quicksand', sans-serif;
        font-size: 1.8rem;
        font-weight: 400 !important;
        text-transform: uppercase;
    }
    .account-title {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
        h2 {
            width: 100%;
        }
        //icon
        .account-icon {
            width: 100%;
            height: 62px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            img {
                height: 40px;
                width: 40px;
                border-radius: 50%;
                display: block;
            }
            span {
                text-transform: uppercase;
                font-size: 80%;
                color: $accent-grey;
                display: block;
            }
        }
        //Filigrane Logo
        .brand-filigrane {
            position: absolute;
            top: -20px;
            left: -40px;
            height: 80px;
            opacity: 0.4;
        }
    }
}

/* ==========================================================================
1. Tabs
========================================================================== */

.account-tabs {

    li {
        a {
            color: $muted-grey;
            border-width: 1px;
            padding-bottom: 15px;
            
            &:hover {
                color: $muted-grey;
                border-color: $brand-orange;
            }

            &.registration-form {
                padding-left: 0;
            }
        }
        &.is-active {
            a {
                color: $brand-orange;
                border-color: $brand-orange;
            }
        }
    }
    //Suppressing margins when there are controls
}

/* ==========================================================================
2. Profile Card
========================================================================== */

.profile-card {
    border: none;
    margin-bottom: 20px;
    border: 1px solid #ededed;
    //Body
    .card-body {
        padding: 20px 40px;
    }
    //Avatar
    .profile-image {
        img {
            display: block;
            width: 130px;
            height: 130px;
            border-radius: 50%;
            margin: 0 auto;
        }
    }
    //User Meta
    .username {
        padding-top: 30px;
        span, small {
            display: block;
        }
        span {
            color: #424242;
            font-weight: 500;
            font-size: 1.42rem;
        }
        small {
            font-size: 1rem;
            color: #999;
        }
    }
    //Achievment footers
    .profile-footer {
        padding: 20px 40px;
        background: #fcfcfc;
        .achievement-title {
            font-family: 'Quicksand', sans-serif;
            text-transform: uppercase;
            font-weight: 500;
            font-size: .75rem;
            color: $muted-grey;
        }
        .count {
            font-size: 1.5rem;
            font-weight: 700;
            color: $dark-text;
        }
    }
}

/* ==========================================================================
3. Details Card
========================================================================== */

//Cards that display information
.profile-info-card, .menu-card {
    margin-bottom: 20px;
    position: relative;
    
    &.card-mt {
        margin-bottom: 0;
        border: none;
    }
    //Title
    .card-title {
        position: relative;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        background: $smoke-white;
        z-index: 2;

        &.logo-name-wbs {
            justify-content: flex-start;

            .logo-wbs {
                width: 30px;
            }

            h3 {
               margin-left: 10px; 
            }
        }

        h3 {
            font-weight: 500;
            color: $muted-grey-bold;
        }
        //Edit button
        .edit-account {
            position: relative;
            height: 40px;
            width: 40px;
            max-height: 40px;

            svg {
                transition: all .3s;
                transform: rotate(0);
                stroke-width: 1.2px;
            }
            a {
                color: grey;
                height: 40px;
                width: 40px;
                display: flex;
                justify-content: center;
                align-items: center;
                border: 1.8px dashed $muted-grey;
                border-radius: 50%;
                max-height: 40px;
                transition: all .3s;
                span {
                    font-size: 90% !important;
                    padding-left: 5px;
                }
                &:hover {
                    border: 1.8px solid $brand-orange;
                    svg {
                        stroke: $brand-orange;
                        transform: rotate(90deg);
                    }
                }
            }
        }
        //Confirm button
        .confirm-button {
            position: relative;
            height: 40px;
            width: 40px;
            max-height: 40px;

            svg {
                transition: all .3s;
                transform: rotate(0);
                stroke-width: 1.2px;
            }
            a {
                color: grey;
                height: 40px;
                width: 40px;
                display: flex;
                justify-content: center;
                align-items: center;
                border: 1.8px dashed $muted-grey;
                border-radius: 50%;
                max-height: 40px;
                transition: all .5s;
                span {
                    font-size: 90% !important;
                    padding-left: 5px;
                }
                &:hover {
                    border: 1.8px solid $brand-orange;
                    svg {
                        stroke: $brand-orange;
                        transform: rotate(360deg);
                    }
                }
            }
        }
    }
    //Body
    .card-body {
        padding: 20px 35px;

        .register-profile {
            align-items: center;

            img {
                width: 20px;
            }

            p {
                color: #999;
                font-size: 15px;
            }
        }

        .credit-card-num {
            position: relative;

            i {
                position: absolute;
                top: 15px;
                left: 0;
                font-size: 3em;
                color: #999;
            }

            div {
                margin-left: 40px;
            }
        }

        &.h-body {
            height: 250px;
        }
        .info-block {
            margin-bottom: 20px;
            .chosen-container .chosen-results li.highlighted {
                color: $brand-orange;
            }
            span {
                display: block;
                &.label-text {
                    color: $dark-text;
                    font-weight: 500;
                    font-size: 0.85rem;
                }
                &.label-value {
                    color: $muted-grey-bold;
                }
            }

            .control {
                margin-top: 10px;
            }
        }
        .main-address {
            position: relative;
            top: 1px;
            font-size: 0.8rem;
            color: $muted-grey-bold;
        }
    }
    //Dark background cards
    &.is-dark {
        background: $sidebar;
        color: $white;

        &.bg-bsp {
            background-color: #fff;
        }

        //Achievement card
        &.is-achievement {

            .name-logo-website {
                padding: 25px 25px 10px 25px;
                display: flex;
                justify-content: flex-start;
                align-items: center;

                .name-website {
                    text-transform: uppercase;
                    font-size: 0.8rem;
                    font-family: 'Quicksand', sans-serif;
                    color: #000;
                    font-size: 1rem;
                    margin-left: 10px;
                    font-weight: 600;
                }

                .logo-mp {
                    width: 45px;
                }
            }

            .name-register {
                padding-bottom: 25px;
                display: flex;
                justify-content: center;
                align-items: center;
                

                img {
                    height: 100%;
                    width: 30px;
                }

                span {
                    color: #000;
                    margin-left: 10px;
                }

            }
            //Body
            .card-body {
                display: flex;
                justify-content: flex-start;
                align-items: center;
                padding: 25px;
                
                img {
                    height: 100%;
                    width: 65px;
                }
                //Title
                .achievement-name {
                    padding: 0 10px;
                    span {
                        display: block;
                        font-family: 'Quicksand', sans-serif;
                        font-weight: 500;

                        &.is-gold {
                            color: #818181;
                            font-size: .9rem;
                        }
                        &.is-green {
                            color: #fff;
                            font-size: 1rem;
                        }
                    }
                }
            }
        }
    }
    //Overflow modifier
    &.has-overflow {
        overflow: visible !important;
        //Chosen Select
        .chosen-single {
            max-height: 36px;
            span {
                max-height: 36px;
                display: block;
                position: relative;
                top: -42.5px;
                left: -8px;
            }
        }
        //js Switch
        .switch-wrapper {
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
    //Card background icon
    .card-bg {
        position: absolute;
        right: -32px;
        bottom: 6px;
        height: 160px;
        opacity: 0.3;
    }
}

/* ==========================================================================
4. Wishlists
========================================================================== */

//Wishlists menu
.menu-card {
    //Menu List
    .wishlists {
        li {
            padding: 5px 20px;
            border-top: 1px solid $fade-grey;
            a {
                padding: 10px 0;
                display: block;
                color: $muted-grey;
            }
            //Active State
            &.is-active {
                a {
                    color: $primary !important;
                }
            }
            &:first-child {
                border-top: none !important
            }
            &:hover {
                background: $smoke-white;
                a {
                    color: $muted-grey-bold;
                }
            }
        }
    }
}

//List of wishlist items
.wishlist-card {
    overflow: visible;
    .wishlist {
        //item
        .wishlist-item {
            border-top: 1px solid $fade-grey;
            &:first-child {
                border-top: none !important
            }
            span {
                display: block;
            }
            //Wrapper
            .item-wrapper {
                position: relative;
                display: flex;
                justify-content: flex-start;
                align-items: center;
                padding: 10px 40px;
                &:hover {
                    .on-sale {
                        display: flex;
                        justify-content: center;
                        align-items: center; 
                    }
                }
                //Image
                img {
                    height: 80px;
                    //margin-right: 20px;
                }
                //Product meta
                .product-info span {
                    &:first-child {
                        font-family: 'Quicksand', sans-serif;
                        font-weight: 600;
                        font-size: .9rem;
                    }
                    &:last-child {
                        font-size: 70%;
                        font-weight: 500;
                        text-transform: uppercase;
                        color: $muted-grey-bold;
                    }
                }
                //Actions
                .action {
                    margin-left: auto;
                    //Dropdown
                    .dropdown-button {
                        position: relative;
                        height: 40px;
                        width: 40px;
                        max-height: 40px;

                        svg {
                            width: 20px;
                            height: 20px;
                            transition: all .3s;
                            transform: rotate(0);
                            stroke-width: 1.2px;
                        }
                        a {
                            color: grey;
                            height: 40px;
                            width: 40px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            border: 1.8px dashed $muted-grey;
                            border-radius: 50%;
                            max-height: 40px;
                            transition: all .3s;
                            span {
                                font-size: 90% !important;
                                padding-left: 5px;
                            }
                            &:hover {
                                border: 1.8px solid $primary;
                                svg {
                                    stroke: $primary;
                                }
                            }
                        }
                    }
                    //Dropdown list item
                    .dropdown-item {
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        span {
                            display: block;
                            margin-left: 15px;
                            color: $dark-text;
                        }
                        svg {
                            height: 18px;
                            width: 18px;
                            stroke-width: 1.2px;
                            stroke: $placeholder;
                        }
                        &:hover {
                            svg {
                                stroke: $primary;
                            }
                        }
                    }
                }
                //Sales indicator
                .on-sale {
                    position: absolute;
                    top: -15px;
                    left: -15px;
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    background: $primary;
                    display: none;
                    transform: rotate(0);
                    transition: opacity .3s;
                    svg {
                        height: 12px;
                        width: 12px;
                        stroke: $white;
                        stroke-width: 3px !important;
                        transform: rotate(0) translate(5px,5px);
                    }
                }
            }
        }
    }
}

//Wishlist pagination
.wishlist-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    //list
    ul {
        //Pagination Item
        li {
            display: inline-block;
            margin: 0 5px;
            transition: all .3s;
            cursor: pointer;
            span {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 45px;
                height: 45px;
                border-radius: 50%;
                background: $muted-grey;
                font-size: .9rem;
                color: $white;
                transition: inherit;
            }
            //Active state
            &.is-active {
                span {
                    background: $primary;
                    font-weight: 500;
                    box-shadow:  0px 5px 43px rgba(0, 0, 0, 0.18) !important;
                }
            }
            &:hover {
                opacity: 0.7;
                span {
                    box-shadow:  0px 5px 43px rgba(0, 0, 0, 0.18) !important;
                }
            }
        }
    }
}

//Edit Account
.avatar-wrapper{
    position: relative;
    height: 100px;
    width: 100px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 1px 1px 15px -5px black;
    transition: all .3s ease;
    &:hover{
        //transform: scale(1.05);
        cursor: pointer;
    }
    &:hover .profile-pic{
        opacity: .5;
    }
    .profile-pic {
        height: 100%;
        width: 100%;
        transition: all .3s ease;
        &:after{
            font-family: FontAwesome;
            //content: "\f083";
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            position: absolute;
            font-size: 60px;
            //background: #ecf0f1;

            color: #34495e;
            text-align: center;
            display:flex;
            justify-content: center;
            align-items: center;
        }
    }
    .upload-button {
        position: absolute;
        top: 0; left: 0;
        height: 100%;
        width: 100%;
        .upload-icon {
            position: absolute;
            width: 30px;
            height: 30px;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            text-align: center;
            opacity: 0;
            transition: all .3s ease;
            stroke: $primary;
        }
        &:hover .upload-icon {
            opacity: .9;
        }
    }
}

/* ==========================================================================
5. Avatar Upload
========================================================================== */

//Card
.upload-card {
    padding: 40px 20px;
    border: 1px solid #ededed;
    //user
    .username {
        padding: 10px 0;
        font-weight: 500;
        span {
            display: block;
            &:nth-child(2) {
                font-size: 90%;
                font-weight: 400;
                color: $muted-grey-bold;
            }
        }
    }
    //Button
    .button {
        font-weight: 500 !important;
        text-transform: uppercase;
        margin: 0 auto !important;
    }
}

.update-card {
    line-height: 1.42857;
    font-size: 24px;
    margin-bottom: 20px;
}