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

.shg-blocks .shg-game-top-handicapper {
    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 2.5rem;
            background-color: var(--color-game-top-handicapper-inner-bg);
            border: 1px solid var(--color-game-top-handicapper-inner-border);

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

            .top-header {   
                .top-title {
                    width: 100%;
                    display: flex;
                    color: var(--color-game-top-handicapper-title-color);

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

            .top-content {
                width: 100%;
                display: flex;
                margin-top: 1.2rem;
                gap: 1.5rem;

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

                @media (max-width: $breakpoint-sm) {
                    & {
                        flex-direction: column;
                    }
                }
                
                .top-capper {
                    width: 15%;
                    display: flex;
                    justify-content: flex-start;
                    align-items: flex-start;

                    @media (max-width: $breakpoint-sm) {
                        & {
                            width: 100%;
                            justify-content: center;
                        }
                    }

                    img {
                        width: 100%;
                        max-height: 12rem;
                        border-radius: 50%;

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

                .top-body {
                    width: 85%;
                    display: flex;
                    flex-direction: column;

                    @media (max-width: $breakpoint-sm) {
                        & {
                            width: 100%;
                        }
                    }

                    .body-header {
                        .header {
                            display: flex;
                            justify-content: space-between;
                            margin-bottom: 1rem;

                            @media (max-width: $breakpoint-md) {
                                & {
                                    gap: .8rem;
                                    flex-direction: column;
                                    align-items: center;
                                }
                            }

                            .body-header-capper {
                                .name {
                                    color: var(--color-game-top-handicapper-header-name);
                                }

                                .separator {
                                    color: var(--color-game-top-handicapper-header-separator);
                                    margin: 0 .3rem;
                                }

                                .cat {
                                    color: var(--color-game-top-handicapper-header-cat);
                                }
                            }
                        }
                    }

                    .games {
                        width: 100%;
                        display: flex;
                        gap: 1rem;
                        margin-top: 1.5rem;
                        justify-content: center;

                        @media (max-width: $breakpoint-md) {
                            & {
                                flex-direction: column;
                            }
                        }
                        
                        .game {
                            display: flex;
                            width: calc(100%/2);
                            flex-direction: column;

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

                            .game-title {
                                width: 100%;
                                display: flex;
                                justify-content: center;
                                text-align: center;
                                padding: .3rem;
                                border-top-left-radius: .7rem;
                                border-top-right-radius: .7rem;
                                color: var(--color-game-top-handicapper-game-color);
                                border-bottom: 2px solid var(--color-game-top-handicapper-game-border);
                                background-color: var(--color-game-top-handicapper-game-bg);
                            }

                            .game-body {
                                background-color: var(--color-game-top-handicapper-game-body);
                                height: -webkit-fill-available;

                                .list-games {
                                    width: 100%;
                                    display: flex;
                                    gap:.5rem 2.5rem;
                                    padding: 1rem 2rem;
                                    flex-wrap: wrap;
                                    justify-content: space-between;

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

                                    .list-game {
                                        display: flex;
                                        justify-content: space-between;
                                        width: calc(100% / 2 - 1.5rem);

                                        @media (max-width: $breakpoint-lg) {
                                            & {
                                                width: 100%;
                                            }
                                        }

                                        .time {
                                            color: var(--color-game-top-handicapper-list-game-time);
                                        }

                                        .amount {
                                            color: var(--color-game-top-handicapper-list-game-amount);
                                        }
                                    }
                                }

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

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

                                        @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%;

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

                                            @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;

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

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

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

                                            .spread {
                                                width: 30%;

                                                @media (max-width: 1100px) {
                                                    & {
                                                        width: 33.33%;
                                                    }
                                                }
                                            }

                                            .moneyline {
                                                width: 32%;

                                                @media (max-width: 1100px) {
                                                    & {
                                                        width: 33.33%;
                                                    }
                                                }
                                            }

                                            .over-under {
                                                width: 38%;

                                                @media (max-width: 1100px) {
                                                    & {
                                                        width: 33.33%;
                                                    }
                                                }
                                            }
                                        }
                                    }

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

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

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

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

                                        .team {
                                            display: flex;

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

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

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

                                            .team-name {
                                                width: 40%;

                                                @media (max-width: 1100px) {
                                                    & {
                                                        width: 100%;
                                                        text-align: center;
                                                        background-color: var(--color-game-top-handicapper-footer-bg);
                                                    }
                                                }

                                                @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-game-top-handicapper-footer-bg);
                                                    }
                                                }
                                            }

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

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

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

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

                                                .spread {
                                                    width: 30%;

                                                    @media (max-width: 1100px) {
                                                        & {
                                                            width: 33.33%;
                                                        }
                                                    }
                                                }
    
                                                .moneyline {
                                                    width: 32%;

                                                    @media (max-width: 1100px) {
                                                        & {
                                                            width: 33.33%;
                                                        }
                                                    }
                                                }
    
                                                .over-under {
                                                    width: 38%;

                                                    @media (max-width: 1100px) {
                                                        & {
                                                            width: 33.33%;
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }

                            .game-footer {
                                display: flex;
                                justify-content: center;
                                padding: .2rem;
                                border-bottom-left-radius: .7rem;
                                border-bottom-right-radius: .7rem;
                                min-height: 2.2rem;
                                color: var(--color-game-top-handicapper-footer-color);
                                background-color: var(--color-game-top-handicapper-footer-bg);
                            }
                        }
                    }
                }
            }

            .title-picks {
                margin-top: 1.5rem;
            }

            .picks {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 1rem;
                margin-top: 1.5rem;
        
                .pick {
                    display: flex;
                    flex-direction: column;
                    width: 23.5rem;
                    border-radius: .5rem;
                    background-color: var(--color-white);
                    padding-top: 1rem;
                    padding-bottom: 1rem;
                    border: 1px solid var(--color-game-picks-border);
                    justify-content: space-between;
        
                    @media (max-width: 450px) {
                        & {
                            width: 100%;
                            min-width: initial;
                        }
                    }
        
                    .pick-header {
                        display: flex;
                        flex-direction: column;
        
                        .content {
                            width: 100%;
                            display: flex;
                            padding: .5rem;
                            justify-content: space-between;
        
                            .date-time {
                                display: flex;
                                justify-content: center;
                                text-align: center;
                            }
        
                            .status {
                                display: flex;
                                justify-content: end;
                            }
                        }
                    }
        
                    .pick-body {
                        display: flex;
                        flex-direction: column;
                        padding: 0 .5rem;
                        height: -webkit-fill-available;
        
                        .teams {
                            display: flex;
                            height: -webkit-fill-available;
        
                            .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-name {
                                    padding: .3rem;
                                    text-align: center;
                                    height: 100%;
                                    display: flex;
                                    align-items: center;
                                }
                            }
        
                            .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;
                                        font-weight: 500;
                                        color: var(--color-white);
                                        border-radius: 50%;
                                        font-size: .9rem;
                                        background-color: var(--color-picks-vs-picks);
                                    }
                                }
        
                                a {
                                    width: 100%;
                                }
                            }
                        }
                    }

                    .pick-link {
                        padding: .5rem;
                        display: flex;
                        justify-content: center;

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

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

.acf-block-preview {
    .shg-game-top-handicapper {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
