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

@property --color-picks-vs-categories-pick-bg {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-picks-vs-categories-vs {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-picks-vs-categories-vs-bg {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-picks-vs-categories-name {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-picks-vs-categories-name-bg {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-picks-vs-categories-sport {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-picks-vs-categories-date {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-picks-vs-categories-status {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-picks-vs-categories-team-name {syntax: "<color>";inherits: true;initial-value: #111111;}

.rdg-blocks .rdg-picks-vs-categories {
    &.full {
        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;
        }
    }

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;

        @include title;

        .title {
            margin-left: .6rem;
        }

        .picks {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.2rem;
            margin-bottom: 2rem;

            .message {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 1.5rem;
                border-radius: .5rem;
                background-color: var(--color-danger-light);
                border: 1px solid var(--color-danger);

                span {
                    text-align: center;
                    color: var(--color-danger);
                }
            }
    
            .pick {
                display: flex;
                flex-direction: column;
                width: 25rem;
                border-radius: .5rem;
                background-color: var(--color-picks-vs-categories-pick-bg);
                padding-top: 1rem;
                padding-bottom: 2rem;
    
                @media (max-width: 450px) {
                    & {
                        width: 100%;
                        min-width: initial;
                    }
                }
    
                .pick-header {
                    display: flex;
                    flex-direction: column;
    
                    .content {
                        width: 100%;
                        display: flex;
                        padding: .5rem;
    
                        .sport {
                            width: 20%;
                            color: var(--color-picks-vs-categories-sport);
                        }
    
                        .date-time {
                            width: 60%;
                            display: flex;
                            justify-content: center;
                            text-align: center;
                            color: var(--color-picks-vs-categories-date);
                        }
    
                        .status {
                            width: 20%;
                            display: flex;
                            justify-content: end;
                            color: var(--color-picks-vs-categories-status);
                        }
                    }
                }
    
                .pick-body {
                    display: flex;
                    flex-direction: column;
                    padding: 0 .5rem;
    
                    .teams {
                        display: flex;
    
                        .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;
                                color: var(--color-picks-vs-categories-team-name);
                            }
                        }
    
                        .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;
                                    color: var(--color-picks-vs-categories-vs);
                                    border-radius: 50%;
                                    background-color: var(--color-picks-vs-categories-vs-bg);
                                }
                            }
    
                            a {
                                width: 100%;
                            }
                            
                            .vs-name {
                                width: 100%;
                                display: flex;
                                justify-content: center;
                                border-radius: .3rem;
                                padding: .4rem;
                                background-color: var(--color-picks-vs-categories-name-bg);
    
                                span {
                                    text-align: center;
                                    color: var(--color-picks-vs-categories-name);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.acf-block-preview {
    .rdg-picks-vs-categories {
        &.full {
            width: 100%;
            position: initial;
            left: initial;
            right: initial;
            margin-left: initial;
            margin-right: initial;
            max-width: initial;
        }
    }
}
