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

@property --color-scores-and-odds-p {syntax: "<color>";inherits: true;initial-value: #67748e}
@property --color-scores-and-odds-wrapper-bg {syntax: "<color>";inherits: true;initial-value: #fff;}
@property --color-scores-and-odds-header-bg {syntax: "<color>";inherits: true;initial-value: #1c4579;}
@property --color-scores-and-odds-header-p {syntax: "<color>";inherits: true;initial-value: #fff;}

@property --color-scores-and-odds-black {syntax: "<color>";inherits: true;initial-value: #000;}
@property --color-scores-and-odds-border {syntax: "<color>";inherits: true;initial-value: #E6EBF2;}

@property --color-scores-and-odds-prev-border {syntax: "<color>";inherits: true;initial-value: #1c4579;}
@property --color-scores-and-odds-prev-bg {syntax: "<color>";inherits: true;initial-value: #fff;}
@property --color-scores-and-odds-prev-p {syntax: "<color>";inherits: true;initial-value: #1c4579;}
@property --color-scores-and-odds-prev-border-hover {syntax: "<color>";inherits: true;initial-value: #1c4579;}
@property --color-scores-and-odds-prev-bg-hover {syntax: "<color>";inherits: true;initial-value: #1c4579;}
@property --color-scores-and-odds-prev-p-hover {syntax: "<color>";inherits: true;initial-value: #fff;}

@property --color-scores-and-odds-pick-border {syntax: "<color>";inherits: true;initial-value: #1c4579;}
@property --color-scores-and-odds-pick-bg {syntax: "<color>";inherits: true;initial-value: #1c4579;}
@property --color-scores-and-odds-pick-p {syntax: "<color>";inherits: true;initial-value: #fff;}
@property --color-scores-and-odds-pick-border-hover {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-scores-and-odds-pick-bg-hover {syntax: "<color>";inherits: true;initial-value: #0160ac;}



.hierarchy-child, option[value*=-child] {
    font-weight: 700;
}

.rdg-blocks .rdg-scores-and-odds {
    .preview-thumbs {
        background-image: url('../images/rdg-scores-and-odds.png');
    }

    p {
    margin: 0;
    }

    .sao-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        place-items: center;

        @media (max-width: $breakpoint-lg) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width: $breakpoint-md) {
            grid-template-columns: repeat(1, 1fr);
        }
        
        .sao-wrapper {
            border-radius: 1rem;
            box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
            background-color: var(--color-scores-and-odds-wrapper-bg);
            color: var(--color-scores-and-odds-p);
            width: 100%;
            height: 100%;
    
            .header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                background-color: var(--color-scores-and-odds-header-bg);
                padding: 0.5rem 1rem;
                color: var(--color-scores-and-odds-header-p);
                border-top-left-radius: 1rem;
                border-top-right-radius: 1rem;
                min-height: 68px;

                p {
                    flex: 2;
                    width: 100%;
                    text-align: center;
                }

                p:nth-child(2) {
                    flex: 1;
                }
            }
    
            .body {
                padding: 0 1rem;
    
                .versus {
                    display: flex;
                    align-items: center;
                    padding: 0.5rem 0;
                    width: 100%;

                    .team-a, .team-b, .vs {
                        flex: 1;
                        display: grid;
                        place-content: center;
                    }


                    .team-a img, .team-b img{
                        width: 110px;
                        height: 110px;
                        object-fit: contain;
                    }
    
                    .vs {
                        text-align: center;
    
                        .state, .date, .hour {
                            color: var(--color-scores-and-odds-black);
                            font-weight: 700;
                        }
    
                        .vs-p {
                            font-weight: 700;
                            margin: 1rem 0;
                        }
                    }
                }
    
                .stats {
                    .stat {
                        display: flex;
                        align-items: center;
                        border-top: 1px solid var(--color-scores-and-odds-border);
                        padding: 1rem 0;
    
                        .team-a, .name, .team-b {
                            flex: 1;
                            text-align: center;
                        }
    
                        .team-a, .team-b {
                            font-weight: 700;
                        }
    
    
                        .name {
                            text-transform: uppercase;
                            letter-spacing: -0.08px;
                        }
                    }
                }
    
                .ctas {
                    display: grid;
                    grid-template-columns: repeat(1, 1fr);
                    // gap: 2rem;
                    padding: 2rem 0;

                    @media (max-width: $breakpoint-sm) {
                        grid-template-columns: repeat(1, 1fr);
                        gap: 1rem;

                    }
    
                    .preview, .pick {
                        width: 100%;
                        font-weight: 700;
                        text-align: center;
                        padding: 0.5rem 1rem;
                        border-radius: 0.5rem;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
    
                    .preview {
                        background-color: var(--color-scores-and-odds-prev-bg);
                        border: 1px solid var(--color-scores-and-odds-prev-border);
                        color: var(--color-scores-and-odds-prev-p);
                        transition: all ease 0.3s;
    
                        &:hover {
                            background-color: var(--color-scores-and-odds-prev-bg-hover);
                            border: 1px solid var(--color-scores-and-odds-prev-border-hover);
                            color: var(--color-scores-and-odds-prev-p-hover);
                        }
                    }
    
                    .pick {
                        background-color: var(--color-scores-and-odds-pick-bg);
                        border: 1px solid var(--color-scores-and-odds-pick-border);
                        color: var(--color-scores-and-odds-pick-p);
                        transition: all ease 0.3s;
    
                        &:hover {
                            background-color: var(--color-scores-and-odds-pick-bg-hover);
                            border: 1px solid var(--color-scores-and-odds-pick-border-hover);
                        }
                    }
                }
            }
        }    
    }
    
}

.acf-block-preview {
    .rdg-scores-and-odds {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
