﻿/* List */
.wdk-learning-card-list {
    width: 100%;
    height: 120px;
    box-shadow: var(--box-shadow);
    border-radius: var(--radius-base);
    background-color: var(--white-01);
    display: flex;
    padding: 0px 12px;
    align-items: center;
    gap: 2em;
    position: relative;
}

.wdk-learning-card-list .learning-infos {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.wdk-learning-card-list .learning-infos .learning-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--learning-card-title-color);
    margin-bottom: 8px;
}

.wdk-learning-card-list .progress {
    width: 70px;
}

.wdk-learning-card-list .progress.progress-rounded {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    margin-bottom: 0 !important;
}

.wdk-learning-card-list .progress .progress-value span {
    font-weight: 900;
    line-height: 5em;
    width: 5em;
    text-align: center;
    display: block;
    color: var(--progress-bar-rounded-text-color);
}

.wdk-learning-card-list .learning-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 166px;
}

.wdk-learning-card-list .learning-buttons .learning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    font-size: 22px;
}

.wdk-learning-card-list .learning-buttons .learning-button {
    width: 110px;
}

.wdk-learning-card-list + .wdk-learning-card-list {
    margin-top: 32px;
}

/* Gallery */
.wdk-learning-card-gallery {
    width: 343px;
    height: 628px;
    box-shadow: var(--box-shadow);
    border-radius: var(--radius-large);
    background-color: var(--white-01);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 2em;
}

.wdk-learning-card-gallery .progress-wrapper {
    height: 5px;
    width: 80%;
    display: block;
}

.wdk-learning-card-gallery .progress-wrapper .progress {
    height: 5px;
}

.wdk-learning-card-gallery .progress-wrapper .progress .progress-bar {
    background-color: var(--secondary)
}

.wdk-learning-card-gallery img {
    width: 295px;
    height: 185px;
    border-radius: var(--radius-large);
}

.wdk-learning-card-gallery .learning-infos {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.wdk-learning-card-gallery .learning-infos .learning-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.wdk-learning-card-gallery .learning-infos .description {
    font-size: 14px;
    margin: 0;
}

.wdk-learning-card-gallery .learning-buttons {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.wdk-learning-card-gallery .learning-buttons .learning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    font-size: 22px;
}

.wdk-learning-card-gallery .image-wrapper {
    position: relative;
    display: inline-block;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 3em;
    row-gap: 3em;
}

@media(max-width:1700px) {
    .gallery-wrapper {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(max-width:1370px) {
    .gallery-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:750px) {
    .gallery-wrapper {
        grid-template-columns: 1fr;
    }
}

/* BADGES */
.learning-badge-training {
    font-size: 14px;
    text-align: center;
    width: 110px;
    border-radius: var(--radius-large);
    color: var(--learning-badge-training-text-color);
    background-color: var(--learning-badge-training-background-color);
}

.learning-badge-training.gallery {
    position: absolute;
    left: 10px;
    top: 10px;
}

.learning-badge-journey {
    font-size: 14px;
    text-align: center;
    width: 100px;
    border-radius: var(--radius-large);
    color: var(--learning-badge-journey-text-color);
    background-color: var(--learning-badge-journey-background-color);
}

.learning-badge-journey.gallery {
    position: absolute;
    left: 10px;
    top: 10px;
}

.learning-badge-status {
    font-size: 14px;
    text-align: center;
    width: 100px;
    border-radius: var(--radius-large);
    color: var(--learning-badge-status-text-color);
    background-color: var(--learning-badge-status-background-color);
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 5;
}

/*
    OTHERS
*/
.info-divider {
    font-size: 14px;
    margin: 0px 8px 0px 8px;
    color: var(--grey-03);
}

.info-divider-gallery {
    font-size: 14px;
    margin: 0px 8px 0px 8px;
    color: var(--grey-03);
}

.learning-date-facilitator {
    font-size: 14px;
    color: var(--grey-03);
}

/* BLANK STATE */
.wdk-learning-card-blank {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

    .wdk-learning-card-blank span {
        font-size: 16px;
        font-weight: 600;
        color: var(--primary);
    }

/* Mobile */
@media(max-width: 992px) {
    .wdk-learning-card-list {
        height: initial;
        flex-wrap: wrap;
        padding-bottom: 16px;
        row-gap: 1rem;
        column-gap: 3rem;
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 12px;
        padding: 12px;
    }
    .wdk-learning-card-list .wdk-image-upload-table-image {
        /* width: calc(100% + 48px); */
        border-radius: 8px 8px 0 0;
        /* margin-right: -24px; */
        /* margin-left: -24px; */
    }
    .wdk-learning-card-list .wdk-image-upload-table-image .wdk-image-upload-wrapper {
        opacity: initial;
    }
    .wdk-learning-card-list .wdk-image-upload-table-image .wdk-image-upload-wrapper .wdk-image-upload-bg-blur {
        filter: initial;
        -webkit-filter: initial;
    }
    .wdk-learning-card-list .learning-buttons {
        margin-left: auto;
    }
}

@media(max-width: 576px) {

    .wdk-learning-card-list {
        display: flex;
        padding: 0px 24px 16px 24px;
    }
    .wdk-learning-card-list .cover {
        height: calc(100vw * 0.5);
        width: calc(100% + 48px);
        margin-right: -24px;
        margin-left: -24px;
        border-radius: 8px 8px 0 0;
    }
    .wdk-learning-card-list .cover .wdk-image-upload-wrapper {
        display: none;
    }
    .wdk-learning-card-list .cover .cover-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
    }
    .wdk-learning-card-list .learning-buttons {
        width: 100%;
    }
    .wdk-learning-card-list .learning-buttons .learning-icon {
        display: none;
    }
    .wdk-learning-card-list .learning-buttons .learning-button {
        width: 100%;
    }
    .wdk-learning-card-list .progress.learning-progress {
        display: none;
    }
}
