@import "../settings/mixins";
@import "../settings/variables";

.dnetor-btn {
    display: inline-block;
    @include transition(all 0.3s);
    background-color: $accent_color;
    border: solid 1px $accent_color;
    color: #fff;
    padding: 10px 26px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    &:hover {
        color: #fff;
    }

    &.btn-outline {
        background-color: transparent;
        color: $accent_color;
        border-color: $accent_color;
        &:hover {
            background-color: $accent_color;
            border-color: $accent_color;
            .dnetor-btn-icon,
            .dnetor-btn-text {
                color: #fff;
            }
        }
        .dnetor-btn-text,
        .dnetor-btn-icon {
            color: $accent_color;
        }
    }
    &.btn-link {
        background-color: transparent;
        border-width: 0;
        text-decoration: none;
        border-radius: 0;
        padding: 0;
        line-height: 1.3;
        color: $accent_color;
        &:after {
            content: "";
            height: 1px;
            @include transition(width 0.3s);
            width: 0;
            display: block;
            background-color: $accent_color;
        }
        &:hover {
            &::after {
                width: 100%;
            }
        }
        .dnetor-btn-text,
        .dnetor-btn-icon {
            color: $accent_color;
        }
    }
    &.btn-line-bottom {
        color: $accent_color;
        background-color: transparent;
        text-decoration: none;
        border-radius: 0;
        padding: 0;
        border: 0;
        position: relative;
        overflow: unset;
        padding-bottom: 3px;
        &:before,
        &:after{
            content: "";
            height: 1px;
            position: absolute;
            bottom: 0;
            background-color: $accent_color;
            display: block;
            @include transition(width 0.3s);
        }
        &:before {
            left: 0;
            width: 0;
            opacity: 1;
            transition-delay: .3s;
        }
        &:after {
            right: 0;
            width: 100%;
        }
        &:hover {
            &::before {
                width: 100%;
            }
            &::after {
                width: 0;
            }
        }
        .dnetor-btn-text,
        .dnetor-btn-icon {
            color: $accent_color;
        }
    }

    &.btn-effect-flat{
        overflow: hidden;
        position: relative;
        &:hover{
            &:before {
                left: 120%;
                transition: all 1s cubic-bezier(0.2, 1, 0.25, 1);
            }
        }
        &:before {
            background: rgba(255,255,255,0.3);
            content: "";
            position: absolute;
            top: -30px;
            height: 100px;
            left: -50px;
            width: 30px;
            @include transform(rotate(30deg));
            transition: all 1s cubic-bezier(0.2, 1, 0.25, 1);
            z-index: 1;
        }
        &.btn-outline,
        &.btn-link{
            &:before {
                content: none;
            }
        }
    }

    &.btn-square {
        border-radius: 0;
    }
    &.btn-round {
        border-radius: 100px;
    }
    &.btn-icon-right .dnetor-btn-icon {
        margin-left: 5px;
    }
    &.btn-icon-left .dnetor-btn-icon {
        margin-right: 5px;
    }
    .dnetor-btn-text,
    .dnetor-btn-icon {
        color: #fff;
    }
    .dnetor-btn-icon{
        i{
            font-weight: 400;
        }
        path{
            fill: currentColor;
        }
    }
}
