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

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

        .si_header {
            background-color: $color-primary-dark-light;
            border-top-right-radius: .6rem;
            border-top-left-radius: .6rem;
            border-bottom: .24rem solid $color-primary;
            padding: 12px 0;
            text-align: center;
            color: $color-white;
            font-weight: 700;
            font-size: 18px;
        }

        .si_content {
            padding: 24px 20px;

            p {
                margin: 0;
            }

            .post_block {
                border-bottom: 0.063rem solid $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 {
                    font-size: 24px;
                    font-weight: 600;
                    color: $color-primary-dark-light;
                    padding: 20px 0;
                }

                .excerpt {
                    line-height: 150%;
                    text-align: justify;
                    padding-bottom: 20px;
                    
                    a {
                        display: none;
                    }
                }

                .read_more {
                    font-weight: bold;
                    text-decoration: underline;
                }
            }
            
            .previews_block {
                padding-top: 36px;
                border-bottom: 0.063rem solid $color-gray;
                padding-bottom: 20px;

                .title {
                    font-size: 24px;
                    font-weight: 600;
                    color: $color-primary-dark-light;
                    text-align: center;
                }

                .previews_list {
                    padding: 20px 0;

                    .list {
                        padding: 0.063rem 0.625rem;
                        text-align: center;
                        font-size: 1rem;
                        margin-bottom: 0.75rem;
                        display: flex;
                        justify-content: center;
                        font-weight: bold;
                        border-bottom: 0.063rem solid $color-gray;
                
                        &:last-child {
                            margin-bottom: 0;
                            border-bottom: none;
                        }
                
                        .first-team-name,
                        .second-team-name {
                            color: $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: $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 {
                        text-transform: uppercase;
                        background-color: $color-primary-dark-light;
                        color: $color-white;
                        padding: 0.625rem;
                        min-width: 7.313rem;
                        text-align: center;
                        text-decoration: none;
                        border-radius: 0.3125rem;
                        font-weight: bold;
                        font-size: 0.875rem;
                        transition: 0.3s ease-in;
            
                        &:hover {
                            background-color: $color-button-hover-pap;
                        }
                    }
                }
            }

            .handicappers_block {
                display: flex;
                border-bottom: 0.063rem solid $color-gray;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding-top: 36px;
                padding-bottom: 20px;
                
                .title {
                    font-size: 24px;
                    font-weight: 600;
                    color: $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;
                            font-weight: bold;
        
                            .title {
                                padding: 0;
                                font-size: 16px;
                                color: $color-black;
                                font-weight: 700;
                            }
                            
                            .sub_title {
                                color: $color-primary-dark-light;
                                font-size: 12px;
                            }
        
                            .total {
                                font-size: 12px;
        
                                .picks {
                                    color: var(--color-favorite-cappers-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;
                            font-size: 0.875rem;
                            color: var(--color-favorite-cappers-picks-available-text);
                            background-color: var(--color-favorite-cappers-picks-available);
                            font-weight: bold;
                        }
                    }
                }
                
            }

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

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

                .title {
                    font-size: 24px;
                    font-weight: 600;
                    color: $color-primary-dark-light;
                    text-align: center;
                    padding-bottom: 20px;
                }

                .pick {
                    .picks_header {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        font-size: 14px;

                        .sport, .status {
                            font-weight: 700;
                        }
                    }

                    .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 {
                                    font-weight: 700;
                                    text-align: center;
                                    text-transform: uppercase;
                                    font-size: 13px;
                                }
                            }

                            .vs_logo {
                                span {
                                    height: 1.7rem;
                                    width: 1.7rem;
                                    font-weight: 500;
                                    color: var(--color-white);
                                    border-radius: 50%;
                                    font-size: .9rem;
                                    background-color: $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;
                            font-size: 0.875rem;
                            color: var(--color-favorite-cappers-picks-available-text);
                            background-color: var(--color-favorite-cappers-picks-available);
                            font-weight: bold;
                        }
                    }
                }
            }
        }

        .si_footer {
            background-color: $color-primary-dark-light;
            border-bottom-right-radius: .6rem;
            border-bottom-left-radius: .6rem;
            padding: 12px 0;
            text-align: center;
            color: $color-white;
            font-weight: 400;
            font-size: 18px;
        }
    } 
}
