@import 'bootstrap-sass/assets/stylesheets/bootstrap/_variables';
@import "../../styles/_enterprise_vars";

$dashboard-height: 700px;
$dashboard-padding: 30px;

.hne-dashboard {
    background-color: rgb(158, 164, 176);
    height: auto;

    @media (min-width: $screen-md-min) {
        height: $dashboard-height;
    }

    .hne-dashboard_row {
        height: 100%;
    }

    .hne-dashboard_left {
        height: 100%;
        padding: $dashboard-padding;
        width: calc(100% - 250px);

        @media (max-width: 1300px) {
            width: calc(100% - 185px);
        }

        @media (max-width: 1235px) {
            width: calc(100% - 70px);
        }

        @media (max-width: $screen-sm-max) {
            width: 100%;
        }

        .hne-dashboard_left_section {
            background-color: color('white');
            height: calc(50% - 15px);
            max-width: 1050px;
            margin: 0 auto;

            &:first-of-type {
                margin-bottom: $dashboard-padding;
            }

            .hne-dashboard_left_section_cell {
                padding: $dashboard-padding / 2;
                height: 100%;
                overflow: hidden;
            }

            .hne-dashboard_left_section_gray {
                padding: $dashboard-padding / 2;
                background-color: color('gray-light');
            }
        }
    }
    .hne-dashboard_right {
        height: 100%;
        padding: 15px;
        background-color: rgba(50, 50, 50, 0.1);
        width: 250px;

        @media (max-width: 1300px) {
            width: 185px;
        }

        @media (max-width: 1235px) {
            width: 70px;
            padding: 0;
        }

        @media (max-width: $screen-sm-max) {
            display: none;
        }
    }

    .hne-dashboard_scroll {
        height: auto;

        @media (min-width: $screen-md-min) {
            height: 250px;
            overflow-y: hidden;
            position: relative;
        }
    }

    .hne-dashboard-bottom {
        padding: 3rem;
        background-color: rgb(231, 232, 236);
        display: table;
        width: 100%;
    }
}


.item-card-group {
    clear: both;
    width: calc(100% + 10px);
    position: relative;
    height: 560px;
    overflow: hidden;

    .item-card {
        background-color: color('white');
        margin-right: 0;
        margin-bottom: 1rem;
        float: none;
        width: 100%;
        box-shadow: $shadow-light;
        height: auto;
        overflow: hidden;
        color: color('primary');
        text-decoration: none;

        @media (min-width: $screen-sm-min) {
            height: 430px;
            width: calc(100% / 3 - 10px);
            float: left;
            margin-right: 1rem;
        }

        @media (min-width: $screen-md-min) {
            height: 430px;
            width: calc(100% / 4 - 10px);
            float: left;
            margin-right: 1rem;
        }

        .item-card-header {
            color: color('primary');
            background-color: #F7F7F7;
            height: 4rem;
            font-family: $font-family-sans-serif-heavy;
            line-height: 4rem;
            text-transform: uppercase;
            padding: 0 2rem;
            font-size: 1rem;
            font-weight: bold;

            &.item-card-header--important {
                background-color: color('secondary');
            }
        }

        .item-card-body {
            padding: 1rem;
            position: relative;

            .item-card-share {
                right: 1rem;
                position: absolute;
                color: color('gray');

                &:hover {
                    color: color('primary');
                }
            }

            .item-card-image-full {
                height: 100px;
                width: 100%;
            }

            .item-card-circle-image {
                width: 70px;
                height: 70px;
                margin: 0 auto;
                border-radius: 50%;
                color: color('primary');
                font-family: $font-family-serif;
                font-size: 3rem;
                text-align: center;
                display: inline-block;
                line-height: 70px;
                float: left;
                margin: 0.7rem 2rem;

                &.item-card-circle-image--bordered {
                    border: 5px solid color('gray-light');
                }
            }
        }
    }

    &.item-card-group--expanded {
        height: auto;
    }

    .item-card-shadow {
        pointer-events: none;
        background: linear-gradient(to top, rgba(170, 174, 186, 0.5) 0%, transparent 100%);
        height: 50px;
        position: absolute;
        bottom: 30px;
        left: 0;
        right: 1rem;
        border-bottom: 1px solid rgba(170, 174, 186, 0.7);
    }

    .item-card-handle {
        margin: 0 auto;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 1rem;
        height: 30px;
        line-height: 30px;
        background-color: rgb(231, 232, 236);

        > button {
            width: 300px;
            margin-left: calc(50% - 150px);
        }
    }
}
