/*
* Single Post
* 
 */

@-webkit-keyframes toRightFromLeft {
    49% {
        -webkit-transform: translate(100%);
    }

    50% {
        opacity: 0;
        -webkit-transform: translate(-100%);
    }

    51% {
        opacity: 1;
    }
}

@-moz-keyframes toRightFromLeft {
    49% {
        -moz-transform: translate(100%);
    }

    50% {
        opacity: 0;
        -moz-transform: translate(-100%);
    }

    51% {
        opacity: 1;
    }
}

@keyframes toRightFromLeft {
    49% {
        transform: translate(100%);
    }

    50% {
        opacity: 0;
        transform: translate(-100%);
    }

    51% {
        opacity: 1;
    }
}

@-webkit-keyframes toLeftFromRight {
    49% {
        -webkit-transform: translate(-100%);
    }

    50% {
        opacity: 0;
        -webkit-transform: translate(100%);
    }

    51% {
        opacity: 1;
    }
}

@-moz-keyframes toLeftFromRight {
    49% {
        -moz-transform: translate(-100%);
    }

    50% {
        opacity: 0;
        -moz-transform: translate(100%);
    }

    51% {
        opacity: 1;
    }
}

@keyframes toLeftFromRight {
    49% {
        transform: translate(-100%);
    }

    50% {
        opacity: 0;
        transform: translate(100%);
    }

    51% {
        opacity: 1;
    }
}

.single-post {

    .blog-wrap .blog-inner .owl-nav {
        display: none;
    }

    .blog-wrap .blog-inner .owl-dots {
        display: block;
    }

    .entry-thumbnail-wrap {
        img {
            width: 100%;
            overflow: hidden;
        }
    }

    .post-password-form {
        input[type=password] {
            border: 1px solid @bg_color;
            border-radius: 4px;
            margin-left: 5px;
            background-color: @bg_color;

            &:focus {
                border-color: var(--primary_color);
                background-color: @white;
            }
        }

        input[type=submit] {
            height: 40px;
            position: relative;
            top: -1px;
            border: none;
            background-color: var(--heading_color);
            border-radius: 4px;
            padding: 5px 15px;
            color: @white;
            .transition(all 0.35s ease);

            &:hover {
                background-color: var(--primary_color);
            }
        }
    }
}


.social-share-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    @media (max-width: 991px) {
        justify-content: center;
        margin-top: 30px;
    }

    .social-share-inner {
        a {
            color: var(--heading_color);
            position: relative;
            display: block;
            float: left;
            text-align: center;
            width: 42px;
            height: 42px;
            line-height: 42px;
            font-size: 14px;
            border: 1px solid #eee;
            border-radius: 50%;
            margin-left: 10px;
            .transition(all 300ms ease);

            &:hover {
                background-color: var(--primary_color);
                color: @white;
            }
        }
    }

}

.author-info {
    margin-bottom: 70px;
    background-color: @bg_color;
    padding: 45px;
    width: 100%;

    .author-info-wrap {
        display: flex;
        align-items: center;
    }

    .author-avatar {
        margin-right: 40px;

        img {
            max-width: 180px;
            border-radius: 100%;
        }
    }

    .info-font {
        font-style: italic;
        letter-spacing: .5px;
    }

    .author-title {
        font-size: 30px;
        margin-top: 0px;
    }
}

.comment-form-author,
.comment-form-email {
    width: ~"calc(50% - 10px)";
    display: inline-block;
    float: left;
    margin-bottom: 20px;
}

.comment-form-author {
    margin-right: 20px;
}

.comment-form-comment {
    width: 100%;
}

.entry-meta-tag {
    padding: 15px;
    padding-bottom: 0;
    padding-left: 0;
    padding: 10px 0px;

    @media (max-width: 991px) {
        text-align: center;
    }

    label {
        font-size: 17px;
        margin-bottom: 0;
        width: auto;
        margin-right: 10px;

        i {
            color: var(--primary_color);
        }
    }

    a {
        display: inline-block;
        margin-left: 5px;
        line-height: 1;
        text-transform: capitalize;

        &:after {
            content: ",";
            display: inline-block;
        }

        &:last-child {
            &:after {
                content: none;
            }
        }
    }
}

.post-excerpt {
    blockquote {
        margin-top: 25px;
        background-color: #f6f6f6;
        padding: 20px;
    }
}

.post-navigation {
    display: flex;
    position: relative;
    width: 100%;
    
    @media (max-width: 768px) {
        display: block;
    }

    .nav-wrap {
        position: relative;
        width: 50%;

        @media (max-width: 768px) {
            width: 100%;
            text-align: center;
        }

        &.nav-left {
            @media (max-width: 768px) {
                margin-bottom: 40px;
            }
        }
    }

    span {
        display: block;
    }

    span.nav-label {
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 10px;
        font-size: calc(var(--primary_font_size) - 2px);
        font-weight: 500;
    }

    span.nav-title {
        word-wrap: break-word;
        font-family: var(--heading_font);
        font-weight: var(--heading_font_weight);
        color: var(--heading_color);
        line-height: 1.6;
        font-size: 17px;
        text-transform: capitalize;
    }

    .nav-left {
        i {
            position: absolute;
            left: -15px;
            top: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            color: var(--primary_color);
        }

        &:hover {
            .nav-title {
                color: var(--primary_color);
            }

            i:before {
                -webkit-animation: toLeftFromRight 0.3s forwards;
                -moz-animation: toRightFromLeft 0.3s forwards;
                animation: toRightFromLeft 0.3s forwards;
            }
        }
    }

    .nav-right {
        float: right;
        text-align: right;

        @media (max-width: 768px) {
            text-align: center;
        }

        i {
            position: absolute;
            right: -15px;
            top: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            color: var(--primary_color);
        }

        &:hover {
            .nav-title {
                color: var(--primary_color);
            }

            i:before {
                -webkit-animation: toRightFromLeft 0.3s forwards;
                -moz-animation: toRightFromLeft 0.3s forwards;
                animation: toRightFromLeft 0.3s forwards;
            }
        }
    }
}

.comment {
    list-style: none;
}

ol {
    list-style: decimal;
}

.entry-comments {
    clear: both;
    margin-top: 70px;

    .comments-title {
        margin-bottom: 20px;
    }

    .commentlist {
        list-style: none;
        padding: 0;
        margin-bottom: 55px;
        margin-left: 0;

        .children>li {
            padding-left: 50px;
            border-top: 1px solid #eee;
        }

        >li {
            border-bottom: 1px solid #eee;

            .comment-article {
                padding: 33px 0px 30px;
                margin: 0;
            }

            .comment-avatar {
                background-color: @bg_color;
                max-width: 80px;
                margin-right: 30px;
                float: left;
                overflow: hidden;
                border-radius: 50%;
                -moz-border-radius: 50%;
                -webkit-border-radius: 50%;

                img {
                    display: block;
                }
            }

            .comment-body {
                overflow: hidden;
                position: relative;

                .yolo-stars {
                    color: #ffd338;
                    position: absolute;
                    top: 0;
                    right: 0;
                    margin: 0;
                }
            }

            .comment-author {
                font-size: 20px;
                letter-spacing: 1px;
                margin-bottom: 0px;
                margin-top: 0;
                text-transform: capitalize;
            }

            .comment-content {
                margin: 15px 0 -5px;
            }

            .comment-footer {
                display: flex;
                flex-wrap: wrap;
            }

            .comment-time {
                color: var(--text_color_fade_60);
                margin-right: 15px;
                font-family: var(--primary_font);
                font-size: calc(var(--primary_font_size) - 2px);
                font-weight: normal;
                text-transform: none;
            }

            .comment-reply-link {
                font-family: var(--button_font);
                font-weight: var(--button_font_weight);
                color: var(--primary_color);
                font-size: calc(var(--primary_font_size) - 2px);
                text-transform: uppercase;
                letter-spacing: 0.15em;

                &:before {
                    content: "\f086";
                    font-family: "Font Awesome 5 Pro";
                    font-weight: 300;
                    margin-right: 10px;
                    color: var(--text_color);
                    opacity: 0.5;
                }

                &:hover {
                    color: var(--heading_color);
                }
            }

            .comment-respond {
                margin-top: 10px;
                margin-bottom: 40px;
            }

            .comment-reply-title {
                margin-top: 0;
            }
        }

    }

    nav.comment-navigation {
        margin-bottom: 20px;

        .page-numbers {
            display: inline-block;
            margin-right: 5px;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border: 1px solid @border_color;
            color: #888;
            font-size: 14px;
            .border-radius(100%);

            &.next,
            &.prev {
                border: none;
                .border-radius(0);
                font-size: 18px;
            }

            &:hover,
            &:focus {
                color: #202020;
            }

            &.current {
                color: @white;
            }
        }

        &.comment-navigation-bottom {
            margin-bottom: 0;
            margin-top: 20px;
        }
    }
}

.woocommerce-Reviews {
    .comment-reply-title {
        position: relative;
        display: block;
        color: var(--heading_color);
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    #commentform {
        margin-top: 30px;
    }
}

.comment-reply-title {
    position: relative;
}

#commentform {
    margin: 30px 0 0;

    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    textarea {
        width: 100%;
        padding: 27px;
        box-shadow: none;
        border-radius: 0px;

        &:focus {
            box-shadow: none;
            outline: none;
            border-color: var(--heading_color);
        }

        &::-webkit-input-placeholder {
            opacity: 1;
        }

        &::-moz-placeholder {
            // Firefox 18-
            opacity: 1;
        }

        &::-moz-placeholder {
            //  Firefox 19+
            opacity: 1;
        }

        &::-ms-input-placeholder {
            opacity: 1;
        }
    }

    textarea {
        height: 160px;
    }

    .form-submit {
        margin-bottom: 0;
        margin-top: 30px;

    }

    label {
        color: var(--heading_color);

        &[for="wp-comment-cookies-consent"] {
            text-transform: inherit;
        }
    }
}

input#submit {
    display: inline-block;
    position: relative;
    visibility: visible;
    letter-spacing: 0.15em;
    line-height: 1;
    font-size: var(--button_font_size);
    font-family: var(--button_font);
    font-weight: var(--button_font_weight);
    text-transform: uppercase;
    color: @white;
    background-color: var(--primary_color);
    padding: 17.5px 40px;
    border: 1px solid var(--primary_color);
    .transition(all 200ms ease-in-out);
    min-width: 200px;
    border-radius: 0;

    &:focus,
    &:hover {
        color: @white;
        background-color: var(--heading_color);
    }

}