$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-header-wrapper {
        display: grid;
        grid-template-columns: repeat(14, 1fr);
        gap: 1rem;
        align-items: stretch;

        .handicapper-card {
            grid-column: 1 / 9;
            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 / 15;
            }

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

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

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

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

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

                .handicapper-card-desc {
                    width: 60%;
                    line-height: 1.625;
                    font-weight: 400;
                    font-size: 1rem;
                    color: $handicappers-primary-color;
                    height: 350px;
                    overflow-y: auto;

                    @media (max-width: $breakpoint-lg) {
                        & {
                            height: auto;
                        }
                    }

                    @media (max-width: $breakpoint-md) {
                        & {
                            max-height: 200px;
                        }
                    }
                    
                    @media screen and (max-width: $breakpoint-sm) {
                        width: 100%;
                        text-align: center;
                        max-height: 250px;
                    }
                }
            }

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

                @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;
                    }
                }

                .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: 9 / 15;
            display: flex;
            flex-direction: column;
            row-gap: 1rem;

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

            .package {
                border-radius: 1rem;
                box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
                border: 1px solid #E6EBF2;
                overflow: hidden;

                .package-header {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    height: 35px;
                    background-color: #ffffff;
                    align-content: center;

                    &.danger {
                        background-color: #DB2C2C;
                    }

                    .package-title {
                        color: white;
                        font-size: 14px;
                        font-weight: 600;
                        text-align: center;
                    }
                }

                .package-body {
                    display: flex;
                    padding: 1rem;
                    background-color: #ffffff;

                    @media (max-width: 1200px) {
                        & {
                            flex-direction: column;
                        }
                    }

                    @media (max-width: $breakpoint-lg) {
                        & {
                            flex-direction: row;
                        }
                    }

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

                    .package-description {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        gap: 1rem;
                        padding: .5rem;
                        width: 50%;
                        // background-color: lightblue;

                        @media (max-width: 1200px) {
                            & {
                                width: 100%;
                            }
                        }

                        @media (max-width: $breakpoint-lg) {
                            & {
                                width: 50%;
                            }
                        }

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

                        .name {
                            font-size: 1.2rem;
                            font-weight: 800;
                        }

                        .picks {
                            font-size: .9rem;
                            font-weight: 700;
                            color: #67748e;
                        }

                        .includes {
                            align-self: flex-start;
                            text-align: left;
                            color: #000000;
                            font-weight: 700;
                            font-size: .9rem;

                            .label {
                                color: #67748e;
                                font-weight: 600;
                                margin-right: .3rem;
                            }
                        }
                    }

                    .package-price {
                        width: 50%;
                        border-left: 1px solid #E6EBF2;
                        padding-left: 1rem;
                        // background-color: lightgreen;

                        @media (max-width: 1200px) {
                            & {
                                width: 100%;
                                border-left: none;
                                padding-left: 0;
                                margin-top: 1rem;
                            }
                        }

                        @media (max-width: $breakpoint-lg) {
                            & {
                                width: 50%;
                                border-left: 1px solid #E6EBF2;
                                padding-left: 1rem;
                                margin-top: 0;
                            }
                        }

                        @media (max-width: $breakpoint-sm) {
                            & {
                                width: 100%;
                                border-left: none;
                                padding-left: 0;
                                margin-top: 1rem;
                            }
                        }

                        .packages {
                            display: flex;
                            flex-direction: column;
                            gap: .5rem;
                            padding-bottom: 1rem;

                            .item-package {
                                display: flex;
                                background-color: #EEF4FC;
                                border-radius: .5rem;
                                padding: .5rem;

                                .option {
                                    line-height: 0;
                                    input {
                                        height: 1.8rem;
                                        width: 1.8rem;
                                    }
                                }

                                .price {
                                    display: flex;

                                    .amount {
                                        line-height: 1.6rem;
                                        font-size: 1.7rem;
                                        font-weight: 800;
                                        padding: 0 .3rem;
                                    }

                                    .frequency {
                                        display: flex;
                                        align-items: center;
                                        font-size: .75rem;
                                        line-height: .9rem;
                                    }
                                }
                            }
                        }

                        .buttons {
                            .primary {
                                display: flex;
                                width: 100%;
                                padding: .8rem;
                                background: #1C4579;
                                border-radius: 8px;
                                font-weight: 700;
                                font-size: 14px;
                                line-height: 20px;
                                color: #FFFFFF;
                                justify-content: center;

                                &:hover {
                                    background-color: #8aa9d1;
                                }
                            }
                        }
                    }
                }

                .package-footer {
                    display: flex;
                    justify-content: center;
                    padding: 1rem;
                    border-top: 1px solid #E6EBF2;
                    background-color: #FFFFFF;
                    color: #878787;
                    font-size: .7rem;
                }
            }
        }
    }

    .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;
            margin-top: 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;
    }
}
