/**===================================================
* Website Name: Group26 Consult - Blog Post
* Created: March 19, 2025
* Last Updated: March 19, 2025
* Author: Goodness Adewuyi
===================================================*/

/**======================
 * POST HEADER STYLES
 ======================*/
.post-header {
    overflow: hidden;
    position: relative;
    color: var(--white);
    background: var(--dark-bg);
    padding: clamp(120px, 15vh, 160px) 0 clamp(60px, 8vh, 100px);
}

.post-header .section__badge {
    color: var(--success);
}

.post-header__content {
    z-index: 5;
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
    position: relative;
}

.post-breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.post-breadcrumb a {
    color: var(--white);
    transition: var(--transition);
}

.post-breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.post-header h1 {
    line-height: 1.1;
    margin-bottom: 2rem;
    background-clip: text;
    text-shadow: var(--text-shadow);
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(90deg, #FFFFFF, #E0E9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-meta {
    gap: 1.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.post-meta__author {
    gap: 1rem;
    display: flex;
    align-items: center;
}

.post-meta__author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.post-meta__author span {
    font-weight: 600;
    font-size: 1.1rem;
}

.post-meta__details {
    gap: 2rem;
    display: flex;
    color: rgba(255, 255, 255, 0.8);
}

.post-meta__details i {
    margin-right: 0.5rem;
    color: var(--ai-cyan);
}

/**=======================
 * BREAKPOINT STYLES
 =======================*/
@media (max-width: 768px) {
    .post-meta__details {
        gap: 0.5rem;
        flex-direction: column;
    }
}

/**======================
 * POST CONTENT STYLES
 ======================*/
.post__content {
    position: relative;
    padding: 5rem 0 7rem;
    background: var(--background);
}

.post-layout {
    gap: 3rem;
    display: grid;
    align-items: start;
    grid-template-columns: 1fr 300px;
}

.post-main {
    position: relative;
}

.post-featured-image {
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-article {
    line-height: 1.8;
    color: var(--gray-800);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.post-article h2 {
    color: var(--gray-900);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    font-size: clamp(1.5rem, 2vw, 2rem);
    border-bottom: 1px solid var(--gray-200);
}

.post-article h3 {
    color: var(--gray-900);
    margin: 2rem 0 1.25rem;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.post-article p {
    margin-bottom: 1.5rem;
}

.post-article ul,
.post-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-article li {
    margin-bottom: 0.75rem;
}

.post-article blockquote {
    margin: 2rem 0;
    font-style: italic;
    padding: 1.5rem 2rem;
    color: var(--gray-700);
    background: var(--gray-100);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.post-article a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition);
}

.post-article a:hover {
    color: var(--secondary);
}

.post-article img {
    height: auto;
    margin: 2rem 0;
    max-width: 100%;
    border-radius: var(--border-radius-sm);
}

.post-article code {
    border-radius: 4px;
    color: var(--primary);
    padding: 0.2rem 0.4rem;
    background: var(--gray-100);
}

.post-article pre {
    margin: 2rem 0;
    padding: 1.5rem;
    overflow-x: auto;
    color: var(--gray-100);
    background: var(--gray-900);
    border-radius: var(--border-radius-sm);
}

.post-article pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}

.post-tags {
    gap: 1rem;
    display: flex;
    margin: 3rem 0;
    flex-wrap: wrap;
    align-items: center;
}

.tags-title {
    font-weight: 600;
    color: var(--gray-800);
}

.tags-list {
    gap: 0.75rem;
    display: flex;
    flex-wrap: wrap;
}

.post-tag {
    font-size: 0.85rem;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    display: inline-block;
    color: var(--gray-700);
    background: var(--gray-100);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.post-tag:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.post-author-bio {
    gap: 2rem;
    display: flex;
    padding: 2rem;
    margin-bottom: 3rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

.author-bio__image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.author-bio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
}

.author-bio__content {
    flex: 1;
}

.author-bio__content h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.author-bio__content p {
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.author-bio__social {
    gap: 1rem;
    display: flex;
}

.author-bio__social .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    border-radius: 50%;
    align-items: center;
    color: var(--gray-700);
    justify-content: center;
    background: var(--gray-100);
    transition: var(--transition);
}

.author-bio__social .social-link:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-3px);
}

.post-navigation {
    display: flex;
    margin-top: 3rem;
    padding-top: 2rem;
    justify-content: space-between;
    border-top: 1px solid var(--gray-200);
}

.post-navigation a {
    gap: 1rem;
    display: flex;
    padding: 1rem;
    max-width: 48%;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.post-navigation a:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.post-navigation__prev {
    color: var(--gray-800);
}

.post-navigation__next {
    text-align: right;
    color: var(--gray-800);
}

.post-navigation span {
    display: flex;
    flex-direction: column;
}

.post-navigation small {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--gray-600);
}

.post-navigation strong {
    line-clamp: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    color: var(--gray-900);
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/**===================
 * BREAKPOINT STYLES
 ===================*/
@media (max-width: 991px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-author-bio {
        gap: 1.5rem;
        text-align: center;
        align-items: center;
        flex-direction: column;
    }

    .author-bio__social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .post-navigation a {
        max-width: 100%;
    }

    .post-navigation__next {
        text-align: left;
    }
}

/**=====================
 * POST SIDEBAR STYLES
 =====================*/
.post-sidebar {
    top: 100px;
    position: sticky;
}

.sidebar-widget {
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

.widget-title {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

/*========== Share Widget ==========*/
.share-buttons {
    gap: 0.75rem;
    display: flex;
    flex-wrap: wrap;
}

.share-button {
    width: 40px;
    height: 40px;
    display: flex;
    border-radius: 50%;
    align-items: center;
    color: var(--white);
    justify-content: center;
    transition: var(--transition);
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-button.facebook {
    background: #3b5998;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.email {
    background: #ea4335;
}

.share-button.copy {
    background: var(--gray-700);
}

/*========== Table of Contents Widget ==========*/
.table-of-contents {
    max-height: 300px;
    overflow-y: auto;
}

.toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-list li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.toc-list li::before {
    left: 0;
    width: 4px;
    top: 0.5rem;
    height: 4px;
    content: '';
    border-radius: 50%;
    position: absolute;
    background: var(--primary);
}

.toc-list a {
    font-size: 0.95rem;
    display: inline-block;
    text-decoration: none;
    color: var(--gray-800);
    transition: var(--transition);
}

.toc-list a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.toc-list a.active {
    font-weight: 600;
    color: var(--primary);
}

/*========== Related Posts Widget ==========*/
.related-posts {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.related-post {
    gap: 1rem;
    display: flex;
    padding: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius-xs);
}

.related-post:hover {
    transform: translateX(5px);
    background: var(--gray-100);
}

.related-post__image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--border-radius-xs);
}

.related-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post__content {
    flex: 1;
}

.related-post__title {
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    font-weight: 600;
    font-size: 0.95rem;
    display: -webkit-box;
    margin-bottom: 0.4rem;
    color: var(--gray-900);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-post__date {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/**========================
 * COMMENTS SECTION STYLES
 ========================*/
.post-comments {
    padding: 5rem 0;
    position: relative;
    background: var(--white);
}

.comments-container {
    margin: 0 auto;
    max-width: 900px;
}

.comments-title {
    margin-bottom: 2rem;
    color: var(--gray-900);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.comments-title span {
    color: var(--primary);
}

.comment-form-container {
    padding: 2rem;
    margin-bottom: 3rem;
    background: var(--background);
    border-radius: var(--border-radius);
}

.comment-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.comment-form {
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group {
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-800);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: var(--white);
    transition: var(--transition);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-xs);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 80, 224, 0.1);
}

.comments-list {
    gap: 2rem;
    display: flex;
    flex-direction: column;
}

.no-comments {
    padding: 3rem 0;
    text-align: center;
    color: var(--gray-600);
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.comment {
    gap: 1.5rem;
    display: flex;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
}

.comment-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    margin-bottom: 0.75rem;
    justify-content: space-between;
}

.comment-author {
    font-weight: 600;
    color: var(--gray-900);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.comment-text {
    line-height: 1.7;
    color: var(--gray-700);
}

.comment-reply {
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    align-items: center;
    display: inline-flex;
    color: var(--primary);
    transition: var(--transition);
}

.comment-reply:hover {
    color: var(--secondary);
}

.comment-reply i {
    font-size: 0.85rem;
}

/**=====================
 * BREAKPOINT STYLES
 =====================*/
@media (max-width: 768px) {
    .comment {
        gap: 1rem;
        flex-direction: column;
    }

    .comment-avatar {
        width: 50px;
        height: 50px;
    }

    .comment-header {
        gap: 0.25rem;
        flex-direction: column;
    }
}

/**==============================
 * RELATED POSTS SECTION STYLES
 ==============================*/
.related-posts-section {
    position: relative;
    padding: 6rem 0 8rem;
    background: var(--background);
}

.related-posts-grid {
    gap: 2rem;
    display: grid;
    margin-top: 3rem;
    grid-template-columns: repeat(3, 1fr);
}

/**=====================
 * BREAKPOINT STYLES
 =====================*/
@media (max-width: 991px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: 1fr;
    }
}

/**======================
 * NOTIFICATION STYLES
 ======================*/
.notification {
    gap: 1rem;
    width: 90%;
    right: 20px;
    z-index: 900;
    display: flex;
    bottom: -100px;
    position: fixed;
    max-width: 400px;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: bottom 0.3s ease;
    border-radius: var(--border-radius);
}

.notification.show {
    bottom: 20px;
}

.notification__icon {
    width: 40px;
    height: 40px;
    display: flex;
    flex-shrink: 0;
    font-size: 1.25rem;
    border-radius: 50%;
    color: var(--white);
    align-items: center;
    justify-content: center;
    background: var(--success);
}

.notification__content {
    flex: 1;
}

.notification__content h4 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.notification__content p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.notification__close {
    border: none;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    color: var(--gray-600);
    transition: var(--transition);
}

.notification__close:hover {
    color: var(--gray-900);
}

/**=====================
 * BREAKPOINT STYLES
 =====================*/
@media (max-width: 576px) {
    .notification {
        left: 10px;
        right: 10px;
        bottom: -150px;
        max-width: none;
        width: calc(100% - 20px);
    }

    .notification.show {
        bottom: 10px;
    }
}