$handicappers-picks-border-top: #ccc;
$handicappers-picks-accent: rgb(28, 69, 121);
$handicappers-primary-color: #67748e;
$handicappers-secondary-color: #eef4fc;
$handicappers-border-color: #e6ebf2;

.handicapper-main {
    width: 100%;
}

.type-handicapper {
    padding: 20px;
    box-sizing: border-box;

    a {
        text-decoration: none;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    p {
        margin: 0;
        padding: 0;
    }

    .shh-title {
        text-align: center;
        color: var(--color-capper-title);
    }

    .handicapper-bold {
        font-weight: 700;
        color: var(--color-black);
    }

    .handicapper-wrapper {
        padding: 0 20px;
    }

    .handicapper-header-wrapper {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1rem;

        .handicapper-card {
            grid-column: 1 / 8;
            box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
            background-color: var(--color-white);
            border-radius: 1rem;
            border: 1px solid $handicappers-border-color;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;

            @media screen and (max-width: $breakpoint-lg) {
                grid-column: 1 / 13;
            }

            .handicapper-card-header {
                display: flex;
                align-items: center;
                margin-bottom: 1.5rem;

                @media screen and (max-width: $breakpoint-sm) {
                    flex-direction: column;
                    row-gap: 1rem;
                }

                .handicapper-card-info {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;

                    img {
                        width: 100px;
                        height: 100px;
                        border-radius: 50px;
                        margin-bottom: 8px;
                    }

                    .handicapper-name {
                        font-size: 38px;
                        font-weight: 700;
                        line-height: 64px;
                        letter-spacing: -0.02em;
                        color: var(--color-black);
                        text-align: center;
                    }
                }

                .handicapper-card-desc {
                    flex: 1;
                    line-height: 1.625;
                    font-weight: 400;
                    font-size: 1rem;
                    color: $handicappers-primary-color;

                    @media screen and (max-width: $breakpoint-sm) {
                        text-align: center;
                    }
                }
            }

            .handicapper-card-stats {
                border: 1px solid $handicappers-border-color;
                background-color: $handicappers-secondary-color;
                border-radius: 1rem;
                padding: 1rem;
                display: flex;
                align-items: center;
                height: 100%;

                @media screen and (max-width: $breakpoint-sm) {
                    flex-direction: column;
                    row-gap: 1rem;
                }

                .handicapper-card-stats-info {
                    flex: 3;
                    line-height: 1.6;
                    letter-spacing: 0px;
                    font-size: 16px;
                    font-weight: 400;
                    color: $handicappers-picks-accent;

                    @media screen and (max-width: $breakpoint-sm) {
                        flex-direction: column;
                        row-gap: 1rem;
                    }

                    .handicapper-card-stats-info-top {
                        padding-bottom: 1rem;
                        border-bottom: 1px solid $handicappers-border-color;

                        @media screen and (max-width: $breakpoint-sm) {
                            text-align: center;
                        }
                    }

                    .handicapper-card-stats-info-bottom {
                        padding-top: 1rem;
                        display: grid;
                        gap: 1rem;
                        grid-template-columns: repeat(12, 1fr);

                        .handicapper-card-stats-info-left {
                            grid-column: 1 / 9;
                            display: flex;
                            gap: 1rem;
                            justify-content: space-evenly;
                            padding-right: 8px;
                            border-right: 1px solid $handicappers-border-color;

                            @media screen and (max-width: $breakpoint-sm) {
                                grid-column: 1 / 13;
                                text-align: center;
                            }
                        }

                        .handicapper-card-stats-info-right {
                            grid-column: 9 / 13;
                            display: flex;
                            justify-content: space-between;
                            gap: 8px;
                            padding-left: 8px;

                            @media screen and (max-width: $breakpoint-sm) {
                                grid-column: 1 / 13;
                                text-align: center;
                                justify-content: center;

                                div:nth-child(1) {
                                    display: flex;
                                    gap: 8px;
                                }
                            }
                        }
                    }
                }

                .handicapper-card-stats-cta {
                    display: grid;
                    place-content: center;
                    flex: 1;

                    a {
                        background-color: var(--color-white);
                        font-weight: 700;
                        font-size: 14px;
                        line-height: 20px;
                        color: $handicappers-picks-accent;
                        padding: 16px 32px;
                        border-width: 1px;
                        border-style: solid;
                        border-color: rgb(233, 236, 239);
                        border-image: initial;
                        border-radius: 8px;
                        text-align: center;
                        text-decoration: none;
                        transition: all ease 0.3s;
                        margin-left: 1rem;

                        &:hover {
                            background-color: $handicappers-picks-accent;
                            color: var(--color-white);
                            border-color: $handicappers-picks-accent;
                        }
                    }
                }
            }
        }

        .handicappers-day-wrapper {
            grid-column: 8 / 13;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            row-gap: 1rem;

            @media screen and (max-width: $breakpoint-lg) {
                grid-column: 1 / 13;
            }

            .handicappers-day {
                display: flex;
                align-items: center;
                background-color: var(--color-white);
                box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
                border-radius: 1rem;
                border: 1px solid $handicappers-border-color;
                padding: 1rem;
                max-width: 608px;
                width: 100%;

                @media screen and (max-width: $breakpoint-sm) {
                    flex-direction: column;
                    row-gap: 1rem;
                }

                .handicappers-day-info {
                    display: flex;
                    align-items: center;
                    flex: 3;

                    img {
                        width: 50px;
                        height: 50px;
                        margin-right: 8px;
                    }

                    div {
                        .handicappers-day-title {
                            font-size: 20px;
                            font-weight: 600;
                            line-height: 37px;
                            letter-spacing: -0.03em;
                            color: var(--color-black);
                        }

                        .handicappers-day-desc {
                            font-size: 10px;
                            font-weight: 400;
                            line-height: 21px;
                            letter-spacing: -0.01em;
                            color: $handicappers-primary-color;
                        }
                    }
                }

                .handicappers-day-price {
                    flex: 1;

                    p {
                        font-size: 34px;
                        font-weight: 700;
                        line-height: 46.3px;
                        letter-spacing: -0.02em;
                        color: var(--color-black);
                    }
                }

                .handicappers-day-cta {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    flex: 2;
                    align-items: center;

                    a:nth-child(1) {
                        padding: 12px 32px;
                        background: $handicappers-picks-accent;
                        border: 1px solid $handicappers-picks-accent;
                        border-radius: 8px;
                        font-weight: 700;
                        font-size: 14px;
                        line-height: 20px;
                        color: var(--color-white);
                        text-decoration: none;
                        letter-spacing: -0.025rem;
                        text-align: center;
                        margin-bottom: 8px;
                        transition: all ease 0.3s;

                        &:hover {
                            color: $handicappers-picks-accent;
                            background-color: var(--color-white);
                            border: 1px solid $handicappers-picks-accent;
                        }
                    }

                    a:nth-child(2) {
                        font-size: 11.33px;
                        font-weight: 600;
                        line-height: 15.43px;
                        letter-spacing: -0.01em;
                        color: $handicappers-picks-accent;
                        cursor: pointer;
                        text-align: center;
                    }
                }
            }
        }
    }

    .handicapper-profit-wrapper {
        display: flex;
        gap: 2rem;
        margin: 1.5rem 0;

        @media screen and (max-width: $breakpoint-sm) {
            flex-direction: column;
        }

        .profit {
            padding: 1.5rem;
            color: $handicappers-primary-color;
            background-color: $handicappers-secondary-color;
            border: 1px solid $handicappers-border-color;
            border-radius: 1rem;
            font-size: 24px;
            font-weight: 400;
            line-height: 37px;
            display: grid;
            place-content: center;
            text-align: center;
            flex: 1;
        }

        .profit--accent {
            font-size: 27px;
            font-weight: 700;
            color: $handicappers-picks-accent;
        }
    }

    .handicapper-today-picks-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;

        .shh-entry-sub-title {
            font-weight: 700;
            font-size: 26px;
            line-height: 37px;
            letter-spacing: -0.02em;
            color: var(--color-black);
            text-transform: capitalize;
            margin-bottom: 1.5rem;
        }

        .shh-card-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            place-content: center;
            color: $handicappers-primary-color;

            @media screen and (max-width: $breakpoint-lg) {
                grid-template-columns: repeat(2, 1fr);
            }

            @media screen and (max-width: $breakpoint-md) {
                grid-template-columns: repeat(1, 1fr);
            }

            .shh-card {
                border: 1px solid $handicappers-secondary-color;
                border-radius: 1rem;
                box-shadow: 0px 20px 50px 0px #F3F3F3;
                background: var(--color-white);
                padding: 1rem;
                display: flex;
                flex-direction: column;

                .shh-card-row {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding-bottom: 1rem;

                    .shh-item-text {
                        color: var(--color-capper-picks-text);
                        text-align: center;
                    }

                    .shh-align-left {
                        justify-content: flex-start;
                    }

                    .shh-align-center {
                        justify-content: center;
                    }

                    .shh-align-right {
                        justify-content: flex-end;
                    }

                    .shh-team-container {
                        text-align: center;

                        .ssh-team-img {
                            width: 60px;
                            height: 60px;
                            object-fit: contain;
                        }

                        .shh-featured {
                            text-wrap: wrap;
                            width: 120px;
                            color: var(--color-capper-featured-value);
                        }
                    }

                    .shh-tournament-container {
                        width: 100%;
                        text-align: center;

                        .shh-featured-tournament {
                            color: var(--color-capper-featured-value);
                        }
                    }
                }

                .shh-vs {
                    font-weight: 700;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    color: $handicappers-primary-color;
                }

                .shh-bordered {
                    border-top: 1px solid $handicappers-primary-color;
                    padding-top: 1rem;
                }

                .shh-card-footer {
                    text-align: center;

                    .shh-item-text--no-free {
                        text-align: center;
                        border-top: 1px solid $handicappers-primary-color;
                        padding-top: 1rem;
                        margin-top: 1rem;
                        font-size: 15px;
                    }

                    .shh-pick-btn-wrapper {
                        display: flex;
                        justify-content: center;
                        align-items: center;

                        .shh-pick-btn {
                            background-color: $handicappers-picks-accent;
                            padding: 0.5rem 1rem;
                            border-radius: 0.3rem;
                            margin-top: 1rem;
                            color: var(--color-white);
                            font-weight: 600;
                            font-size: 15px;
                        }
                    }
                }
            }
        }
    }

    .shh-content {
        padding-top: 2rem;
    }
}
