/* Blog Enhancement Styles */

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #6A47ED, #8B5CF6);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Enhanced Blog Post Header */
.blog-post-header {
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(106, 71, 237, 0.1), transparent);
    animation: float 6s ease-in-out infinite;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    font-size: 14px;
    color: #666;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 71, 237, 0.1);
}

.blog-meta-item i {
    color: #6A47ED;
}

.read-time-estimate {
    background: #6A47ED;
    color: white;
    font-weight: 600;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(145deg, #f8f9ff, #ffffff);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(106, 71, 237, 0.1);
    box-shadow: 0 10px 30px rgba(106, 71, 237, 0.05);
}

.table-of-contents h4 {
    color: #6A47ED;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-of-contents h4::before {
    content: '📋';
    font-size: 20px;
}

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

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-list a:hover {
    background: rgba(106, 71, 237, 0.1);
    border-left-color: #6A47ED;
    transform: translateX(5px);
}

/* Enhanced Content Styling */
.blog-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    max-width: none;
}

.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4 {
    position: relative;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2d3748;
}

.blog-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6A47ED, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 2px solid #6A47ED;
    padding-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6A47ED;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
}

/* Enhanced Code Blocks */
.code-block-wrapper {
    position: relative;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.code-block-header {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.code-language {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.blog-content pre {
    margin: 0;
    padding: 25px;
    background: #1a202c;
    color: #e2e8f0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}

.blog-content code:not(pre code) {
    background: rgba(106, 71, 237, 0.1);
    color: #6A47ED;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Enhanced Lists */
.blog-content ul, .blog-content ol {
    margin: 20px 0;
    padding-left: 0;
}

.blog-content li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.blog-content ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #6A47ED;
    font-size: 12px;
    top: 2px;
}

.blog-content ol {
    counter-reset: item;
}

.blog-content ol li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    background: #6A47ED;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    top: 0;
}

/* Social Share Section */
.social-share-section {
    background: linear-gradient(145deg, #f8f9ff, #ffffff);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid rgba(106, 71, 237, 0.1);
    box-shadow: 0 10px 30px rgba(106, 71, 237, 0.05);
}

.social-share-section h4 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

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

.social-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

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

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-whatsapp {
    background: #25D366;
    color: white;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Author Bio Section */
.author-bio-section {
    background: linear-gradient(145deg, #f8f9ff, #ffffff);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(106, 71, 237, 0.1);
    box-shadow: 0 15px 35px rgba(106, 71, 237, 0.08);
}

.author-bio-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6A47ED, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
}

.author-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 35px;
    height: 35px;
    background: rgba(106, 71, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6A47ED;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: #6A47ED;
    color: white;
    transform: translateY(-2px);
}

/* Related Posts Section */
.related-posts-section {
    margin: 50px 0;
}

.related-posts-section h3 {
    color: #2d3748;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

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

.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(106, 71, 237, 0.1);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    height: 180px;
    background: linear-gradient(135deg, #6A47ED, #8B5CF6);
    position: relative;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-content h4 {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: inherit;
    text-decoration: none;
}

.related-post-content h4 a:hover {
    color: #6A47ED;
}

.related-post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.related-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #6A47ED, #8B5CF6);
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: float 8s ease-in-out infinite;
}

.newsletter-signup h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-signup p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    background: white;
    color: #6A47ED;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Blog Card Enhancements */
.news-box-items {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(106, 71, 237, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-box-items:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-box-items:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h5 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1;
}

.news-content h5 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h5 a:hover {
    color: #6A47ED;
}

.post-cat {
    margin-bottom: 15px;
    padding: 0;
    list-style: none;
}

.post-cat li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    background: rgba(106, 71, 237, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    width: fit-content;
}

.news-btn {
    margin-top: auto;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6A47ED;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.link-btn:hover {
    gap: 12px;
    color: #8B5CF6;
}

/* Blog Search Enhancement */
.blog-search-section {
    background: linear-gradient(145deg, #f8f9ff, #ffffff);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(106, 71, 237, 0.05);
}

.blog-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-search-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.blog-search-form button {
    background: #6A47ED;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-search-form button:hover {
    background: #8B5CF6;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-meta-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .author-bio-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    .social-share-buttons {
        gap: 10px;
    }
    
    .social-share-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .blog-content h1 {
        font-size: 2rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-search-form {
        flex-direction: column;
        max-width: 300px;
        gap: 10px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: rotate(0deg) translate(-50%, -50%);
    }
    50% {
        transform: rotate(180deg) translate(-50%, -50%);
    }
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .reading-progress-bar,
    .social-share-section,
    .newsletter-signup,
    .related-posts-section {
        display: none;
    }
    
    .blog-content {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4 {
        page-break-after: avoid;
    }
} 