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

.rdg-blocks .rdg-admin-cappers-simple {
    width: 100%;

    @include title;
    
    .cappers {
        gap: 1.2rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        
        .capper {
            display: flex;
            width: 25rem;
            height: fit-content;
            border-radius: .8rem;
            flex-direction: column;
            background-color: $color-white;

            @media (max-width: 450px) {
                & {
                    width: 100%;
                    min-width: initial;
                }
            }

            .content {
                padding: 1rem;

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

                        @media (max-width: 350px) {
                            & {
                                flex-direction: column;
                            }
                        }
    
                        .category {
                            width: 25%;
                            text-transform: uppercase;

                            @media (max-width: 350px) {
                                & {
                                    width: 100%;
                                    text-align: center;
                                }
                            }
                        }
    
                        .date {
                            width: 50%;
                            text-align: center;

                            @media (max-width: 350px) {
                                & {
                                    width: 100%;
                                }
                            }
                        }
    
                        .handicap {
                            width: 25%;
                            text-align: right;
                            text-transform: uppercase;

                            @media (max-width: 350px) {
                                & {
                                    width: 100%;
                                    text-align: center;
                                }
                            }
                        }
                    }
    
                    .content-teams {
                        width: 100%;
                        display: flex;
                        font-weight: 700;
                        font-size: .9rem;
                        padding-top: .3rem;
                        flex-direction: row;
                        justify-content: center;
                        text-transform: uppercase;
                        color: var(--color-admin-cappers-capper-teams);
                        
                        .team-home {
                            text-align: center;
                        }
                        
                        .team-vs {
                            margin: 0 .3rem;
                            color: var(--color-black);
                        }
    
                        .team-visitor {
                            text-align: center;
                        }
                    }

                    .content-teams-logo {
                        width: 100%;
                        display: flex;
                        font-weight: 700;
                        font-size: .9rem;
                        padding-top: .3rem;
                        flex-direction: row;
                        justify-content: center;
                        text-transform: uppercase;
                        color: var(--color-admin-cappers-capper-teams);
                        
                        .teams {
                            width: 100%;
                            display: flex;
                            align-items: center;
        
                            .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: 90px;
                                        max-height: 90px;
        
                                        @media (max-width: 450px) {
                                            & {
                                                max-width: 70px;
                                                max-height: 70px;
                                            }
                                        }
                                    }
                                }
        
                                .team-name {
                                    padding: .3rem;
                                    text-align: center;
                                }
                            }
        
                            .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: 500;
                                        color: $color-white;
                                        border-radius: 50%;
                                        font-size: .9rem;
                                        background-color: var(--color-picks-vs-picks);
                                    }
                                }
        
                                .vs-name {
                                    width: 100%;
                                    display: flex;
                                    justify-content: center;
                                    border-radius: .3rem;
                                    padding: .4rem;
                                    background-color: var(--color-picks-vs-picks);
        
                                    span {
                                        text-align: center;
                                        font-weight: 600;
                                        color: $color-white;
                                        text-transform: uppercase;
                                        font-size: .9rem;
                                    }
                                }
                            }
                        }
                    }
    
                    .content-release {
                        padding-top: .3rem;

                        hr {
                            width: 100%;
                            margin: 1rem 0;
                            padding: 0;
                            border-bottom: 1px solid var(--color-gray-line);
                        }
    
                        .release-date {
                            display: flex;
                            justify-content: center;
                            text-align: center;
                        }
                    }
                }
            }
            
            .capper-footer {
                width: 100%;
                display: flex;
                color: var(--color-white);
                padding: .3rem .6rem .4rem .6rem;
                border-bottom-left-radius: .8rem;
                border-bottom-right-radius: .8rem;
                background-color: var(--color-primary-dark-light);

                .footer-link {
                    width: 50%;

                    a {
                        text-decoration: none;
                        color: var(--color-white);

                        &:hover {
                            color: var(--color-primary);
                        }
                    }
                }

                .footer-status {
                    width: 50%;
                    display: flex;
                    justify-content: end;
                    text-transform: uppercase;
                }
            }
        }
    }
}

.acf-block-preview {
    .rdg-admin-cappers-simple {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
