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

.shg-blocks .shg-game-picks-game {
    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-game-picks-game-inner-bg);
            border: 1px solid var(--color-game-picks-game-inner-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-game-picks-game-pick-line);
                    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 {
                                        font-size: 1rem;
                                        font-weight: 700;
                                        line-height: .8rem;
                                        color: var(--color-game-picks-game-handicapper-name);
                                    }

                                    .package {
                                        font-size: 1rem;
                                        color: var(--color-game-picks-game-handicapper-package);
                                    }
                                }
                            }
        
                            .stats {
                                display: flex;
                                align-items: center;
                                font-size: .7rem;
                                gap: .3rem;

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

                                .win, .lose {
                                    font-weight: 600;
                                }

                                .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-top: .5rem;
                            color: var(--color-gray-100);

                            .status_home {
                                width: 30%;
                                text-align: left;
                                font-size: 1rem;
                                font-weight: 700;
                            }

                            .date {
                                width: 40%;
                                text-align: center;
                                font-size: 1rem;
                            }

                            .status_visitor {
                                width: 30%;
                                text-align: right;
                                font-size: 1rem;
                                font-weight: 700;
                            }
                        }
        
                        .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;
                                        font-weight: 700;
                                        color: var(--color-gray-100);
                                        border-radius: 50%;
                                        font-size: 1.2rem;
                                    }
                                }
                            }
                        }
                    }

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

                        .footer-teaser {
                            padding-top: 1rem;
                            font-size: .8rem;
                        }

                        .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-game-picks-game-link-bg);

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

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