@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

.rdg-blocks .rdg-picks-list {
    width: 100%;

    .title {
        width: 100%;
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;

        h1, h2, h3, span {
            margin: 0;
            font-weight: 400;
            font-size: var(--font-size);
            line-height: var(--line-height);
    
            @media (max-width: $breakpoint-lg) {
                & {
                    font-size: var(--font-size-lg);
                    line-height: var(--line-height-lg);
                }
            }
    
            @media (max-width: $breakpoint-md) {
                & {
                    font-size: var(--font-size-md);
                    line-height: var(--line-height-md);
                }
            }
    
            @media (max-width: $breakpoint-sm) {
                & {
                    font-size: var(--font-size-sm);
                    line-height: var(--line-height-sm);
                }
            }
        }
    }
    
    .picks {
        gap: 3rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        
        .pick {
            display: flex;
            width: 37rem;
            height: fit-content;
            border-radius: .8rem;
            flex-direction: column;
            background-color: $color-white;

            @media (max-width: 450px) {
                & {
                    width: 100%;
                    min-width: initial;
                }
            }

            .pick-header {
                width: 100%;
                display: flex;
                font-size: 1rem;
                font-weight: 600;
                color: var(--color-white);
                padding: .5rem;
                border-top-left-radius: .8rem;
                border-top-right-radius: .8rem;
                background-color: var(--color-primary-dark-light);

                .title {
                    display: initial;
                    text-align: center;
                    font-weight: 700;
                    line-height: 1.1rem;
                    color: var(--color-picks-list-pick-title);

                    @media (max-width: 400px) {
                        & {
                            width: 100%;
                            text-align: center;
                        }
                    }
                }
            }

            .content {
                padding: 1.6rem 1.6rem 2rem 1.6rem;

                .pick-content {
                    display: flex;
                    flex-direction: column;
    
                    .heading-1 {
                        color: var(--color-picks-list-pick-heading-1);
                    }

                    .heading-2 {
                        color: var(--color-picks-list-pick-heading-2);
                    }
                }
    
                .pick-description {
                    margin-top: 1.5rem;
                    text-align: justify;
                    color: var(--color-picks-list-pick-description);
                }

                .pick-list {
                    margin-top: 1.5rem;
                    text-align: justify;
                    color: var(--color-picks-list-pick-list);

                    ul {
                        margin-left: 3rem;
                        margin-bottom: 0;

                        @media (max-width: $breakpoint-sm) {
                            & {
                                margin-left: 1.3rem;
                            }
                        }

                        li {
                            &::marker {
                                color: var(--color-picks-list-pick-list-marker);
                            }
                        }
                    }
                }

                .pick-link {
                    display: flex;
                    justify-content: center;
                    margin-top: 1.5rem;

                    a {
                        color: var(--color-picks-list-pick-link-color);
                        background-color: var(--color-picks-list-pick-link-bg);
                        padding: .5rem 1rem;
                        border-radius: .3rem;

                        &:hover {
                            transition: 0.2s background-color ease-in-out, 0.2s color ease-in-out, 0.2s border-color ease-in-out, 0.2s opacity ease-in-out, 0.2s box-shadow ease-in-out;
                            color: var(--color-picks-list-pick-link-hover);
                        }
                    }
                }
            }
        }
    }

    .buttons {
        padding-top: 1rem;
        display: flex;
        justify-content: center;
        gap: 1rem;

        @media (max-width: 350px) {
            & {
                flex-direction: column;
            }
        }

        a {
            margin-top: 1rem;
            padding: .8rem 1.5rem;
            font-size: 1rem;
            font-weight: 500;
            color: var(--color-white);
            border-radius: .4rem;
            min-width: 10rem;
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: .2s background-color ease-in-out, .2s color ease-in-out, .2s border-color ease-in-out, .2s opacity ease-in-out, .2s box-shadow ease-in-out;
            
            &.link-success {
                background-color: var(--color-success);
                border-top: 3px solid var(--color-success-light);
            }

            &.link-warning {
                background-color: var(--color-warning);
                border-top: 3px solid var(--color-warning-light);
            }

            &.link-danger {
                background-color: var(--color-danger);
                border-top: 3px solid var(--color-danger-light);
            }

            &.link-default {
                color: var(--color-primary);
                background-color: var(--color-gray);
                border: 2px solid var(--color-primary);
            }

            &:last-of-type {
                @media (max-width: 350px) {
                    & {
                        margin-top: 0;
                    }
                }
            }
        }
    }
}

.acf-block-preview {
    .rdg-picks-list {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;

        .picks {
            .pick {
                .content {
                    .pick-link {
                        a {
                            text-decoration: none;
                        }
                    }
                }
            }
        }

        .buttons {
            a {
                text-decoration: none;
            }
        }
    }
}
