@import "../../../utils/common/_blog-card";
@import "../../../utils/common/_custom-page-content";
@import "../layouts/_blog-right-sidebar";

.blog-post-wrap {
    margin-top: 50px;
}

.blog-post-content {
    .blog-post-featured-image {
        position: relative;
        margin-bottom: 20px;
        border-radius: var(--radius-default);

        .image-holder {
            position: relative;
            padding-bottom: 38%;
            overflow: hidden;

            > img {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            &.image-placeholder {
                > img {
                    object-fit: contain;
                }
            }
        }
    }

    .blog-post-meta {
        margin-bottom: 20px;

        > li {
            font-size: 14px;
            font-weight: var(--font-light);
            color: var(--color-gray);
            margin-left: 25px;

            &:first-child {
                margin-left: 0;
            }

            > i {
                font-size: 16px;
                margin-right: 5px;

                color: var(--color-primary);
            }
        }
    }

    .blog-post-title {
        margin-bottom: 15px;
    }
}

.blog-post-social-share {
    margin-top: 30px;

    h6 {
        width: 120px;
        max-width: 120px;
        margin-right: 20px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .social-share-links {
        list-style: none;
        display: flex;
        align-items: center;

        li {
            margin-right: 7px;

            a {
                display: flex;
                align-items: center;
                justify-content: center;
                height: 35px;
                width: 35px;
                background: var(--color-white-lite);
                cursor: pointer;
                border-radius: var(--radius-default);
                transition: var(--transition-150);

                i {
                    font-size: 17px;
                    color: var(--color-gray);
                    transition: var(--transition-150);
                }

                &:hover {
                    background: var(--color-primary);

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

                svg {
                    width: 15px;
                    height: 15px;

                    path {
                        fill: var(--color-gray);
                        transition: var(--transition-150);
                    }
                }

                &:hover {
                    svg {
                        path {
                            fill: var(--color-white);
                        }
                    }
                }
            }
        }
    }
}

.blog-post-tags {
    margin-top: 30px;

    h6 {
        width: 120px;
        max-width: 120px;
        margin-right: 20px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    ul {
        display: flex;
        list-style: none;
        max-width: 100%;
        flex-wrap: wrap;

        li {
            margin: 0 7px 7px 0px;

            a {
                font-size: 12px;
                line-height: 30px;
                display: flex;
                align-items: center;
                color: var(--color-gray);
                border: 1px solid var(--color-gray-lite);
                border-radius: 8px;
                padding: 0 10px;
                width: max-content;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                transition: var(--transition-150);

                &:hover {
                    color: var(--color-primary);
                    border-color: var(--color-primary-alpha-80);
                }

                svg {
                    width: 15px;
                    height: 15px;
                    margin-right: 5px;

                    path {
                        stroke: var(--color-gray);
                        transition: var(--transition-150);
                    }
                }

                &:hover {
                    svg {
                        path {
                            stroke: var(--color-primary);
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 991px) {
    .blog-post-wrap {
        .blog-post-content {
            margin-bottom: 50px;
        }
    }

    .blog-post-social-share h6,
    .blog-post-tags h6 {
        margin-bottom: 15px;
    }

    .blog-post-social-share,
    .blog-post-tags {
        flex-direction: column;

        h5 {
            margin-bottom: 20px;
        }
    }
}

@media screen and (max-width: 767px) {
    .blog-post-content {
        .blog-post-featured-image {
            .image-holder {
                padding-bottom: 38%;
            }
        }
    }
}
