@use '../../colors';

.bz-card {
    span {
        display: inline-block;
    }
    &__header {
        border-radius: 0.5rem 0.5rem 0 0;
        padding: 1rem;
    }
    &__body {
        padding: 1rem;
        border-radius: 0 0 0.5rem 0.5rem;
    }
    &--primary {
        .bz-card__header {
            background-color: colors.$pink-100;
        }
        .bz-card__body {
            background-color: colors.$white;
            border: 0.2rem solid colors.$pink-100;
            .bz-body-l .bz-body-m {
               display: inline;
            }
        }
    }
    &--link {
        position: relative;
        display: block;
        padding: 20px 100px 20px 20px;
        background-color: colors.$white;
        border: 0.2rem solid colors.$pink-light;
        border-radius: 0.5rem;
        color: colors.$neutral-10;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        &::after {
            position: absolute;
            content: "";
            border: solid colors.$pink-light;
            border-width: 0 3px 3px 0;
            display: inline-block;
            padding: 8px;
            right: 35px;
            top: 50%;
            margin: -8px;
            transform: rotate(-45deg);
            -webkit-transform: rotate(-45deg);
        }
        &:hover {
            border-color: colors.$blue-80;
            background-color: colors.$blue-10;
            &::after {
                border-color: colors.$blue-80;
            }
        }
    }

    &--expand {
        position: relative;
        display: block;
        background-color: colors.$white;
        border: 0.2rem solid colors.$pink-light;
        border-radius: 0.5rem;
        > a {
            color: colors.$neutral-10;
            text-decoration: none;
            font-size: 18px;
            display: block;
            position: relative;
            padding: 20px 100px 20px 20px;
            font-weight: 500;
            &::after {
                position: absolute;
                content: "";
                border: solid colors.$pink-light;
                border-width: 0 3px 3px 0;
                display: inline-block;
                padding: 8px;
                right: 35px;
                top: 50%;
                margin: -14px -8px;
                transform: rotate(45deg);
                -webkit-transform: rotate(45deg);
            }
        }
        .bz-card__content {
            display: none;
        }
        &:hover {
            border-color: colors.$blue-80;
            background-color: colors.$blue-10;
            &::after {
                border-color: colors.$blue-80;
            }
        }
    }

    &--active {
        a::after {
            transform: rotate(-135deg);
            -webkit-transform: rotate(-135deg);
            margin: -8px;
        }
        .bz-card__content {
            display: block;
            padding: 0 20px 20px;
        }
    }
}