/* ===================================
   Blog Specific Styles
   =================================== */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blogPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23blogPattern)"/></svg>');
    opacity: 0.3;
}

.blog-header-content {
    position: relative;
    z-index: 1;
}

.blog-stats {
    margin-top: 40px;
}

.blog-stats .stat-item {
    text-align: center;
}

.blog-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.blog-stats .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Featured Article */
.featured-article {
    padding: 60px 0;
    background: #f8fafc;
}

.featured-blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.featured-blog-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-blog-card:hover .featured-blog-image img {
    transform: scale(1.05);
}

.featured-blog-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-blog-content {
    padding: 40px;
}

.featured-blog-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
}

.featured-blog-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.featured-blog-title a:hover {
    color: #2563eb;
}

.featured-blog-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Blog Grid */
.blog-grid {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.read-more-btn {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    transform: scale(1.1);
    color: #2563eb;
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1;
}

.blog-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #2563eb;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

.blog-read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: #1d4ed8;
}

/* Empty State */
.blog-empty-state {
    padding: 80px 20px;
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
}

.empty-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 16px;
}

.empty-description {
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Newsletter Section */
.blog-newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.newsletter-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-group {
    flex: 1;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    height: 50px;
    backdrop-filter: blur(10px);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Pagination */
.blog-pagination .page-link {
    border: none;
    color: #2563eb;
    padding: 12px 16px;
    margin: 0 4px;
    border-radius: 8px;
    font-weight: 500;
}

.blog-pagination .page-link:hover {
    background: #2563eb;
    color: white;
}

.blog-pagination .page-item.active .page-link {
    background: #2563eb;
    color: white;
}

/* ===================================
   Single Blog Article Styles
   =================================== */

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 0 60px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #64748b;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #1e293b;
    font-weight: 600;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
}

.article-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #64748b;
}

.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.share-label {
    font-weight: 600;
    color: #1e293b;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-twitter {
    background: #1da1f2;
}

.share-facebook {
    background: #4267b2;
}

.share-linkedin {
    background: #0077b5;
}

.share-copy {
    background: #64748b;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.share-btn.copied {
    background: #059669;
    transform: scale(1.1);
}

/* Featured Image */
.article-featured-image {
    padding: 40px 0;
}

.featured-image-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    padding: 60px 0;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1e293b;
}

.article-body h2 {
    font-size: 1.8rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body h4 {
    font-size: 1.3rem;
}

/* Article Footer */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f1f5f9;
}

.tags-title {
    font-weight: 600;
    color: #1e293b;
}

.tag-item {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
}

/* Author Bio */
.author-bio {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
}

.author-avatar-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.author-description {
    font-size: 1rem;
    line-height: 1.6;
}

.author-social-link {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.article-share-bottom {
    margin-top: 40px;
    padding: 32px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.article-share-bottom .share-btn {
    width: auto;
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    font-weight: 500;
}

/* Sidebar */
.article-sidebar {
    padding-left: 32px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.widget-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

.toc-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    transform: translateX(4px);
}

/* Related Articles */
.related-article-item {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.related-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-article-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.related-article-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-title a:hover {
    color: #2563eb;
}

/* Newsletter Widget */
.newsletter-widget .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    height: 44px;
}

.newsletter-widget .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Popular Tags */
.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.popular-tag:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    transform: translateY(-1px);
}

/* Blog CTA */
.blog-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons .btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.2rem;
    }
    
    .featured-blog-content {
        padding: 24px;
    }
    
    .featured-blog-title {
        font-size: 1.6rem;
    }
    
    .article-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .blog-stats {
        gap: 16px;
    }
    
    .blog-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .article-share {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .blog-header {
        padding: 60px 0 40px;
    }
    
    .featured-article {
        padding: 40px 0;
    }
    
    .blog-grid {
        padding: 60px 0;
    }
    
    .article-content {
        padding: 40px 0;
    }
    
    .blog-newsletter {
        padding: 60px 0;
    }
    
    .newsletter-card {
        padding: 40px 20px;
    }
    
    .blog-cta {
        padding: 60px 0;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .author-bio {
        padding: 24px;
    }
}