/* =====================================================
   INDIVIDUAL BLOG POST STYLESHEET
   ===================================================== */

/* Page Loading */
.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--gray-color);
}

.page-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--white);
    padding: 1rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #eef2f7;
}

.breadcrumbs a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: var(--gray-color);
}

/* Article Header */
.article-header {
    background: var(--white);
    padding: 3rem 0;
}

.article-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-color);
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.publish-date {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.article-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Featured Image */
.featured-image-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

/* Article Body */
.article-body {
    background: var(--white);
    padding: 4rem 0;
    position: relative;
}

/* Sticky Social Share */
.social-share-sticky {
    position: sticky;
    top: 100px;
    float: left;
    margin-left: -80px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--light-color);
    background: var(--white);
    color: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.share-btn:nth-child(1):hover {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.share-btn:nth-child(2):hover {
    background: #1877F2;
    color: var(--white);
    border-color: #1877F2;
}

.share-btn:nth-child(3):hover {
    background: #1DA1F2;
    color: var(--white);
    border-color: #1DA1F2;
}

.share-btn:nth-child(4):hover {
    background: #0A66C2;
    color: var(--white);
    border-color: #0A66C2;
}

.share-btn:nth-child(5):hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Article Content */
.content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark-color);
}

@media (max-width: 900px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-title {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 1.25rem;
    }
}

.content h2,
.content h3,
.content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.content h3 {
    font-size: 1.5rem;
}

.content h4 {
    font-size: 1.2rem;
}

.content p {
    margin-bottom: 1.5rem;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-color);
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.content ul,
.content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.75rem;
}

.content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: var(--transition);
}

.content a:hover {
    color: #ff5252;
    border-color: #ff5252;
}

.content code {
    background: var(--light-color);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.content pre {
    background: var(--dark-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
}

.content pre code {
    background: transparent;
    padding: 0;
    color: var(--white);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
}

.tag {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Article Actions */
.article-actions {
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--light-color);
    border-bottom: 1px solid var(--light-color);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--light-color);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-btn.liked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.action-btn i {
    font-size: 1.2rem;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 2rem;
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.author-info-large h3 {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.author-info-large h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.author-info-large p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    background: var(--light-color);
    padding: 4rem 0;
}

.related-posts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Comments Section */
.comments-section {
    background: var(--white);
    padding: 4rem 0;
}

.comments-section h2,
.comments-section h3 {
    margin-bottom: 2rem;
}

.comments-list {
    margin-bottom: 3rem;
}

.comment {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.comment-form {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--white);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: #ff5252;
    transform: translateY(-3px);
}

/* Error Modal */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.error-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
}

.error-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-content h2 {
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .social-share-sticky {
        position: static;
        float: none;
        margin-left: 0;
        flex-direction: row;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .featured-image {
        height: 300px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar-large {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .article-title {
        font-size: 1.75rem;
    }

    .featured-image {
        height: 250px;
    }

    .content {
        font-size: 1rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .related-posts h2 {
        font-size: 2rem;
    }
}

