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

.rdg-blocks .rdg-columns-picks {
    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;

        .columns {
            gap: 2rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            
            .column {
                display: flex;
                width: 24.5rem;
                height: fit-content;
                border-radius: .8rem;
                flex-direction: column;
                background-color: $color-white;
    
                @media (max-width: 450px) {
                    & {
                        width: 100%;
                        min-width: initial;
                    }
                }

                .column-header {
                    width: 100%;
                    display: flex;
                    font-size: 1rem;
                    font-weight: 600;
                    color: var(--color-white);
                    padding: .3rem .6rem .4rem .6rem;
                    border-top-left-radius: .8rem;
                    border-top-right-radius: .8rem;
                    background-color: var(--color-primary-dark-light);
                    justify-content: center;
                }

                .picks {
                    .pick {
                        .content {
                            .center-header {
                                display: flex;
                                justify-content: center;
                                .pick-header {
                                    display: flex;
                                    padding: 1rem;
                                    min-height: 5rem;
                    
                                    @media (max-width: 400px) {
                                        & {
                                            flex-direction: column;
                                        }
                                    }
                    
                                    .header-avatar {
                                        width: 18%;
                                        display: flex;
                                        min-width: 4.2rem;
                                        align-items: flex-start;
                                        justify-content: flex-start;
                    
                                        @media (max-width: 400px) {
                                            & {
                                                width: 100%;
                                                justify-content: center;
                                                padding-bottom: .8rem;
                                            }
                                        }
                                        
                                        img {
                                            max-width: 60px;
                                            max-height: 60px;
                    
                                            @media (max-width: 400px) {
                                                & {
                                                    max-width: 80px;
                                                    max-height: 80px;
                                                }
                                            }
                                        }
                                    }
                    
                                    .header-content {
                                        width: 82%;
                                        display: flex;
                                        flex-direction: column;
                    
                                        @media (max-width: 400px) {
                                            & {
                                                width: 100%;
                                                text-align: center;
                                            }
                                        }
                    
                                        .title {
                                            display: initial;
                                            text-align: left;
                                            color: var(--color-columns-picks-title);
                    
                                            @media (max-width: 400px) {
                                                & {
                                                    width: 100%;
                                                    text-align: center;
                                                }
                                            }
                                        }
                                        
                                        .sub-title {
                                            color: var(--color-columns-picks-sub-title);
                                        }
                    
                                        .total {
                                            color: var(--color-columns-picks-total);
                    
                                            .picks {
                                                color: var(--color-columns-picks-picks);
                                            }
                                        }
                                    }
                                }
                            }
            
                            .picks-available {
                                display: flex;
                                justify-content: center;
                                padding: 0 1rem 1rem 1rem;
                                border-bottom: 1px solid var(--color-gray);
                                
                                span {
                                    padding: .5rem 1.8rem;
                                    border-radius: .5rem;
                                    color: var(--color-columns-picks-picks-available-text);
                                    background-color: var(--color-columns-picks-picks-available);
                                }
                            }
                        }
                    }
                }
    
                .pick-footer {
                    width: 100%;
                    display: flex;
                    font-size: 1rem;
                    font-weight: 600;
                    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);
                    justify-content: center;
    
                    a {
                        text-decoration: none;
                        color: var(--color-white);

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

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