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

.rdg-blocks {
    .rdg-picks-list {
        .show-full {
            width: calc(var(--vw, 1vw) * 100) !important;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            max-width: 99.55vw;
        }

        .show-default {
            width: 100% !important;
        }

        .container.content {
            width: 100%;
            display: flex;
            flex-direction: column;

            @include title;

            .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: var(--color-picks-list-pick-bg);
        
                    @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;
            }
        }
    }
}
