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

@property --color-shr-recaps-picks-inner-bg {syntax: "<color>";inherits: true;initial-value: #ffffff;}
@property --color-shr-recaps-picks-border {syntax: "<color>";inherits: true;initial-value: #cccccc;}
@property --color-shr-recaps-picks-title-color {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-shr-recaps-picks-link-bg {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-shr-recaps-picks-handicapper-name {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-shr-recaps-picks-handicapper-package {syntax: "<color>";inherits: true;initial-value: #0160ac;}

.shr-blocks .sh-recap-picks-recaps {
    width: calc(var(--vw, 1vw) * 100);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 99.55vw;

    .container.content {
        padding-left: 20px;
        padding-right: 20px;

        .inner-content {
            width: 100%;
            border-radius: 1rem;
            padding: 1.5rem;
            background-color: var(--color-shr-recaps-picks-inner-bg);
            border: 1px solid var(--color-shr-recaps-picks-border);

            @media (max-width: $breakpoint-sm) {
                & {
                    padding: 1rem;
                }
            }

            .title-picks {
                scroll-margin-top: 2rem;
            }

            .picks {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 1rem;
                margin-top: 1.5rem;

                .pick {
                    display: flex;
                    flex-direction: column;
                    width: 24.5rem;
                    border-radius: .5rem;
                    background-color: var(--color-white);
                    padding-top: 1rem;
                    padding-bottom: 1rem;
                    border: 1px solid var(--color-shr-recaps-picks-border);
                    justify-content: space-between;
        
                    .pick-header {
                        display: flex;
                        flex-direction: column;
                        border-bottom: 1px solid var(--color-gray);
        
                        .content {
                            width: 100%;
                            display: flex;
                            padding: 0 1rem 1rem 1rem;
                            justify-content: space-between;

                            @media (max-width: 460px) {
                                & {
                                    flex-direction: column;
                                }
                            }
        
                            .handicapper {
                                display: flex;
                                align-items: center;

                                .image {
                                    display: flex;
                                    align-items: center;
                                    img {
                                        width: 4rem;
                                        height: 4rem;
                                        border-radius: 50%;
                                        margin-right: .5rem;
                                    }
                                }

                                .description {
                                    .name {
                                        color: var(--color-shr-recaps-picks-handicapper-name);
                                    }

                                    .package {
                                        color: var(--color-shr-recaps-picks-handicapper-package);
                                    }
                                }
                            }
        
                            .stats {
                                display: flex;
                                align-items: center;
                                gap: .3rem;

                                @media (max-width: 460px) {
                                    & {
                                        margin-top: .8rem;
                                        justify-content: center;
                                    }
                                }

                                .red {
                                    color: var(--color-danger);
                                }

                                .green {
                                    color: var(--color-success);
                                }
                            }
                        }
                    }
        
                    .pick-body {
                        display: flex;
                        flex-direction: column;
                        padding: 0 .5rem;

                        .data {
                            display: flex;
                            gap: .5rem;
                            margin: .5rem 0;
                            color: var(--color-gray-100);

                            .status_home {
                                width: 30%;
                                text-align: left;
                            }

                            .date {
                                width: 40%;
                                text-align: center;
                            }

                            .status_visitor {
                                width: 30%;
                                text-align: right;
                            }
                        }
        
                        .teams {
                            display: flex;
                            border-bottom: 1px solid var(--color-gray);
        
                            .team {
                                display: flex;
                                align-items: center;
                                justify-content: flex-start;
                                flex-direction: column;
        
                                &:nth-last-of-type(1), &:nth-last-of-type(3) {
                                    width: 38%;
                                }
        
                                &:nth-last-of-type(2) {
                                    width: 24%;
                                }
        
                                .team-logo {
                                    img {
                                        max-width: 90px;
                                        max-height: 90px;
        
                                        @media (max-width: 450px) {
                                            & {
                                                max-width: 70px;
                                                max-height: 70px;
                                            }
                                        }
                                    }
                                }
                            }
        
                            .team-vs {
                                display: flex;
        
                                .vs-logo {
                                    width: 100%;
                                    height: 100%;
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;
        
                                    span {
                                        display: flex;
                                        justify-content: center;
                                        align-items: center;
                                        height: 1.7rem;
                                        width: 1.7rem;
                                        color: var(--color-gray-100);
                                        border-radius: 50%;
                                    }
                                }
                            }
                        }
                    }

                    .footer {
                        padding: .5rem;
                        display: flex;
                        flex-direction: column;
                        text-align: center;
                        color: var(--color-gray-100);

                        .footer-link {
                            padding-top: 1rem;
                            display: flex;
                            justify-content: center;

                            .link {
                                width: 100%;
                                display: flex;
                                justify-content: center;
                                border-radius: .3rem;
                                padding: .5rem;
                                background-color: var(--color-shr-recaps-picks-link-bg);

                                span {
                                    text-align: center;
                                    color: var(--color-white);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.acf-block-preview {
    .sh-recap-picks-recaps {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
