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

@property --color-shr-recaps-odds-bg-grey {syntax: "<color>";inherits: true;initial-value: #f5f8fd;}
@property --color-shr-recaps-odds-bg-green {syntax: "<color>";inherits: true;initial-value: #d3f3c2;}
@property --color-shr-recaps-odds-date {syntax: "<color>";inherits: true;initial-value: #acaaaa;}
@property --color-shr-recaps-odds-labels {syntax: "<color>";inherits: true;initial-value: #acaaaa;}
@property --color-shr-recaps-odds-team-name-bg {syntax: "<color>";inherits: true;initial-value: #f7f8f9;}
@property --color-shr-recaps-odds-inner-shadow {syntax: "<color>";inherits: true;initial-value: #d6d6d6;}
@property --color-shr-recaps-odds-inner-bg {syntax: "<color>";inherits: true;initial-value: #ffffff;}
@property --color-shr-recaps-odds-title-color {syntax: "<color>";inherits: true;initial-value: #111111;}

.shr-blocks .sh-recap-odds {
    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 {
            .odd-header {
                .odd-title {
                    width: 100%;
                    display: flex;
                    margin-bottom: 1.5rem;
                    scroll-margin-top: 2rem;
                    color: var(--color-shr-recaps-odds-title-color);

                    @media (max-width: $breakpoint-md) {
                        & {
                            justify-content: center;
                            text-align: center;
                        }
                    }
                }
            }

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

                @media (max-width: $breakpoint-sm) {
                    & {
                        flex-direction: column;
                    }
                }

                .odd-body {
                    min-width: 40rem;
                    border-radius: .5rem;
                    padding: 1.5rem 1.3rem;
                    background-color: var(--color-shr-recaps-odds-inner-bg);
                    box-shadow: 0 0 4px 0 var(--color-shr-recaps-odds-inner-shadow);

                    @media (max-width: $breakpoint-md) {
                        & {
                            min-width: 37rem;
                            padding: 1.3rem 1rem;
                        }
                    }

                    @media (max-width: 620px) {
                        & {
                            width: 100%;
                            min-width: inherit;
                            padding: 1rem;
                        }
                    }

                    .odd-header {
                        width: 100%;
                        display: flex;
                        justify-content: space-between;
                        padding-left: .5rem;

                        @media (max-width: $breakpoint-md) {
                            & {
                                width: 100%;
                                flex-direction: row;
                                padding-left: .5rem;
                            }
                        }

                        @media (max-width: 620px) {
                            & {
                                flex-direction: column;
                                padding-left: 0;
                            }
                        }

                        .header-date {
                            width: 40%;
                            color: var(--color-shr-recaps-odds-date);

                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 40%;
                                    text-align: inherit;
                                }
                            }

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

                        .header-labels {
                            width: 60%;
                            display: flex;
                            text-transform: uppercase;
                            text-align: center;
                            white-space: nowrap;
                            color: var(--color-shr-recaps-odds-labels);

                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 60%;
                                }
                            }

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

                            .spread {
                                width: 30%;
                            }

                            .moneyline {
                                width: 32%;
                            }

                            .over-under {
                                width: 38%;
                            }
                        }
                    }

                    .odd-teams {
                        display: flex;
                        flex-direction: column;
                        padding-left: .5rem;
                        gap: .5rem;

                        @media (max-width: $breakpoint-md) {
                            & {
                                padding-left: .5rem;
                            }
                        }

                        @media (max-width: 620px) {
                            & {
                                padding-left: 0;
                            }
                        }

                        .team {
                            display: flex;

                            @media (max-width: $breakpoint-md) {
                                & {
                                    flex-direction: row;
                                }
                            }

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

                            .team-name {
                                width: 40%;

                                @media (max-width: $breakpoint-md) {
                                    & {
                                        width: 40%;
                                        text-align: inherit;
                                        background-color: inherit;
                                    }
                                }

                                @media (max-width: 620px) {
                                    & {
                                        width: 100%;
                                        text-align: center;
                                        background-color: var(--color-shr-recaps-odds-team-name-bg);
                                    }
                                }
                            }

                            .team-stats {
                                width: 60%;
                                display: flex;
                                gap: .5rem;
                                text-align: center;
                                white-space: nowrap;

                                @media (max-width: $breakpoint-md) {
                                    & {
                                        width: 60%;
                                    }
                                }

                                @media (max-width: 620px) {
                                    & {
                                        width: 100%;
                                    }
                                }

                                .spread {
                                    width: 30%;
                                    display: flex;
                                    flex-direction: row;
                                    justify-content: space-between;

                                    :first-child {
                                        margin-right: .5rem;
                                    }
                                }

                                .moneyline {
                                    width: 32%;
                                }

                                .over-under {
                                    width: 38%;
                                    display: flex;
                                    flex-direction: row;

                                    :first-child {
                                        margin-right: .5rem;
                                    }
                                }

                                .spread .stats-multi, .over-under .stats-multi {
                                    width: 50%;
                                    display: flex;
                                    justify-content: center;
                                    padding: 0 .2rem;
                                }

                                .bg-green {
                                    border-radius: .2rem;
                                    background-color: var(--color-shr-recaps-odds-bg-green);
                                }

                                // .bg-grey {
                                //     border-radius: .2rem;
                                //     background-color: var(--color-shr-recaps-odds-bg-grey);
                                // }
                            }
                        }
                    }
                }
            }
        }
    }
}

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