@use "../theme/colors" as *;
@use "../theme/breakpoints" as *;

#programs-list {
    overflow-y: auto;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    justify-content: center;

    @media screen and (max-width: $breakpoints-md) {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        padding-bottom: 80px;
    }
}

.program-thumbnail:before {
    background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(168, 171, 179) 42%, rgb(46, 54, 72) 100%);
    mix-blend-mode: multiply;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 1rem;
}

.program-thumbnail {
    position: relative;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 325px;
    text-align: left;

    @media screen and (max-width: $breakpoints-md) {
        height: 210px;
    }

    * {
        color: white;
    }

    .preview {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: transparent linear-gradient(96deg, #fc8854 0%, #ff3838 100%) 0 0 no-repeat padding-box;
        color: #fff;
        text-align: center;
        border-radius: 1rem 1rem 0 0;
        padding: 0.5rem;
        font-size: 1.1rem;
        width: 100%;
        font-weight: 600;
    }

    .taxation-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;

        div {
            background: #5f6bff;
            border-radius: 3px;
            font-size: 10px;
            line-height: 13px;
            color: #fff;
            text-transform: uppercase;
            font-weight: 700;
            padding: 2px 6px 1px 7px;
        }
    }

    .info-block {
        width: calc(100% - 25px);
        border-bottom: 6px solid $main-color;
        z-index: 1;
        padding: 1rem 0;
        margin-left: 0.7rem;
        font-weight: 600;

        p {
            font-size: 1rem !important;
            margin: 0.7rem 0 !important;
            font-weight: 600 !important;
        }

        .actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 0.8rem;

            span {
                border: 1px solid white;
                border-radius: 1rem;
                padding: 0 0.5rem;
                font-weight: normal;
            }
        }
    }
}
