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

.rdg-blocks .rdg-sports-picks-vs {
    width: calc(var(--vw, 1vw) * 100);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 99.55vw;

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;

        @include title;

        .picks {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
    
            .pick {
                display: flex;
                flex-direction: column;
                width: 24rem;
                border-radius: .5rem;
                background-color: var(--color-sports-picks-vs-bg);
    
                @media (max-width: 450px) {
                    & {
                        width: 100%;
                        min-width: initial;
                    }
                }
    
                .pick-header {
                    display: flex;
                    flex-direction: column;

                    .title {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        min-height: 2.5rem;
                        border-top-left-radius: .5rem;
                        border-top-right-radius: .5rem;
                        border-bottom: .2rem solid;
                        color: var(--color-sports-picks-vs-title-color);
                        padding: .3rem;
                        text-align: center;
                        background-color: var(--color-sports-picks-vs-title);
                        border-color: var(--color-primary);
                    }
                }
    
                .pick-body {
                    display: flex;
                    flex-direction: column;
                    padding: 0 .5rem;
    
                    .teams {
                        display: flex;
                        padding-top: .5rem;
    
                        .team {
                            display: flex;
                            align-items: center;
                            justify-content: end;
                            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: 100px;
                                    max-height: 100px;
    
                                    @media (max-width: $breakpoint-sm) {
                                        & {
                                            max-width: 80px;
                                            max-height: 80px;
                                        }
                                    }
                                }
                            }
                        }
    
                        .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: 2rem;
                                    width: 2rem;
                                    font-weight: 500;
                                    color: $color-white;
                                    border-radius: 50%;
                                    font-size: 1.1rem;
                                    background-color: var(--color-primary-dark-light);
                                }
                            }
                        }
                    }
    
                    .fields {
                        display: flex;
                        flex-direction: column;
                        text-align: center;
                        margin-top: 1rem;
    
                        .separator {
                            border-top: 1px solid $color-gray-line;
                            min-height: 2rem;
                            padding: .4rem 0;
                            
                            &:last-of-type {
                                border-bottom: 1px solid $color-gray-line;
                            }
                        }

                        .field {
                            width: 100%;
                            display: flex;
                            gap: .5rem;
                            justify-content: space-between;

                            .team-home {
                                width: 40%;
                                text-align: left;
                            }

                            .leyend {
                                width: 20%;
                            }

                            .team-visitor {
                                width: 40%;
                                text-align: right;
                            }
                        }
                    }

                    .picks-available {
                        display: flex;
                        justify-content: center;
                        margin-top: 1.5rem;
                        margin-bottom: 1.5rem;

                        span {
                            color: var(--color-white);
                            border-radius: .3rem;
                            text-align: center;
                            padding: .5rem 1.3rem;
                            background-color: var(--color-primary-dark-light);
                        }
                    }
                }

                .pick-footer {
                    display: flex;
                    justify-content: center;
                    padding: .3rem;
                    background-color: var(--color-sports-picks-vs-footer);
                    border-bottom-left-radius: .5rem;
                    border-bottom-right-radius: .5rem;
                    min-height: 2.19rem;
    
                    @include link-style;
    
                    a {
                        font-weight: 600;
                        color: $color-white;
    
                        &:hover {
                            color: $color-primary;
                        }
                    }
                }
            }
        }
    }
}

.acf-block-preview {
    .rdg-sports-picks-vs {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
