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

.shgr-blocks .shgr-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;

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

                            .body-header-socials {
                                display: flex;
                                gap: .5rem;
                            }
                        }

                        .body-description {
                            //font-weight: 500;
                        }
                    }

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

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

                                .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);
                                        }
                                    }
                                }
                            }

                            .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);
                            }
                        }
                    }
                }
            }
        }
    }
}

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