/* Blog Post Enhancements Stylesheet */

/* Read Progress Bar */
#read-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    z-index: 9999;
}

#read-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Table of Contents */
#table-of-contents {
    display: none;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

#table-of-contents h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 0 0;
}

.toc-list li {
    margin: 10px 0;
}

.toc-link {
    color: #667eea;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    display: block;
    padding: 5px 0;
}

.toc-link:hover {
    color: #764ba2;
    padding-left: 10px;
}

/* Social Sharing Buttons */
.social-share {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

.social-share h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.linkedin {
    background: #0077B5;
}

.share-btn.copy {
    background: #666;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.5);
}

/* Enhanced Article Styling */
.blog-post {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
}

.blog-post .post-meta {
    color: #777;
    margin: 15px 0 30px;
    font-size: 0.95rem;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
}

.blog-post .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #444;
    line-height: 1.8;
    padding: 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 5px;
    margin: 25px 0;
}

.blog-post h2 {
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 12px;
    font-size: 1.8rem;
}

.blog-post h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #444;
    font-size: 1.4rem;
}

.blog-post h4 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.blog-post ul,
.blog-post ol {
    line-height: 2;
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post li {
    margin-bottom: 12px;
}

.blog-post p {
    margin-bottom: 18px;
}

.blog-post table {
    font-size: 0.95rem;
    margin: 25px 0;
}

/* Breadcrumb Enhancement */
.breadcrumb {
    margin-bottom: 25px;
    color: #666;
    font-size: 0.95rem;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0;
}

.newsletter-signup h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5rem;
}

.newsletter-signup p {
    opacity: 0.95;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Related Articles */
.related-articles {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.related-articles h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin: 15px 0;
}

.related-articles a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.related-articles a:hover {
    color: #764ba2;
}

.related-articles a:before {
    content: '→ ';
    margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .blog-post h2 {
        font-size: 1.5rem;
    }

    .blog-post h3 {
        font-size: 1.25rem;
    }

    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }
}
