@import '~@equitysim/react-uikit/dist/styles/styleguide';

.c-card-course-metric {
    padding: v-space(3) v-space(3) v-space(2) v-space(3);
    height: 100%;
    box-shadow: $box-shadow-2;
    background-color: $white;

    &__title,
    &__average {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    &__title {
        height: v-space(3);
        margin-bottom: v-space(2);

        & > h3 {
            font-weight: $font-weight-normal;
            font-size: 2.4rem;
            line-height: v-space(3);
            margin-top: 0;
            margin-bottom: 0;
        }
    }

    &__average {
        & > h4 {
            font-weight: $font-weight-bold;
            text-transform: uppercase;
            font-size: 1.2rem;
            line-height: v-space(2);
            margin-top: 0;
            margin-bottom: 0;
        }
    }

    &__average-value {
        @extend %number-value-sm;
        margin: 0;
        line-height: v-space(2);
        &--isPassing {
            color: $success-color;
        }
        &--isFailing {
            color: $bittersweet;
        }
    }

    &__histogram {
        margin-top: v-space(2);
        height: v-space(13);
    }

    &__help {
        display: block;
        height: v-space(2);
        width: v-space(2);
        color: $grey-50;
        background-color: transparent;
        font-weight: $font-weight-bold;
        font-size: 1.2rem;
        border-color: $grey-80;
        border-radius: 50%;
        border-width: 0.1rem;
        border-style: solid;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease-in-out;

        &:hover {
            color: $white;
            background-color: $success-color;
            border-color: $success-color;
        }
    }

    &__legend {
        @extend %caption;
        font-weight: $font-weight-bold;
        margin-top: v-space(1);
        margin-bottom: 0;
        text-align: right;
    }
}
