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

@property --color-rdg-picks-list-pick-bg {syntax: "<color>"; inherits: true; initial-value: #f1f1f1;}
@property --color-rdg-picks-list-pick-header-bg {syntax: "<color>"; inherits: true; initial-value: #0160ac;}
@property --color-rdg-picks-list-pick-title {syntax: "<color>"; inherits: true; initial-value: #ffffff;}
@property --color-rdg-picks-list-pick-content-heading-1 {syntax: "<color>"; inherits: true; initial-value: #0160ac;}
@property --color-rdg-picks-list-pick-content-heading-2 {syntax: "<color>"; inherits: true; initial-value: #111111;}
@property --color-rdg-picks-list-pick-content-list {syntax: "<color>"; inherits: true; initial-value: #111111;}
@property --color-rdg-picks-list-pick-content-list-marker {syntax: "<color>"; inherits: true; initial-value: #0160ac;}
@property --color-rdg-picks-list-pick-content-link {syntax: "<color>"; inherits: true; initial-value: #ffffff;}
@property --color-rdg-picks-list-pick-content-link-hover {syntax: "<color>"; inherits: true; initial-value: #3a96e0;}
@property --color-rdg-picks-list-pick-content-link-bg {syntax: "<color>"; inherits: true; initial-value: #0160ac;}
@property --color-rdg-picks-list-pick-description {syntax: "<color>"; inherits: true; initial-value: #111111;}
@property --color-rdg-picks-pick-header {syntax: "<color>"; inherits: true; initial-value: #ffffff;}

.rdg-blocks {
    .rdg-picks-list {
        .preview-thumbs {
            background-image: url('../images/rdg-picks-list-template-preview.jpg');
        }

        .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: space-between;

                @media (max-width: 1278px) {
                    & {
                        justify-content: center;
                    }
                }

                .pick {
                    display: flex;
                    width: 37rem;
                    height: fit-content;
                    border-radius: .8rem;
                    flex-direction: column;
                    background-color: var(--color-rdg-picks-list-pick-bg);

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

                    .pick-header {
                        width: 100%;
                        display: flex;
                        color: var(--color-rdg-picks-pick-header);
                        padding: .5rem;
                        border-top-left-radius: .8rem;
                        border-top-right-radius: .8rem;
                        background-color: var(--color-rdg-picks-list-pick-header-bg);

                        .title {
                            display: initial;
                            text-align: center;
                            color: var(--color-rdg-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-rdg-picks-list-pick-content-heading-1);
                            }

                            .heading-2 {
                                color: var(--color-rdg-picks-list-pick-content-heading-2);
                            }
                        }

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

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

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

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

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

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

                            a {
                                color: var(--color-rdg-picks-list-pick-content-link);
                                background-color: var(--color-rdg-picks-list-pick-content-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-rdg-picks-list-pick-content-link-hover);
                                }
                            }
                        }
                    }
                }
            }

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

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

                @include buttons-links;
            }
        }
    }
}

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