/* ========================================
   BLOG POST PAGE STYLES
   ======================================== */

/* ========================================
   BLOG POST SECTION
   ======================================== */

.blog-post-section {
    padding: var(--space-20) 0;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: flex-start;
    padding-top: var(--space-8);
}

.blog-post-section .container {
    width: 100%;
    max-width: none;
    padding: 0 var(--space-4);
}

/* ========================================
   READING PROGRESS BAR
   ======================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.reading-progress-fill {
    height: 100%;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

/* ========================================
   ARTICLE HEADER
   ======================================== */

.article-header {
    padding: var(--space-20) 0;
    margin-bottom: var(--space-12);
    text-align: center;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--primary-500);
}

.article-category {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-500);
    color: var(--white);
    border-radius: 16px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-6);
    transition: background 0.3s ease;
}

.article-category:hover {
    background: var(--primary-600);
}

.article-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--white);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.article-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.article-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-info {
    display: flex;
    flex-direction: column;
}

.article-author-name {
    font-weight: var(--font-semibold);
    color: var(--white);
}

.article-author-title {
    color: rgba(255, 255, 255, 0.8);
}

.article-date {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.article-reading-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ========================================
   FEATURED IMAGE
   ======================================== */

.article-featured-image {
    margin-bottom: var(--space-12);
    text-align: center;
}

.article-featured-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */

.article-content {
    max-width: 800px;
    margin: 0 auto var(--space-12);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.article-content h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin: var(--space-8) 0 var(--space-4);
    line-height: var(--leading-tight);
}

.article-content h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--white);
    margin: var(--space-6) 0 var(--space-3);
    line-height: var(--leading-tight);
}

.article-content p {
    margin-bottom: var(--space-6);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.article-content li {
    margin-bottom: var(--space-2);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-500);
    padding-left: var(--space-6);
    margin: var(--space-6) 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.article-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-base);
    font-family: var(--font-family-mono);
    font-size: 0.9em;
}

.article-content pre {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-6) 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

/* ========================================
   ARTICLE FOOTER
   ======================================== */

.article-footer {
    max-width: 800px;
    margin: 0 auto;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-tags {
    margin-bottom: var(--space-8);
}

.article-tags-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.article-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-500);
    text-decoration: none;
    border-radius: 16px;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: var(--primary-500);
    color: var(--white);
}

/* ========================================
   SHARE SECTION
   ======================================== */

.article-share {
    margin-bottom: var(--space-8);
}

.article-share-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.share-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    color: var(--white);
}

.share-btn[data-platform="facebook"]:hover {
    background: #1877f2;
}

.share-btn[data-platform="twitter"]:hover {
    background: #1da1f2;
}

.share-btn[data-platform="linkedin"]:hover {
    background: #0077b5;
}

.share-btn[data-platform="whatsapp"]:hover {
    background: #25d366;
}

/* ========================================
   RELATED POSTS
   ======================================== */

.related-posts {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-12);
    border-radius: 12px;
    margin-bottom: var(--space-12);
}

.related-posts-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-8);
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .blog-post-section {
        padding: var(--space-16) 0;
    }
    
    .article-header {
        margin-bottom: var(--space-8);
    }
    
    .article-title {
        font-size: var(--text-3xl);
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .article-content {
        font-size: var(--text-base);
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479px) {
    .blog-post-section {
        padding: var(--space-12) 0;
    }
    
    .article-title {
        font-size: var(--text-2xl);
    }
    
    .article-content {
        font-size: var(--text-sm);
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
    }
    
    .article-breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
}
