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

@property --color-sport-information-btn-hover {syntax: "<color>";inherits: true;initial-value: #013b6b;}
@property --color-sport-information-picks {syntax: "<color>";inherits: true;initial-value: #00bc00;}
@property --color-sport-information-picks-available {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-sport-information-picks-available-bg {syntax: "<color>";inherits: true;initial-value: #0160ac;}

.rdg-blocks .rdg-sport-information {
    .si_container {
        width: 100%;
        max-width: 100%;

        .si_header {
            background-color: var(--color-primary-dark-light);
            border-top-right-radius: .6rem;
            border-top-left-radius: .6rem;
            border-bottom: .24rem solid var(--color-primary);
            padding: 12px 0;
            text-align: center;
            color: var(--color-white);
        }

        .si_content {
            padding: 24px 20px;

            p {
                margin: 0;
            }

            .post_block {
                border-bottom: 0.063rem solid var(--color-gray);
                padding-bottom: 20px;
                
                .image_wrapper {
                    display: flex;
                    justify-content: center;
                    
                    img, .featured_image {
                        height: 300px;
                        max-height: 100%;
                        border-radius: 8px;
                        object-fit: cover;
                    }
                }

                .title {
                    color: var(--color-primary-dark-light);
                    padding: 20px 0;
                }

                .excerpt {
                    line-height: 150%;
                    text-align: justify;
                    padding-bottom: 20px;
                    
                    a {
                        display: none;
                    }
                }
            }
            
            .previews_block {
                padding-top: 36px;
                border-bottom: 0.063rem solid var(--color-gray);
                padding-bottom: 20px;

                .title {
                    color: var(--color-primary-dark-light);
                    text-align: center;
                }

                .previews_list {
                    padding: 20px 0;

                    .list {
                        padding: 0.063rem 0.625rem;
                        text-align: center;
                        margin-bottom: 0.75rem;
                        display: flex;
                        justify-content: center;
                        border-bottom: 0.063rem solid var(--color-gray);
                
                        &:last-child {
                            margin-bottom: 0;
                            border-bottom: none;
                        }
                
                        .first-team-name, .second-team-name {
                            color: var(--color-black);
                            min-width: max-content;
                            display: flex;
                            width: 50%;

                            @media (max-width: 450px) {
                                min-width: auto;
                            }
                        }
                
                        .first-team-name {
                            justify-content: flex-end;
                        }
                
                        .second-team-name {
                            justify-content: flex-start;
                        }
                
                        .versus {
                            color: var(--color-primary-dark-light);
                            margin: 0 0.3125rem;
                            display: flex;
                            justify-content: center;
                            width: 10%;
                        }
                    }
                }

                .previews_links {
                    display: flex;
                    justify-content: center;
                    gap: 0.625rem;

                    .btn {
                        background-color: var(--color-primary-dark-light);
                        color: var(--color-white);
                        padding: 0.625rem;
                        min-width: 7.313rem;
                        text-align: center;
                        border-radius: 0.3125rem;
                        transition: 0.3s ease-in;
            
                        &:hover {
                            background-color: var(--color-sport-information-btn-hover);
                        }
                    }
                }
            }

            .handicappers_block {
                display: flex;
                border-bottom: 0.063rem solid var(--color-gray);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding-top: 36px;
                padding-bottom: 20px;
                
                .title {
                    color: var(--color-primary-dark-light);
                    text-align: center;
                    padding-bottom: 20px;
                }

                .handicappers_container {
                    .handicappers_wrapper {
                        display: flex;
                        gap: 8px;
    
                        .handicappers_avatar {
                            img {
                                width: 70px;
                                height: 70px;
                                border-radius: 100%;
                                object-fit: cover;
                            }
                        }
    
                        .handicappers_info {
                            display: flex;
                            flex-direction: column;
                            align-items: flex-start;
                            justify-content: center;
        
                            .title {
                                padding: 0;
                                color: var(--color-black);
                            }
                            
                            .sub_title {
                                color: var(--color-primary-dark-light);
                            }
        
                            .total {
                                .picks {
                                    color: var(--color-sport-information-picks);
                                }
                            }
                        }
                    }
    
                    .picks_availables {
                        display: flex;
                        justify-content: center;
                        padding: .5rem 1rem 1rem 1rem;
                            
                        span {
                            margin-top: 1rem;
                            padding: .5rem 1.8rem;
                            border-radius: 0.3125rem;
                            color: var(--color-sport-information-picks-available);
                            background-color: var(--color-sport-information-picks-available-bg);
                        }
                    }
                }
                
            }

            .picks_block {
                padding-top: 36px;
                width: 60%;
                margin: 0 auto;

                @media (max-width: $breakpoint-sm) {
                    & {
                        width: 100%;
                    }
                }

                .title {
                    color: var(--color-primary-dark-light);
                    text-align: center;
                    padding-bottom: 20px;
                }

                .pick {
                    .picks_header {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                    }

                    .picks_body {
                        .teams {
                            display: flex;
                            padding-top: 20px;
                            
                            .team_a, .vs_logo, .team_b {
                                flex: 1;
                                display: flex;
                                justify-content: center;
                                align-items: center; 
                            }

                            .team_a, .team_b {
                                display: flex;
                                flex-direction: column;
                                

                                img {
                                    object-fit: cover;
                                    max-width: 90px;
                                    max-height: 90px;
                                    padding-bottom: 14px;
                                }

                                p {
                                    text-align: center;
                                }
                            }

                            .vs_logo {
                                span {
                                    height: 1.7rem;
                                    width: 1.7rem;
                                    color: var(--color-white);
                                    border-radius: 50%;
                                    background-color: var(--color-primary-dark-light);
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;
                                }      
                            }
                        }
                    }

                    .picks_availables {
                        display: flex;
                        justify-content: center;
                        padding: .5rem 1rem 1rem 1rem;
                            
                        span {
                            margin-top: 1rem;
                            padding: .5rem 1.8rem;
                            border-radius: 0.3125rem;
                            color: var(--color-sport-information-picks-available);
                            background-color: var(--color-sport-information-picks-available-bg);
                        }
                    }
                }
            }
        }

        .si_footer {
            background-color: var(--color-primary-dark-light);
            border-bottom-right-radius: .6rem;
            border-bottom-left-radius: .6rem;
            padding: 12px 0;
            text-align: center;
            color: var(--color-white);
        }
    } 
}
