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

@property --color-columns-picks-white {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-columns-picks-primary-dark-light {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-columns-picks-primary {syntax: "<color>";inherits: true;initial-value: #3a96e0;}
@property --color-columns-picks-gray {syntax: "<color>";inherits: true;initial-value: #F1F1F1;}
@property --color-columns-picks-picks-available-text {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-columns-picks-picks-available {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-columns-picks-picks {syntax: "<color>";inherits: true;initial-value: #00bc00;}
@property --color-columns-picks-total {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-columns-picks-sub-title {syntax: "<color>";inherits: true;initial-value: #3a96e0;}
@property --color-columns-picks-title {syntax: "<color>";inherits: true;initial-value: #111111;}

.rdg-blocks .rdg-columns-picks {
    .preview-thumbs {
        background-image: url('../images/rdg-columns-picks-template-preview.jpg');
    }

    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: var(--color-columns-picks-white);
    
                @media (max-width: 450px) {
                    & {
                        width: 100%;
                        min-width: initial;
                    }
                }

                .column-header {
                    width: 100%;
                    display: flex;
                    color: var(--color-columns-picks-white);
                    padding: .3rem .6rem .4rem .6rem;
                    border-top-left-radius: .8rem;
                    border-top-right-radius: .8rem;
                    background-color: var(--color-columns-picks-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-columns-picks-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;
                    color: var(--color-columns-picks-white);
                    padding: .3rem .6rem .4rem .6rem;
                    border-bottom-left-radius: .8rem;
                    border-bottom-right-radius: .8rem;
                    background-color: var(--color-columns-picks-primary-dark-light);
                    justify-content: center;
    
                    a {
                        color: var(--color-columns-picks-white);

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

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