/* ========== BLOG STYLES ========== */

/* Article Header */
.article-meta-header {
    padding: 20px 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.article-meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.meta-date,
.meta-author,
.meta-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Article Categories */
.article-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    background: #f0f9ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: #2563eb;
    color: white;
}

/* Related Articles */
.related-articles-section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-articles-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-article-card {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.related-article-card:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px);
}

.related-article-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.placeholder-image {
    font-size: 48px;
    color: white;
}

.related-article-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.related-article-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1f2937;
    line-height: 1.4;
}

.related-article-content p {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.read-more {
    color: #2563eb;
    font-weight: 600;
    font-size: 12px;
}

/* Author Bio Box */
.author-bio-box {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}

.author-avatar {
    flex-shrink: 0;
}

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

.author-info {
    flex-grow: 1;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1f2937;
}

.author-info p {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.author-links {
    display: flex;
    gap: 15px;
    margin: 0;
}

.author-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.author-links a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Table of Contents */
.table-of-contents {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    margin: 30px 0;
}

.table-of-contents h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1f2937;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.toc-level-2 {
    margin-left: 0;
}

.toc-level-2 a {
    font-weight: 600;
    color: #1f2937;
}

.toc-level-3 {
    margin-left: 20px;
}

.toc-level-3 a {
    color: #666;
}

.table-of-contents a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Tags */
.article-tags {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.article-tags h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1f2937;
    text-transform: uppercase;
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-link {
    display: inline-block;
    background: #f0f9ff;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #bfdbfe;
}

.tag-link:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.breadcrumbs .current {
    font-weight: 600;
    color: #1f2937;
}

/* Popular Articles Widget */
.popular-articles-widget {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.popular-articles-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.popular-articles-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-articles-widget li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-articles-widget li:last-child {
    border-bottom: none;
}

.popular-articles-widget a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.popular-articles-widget a:hover {
    color: #1e40af;
}

.popular-articles-widget .date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 10px;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.cta-widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.cta-widget p {
    font-size: 14px;
    margin: 0 0 15px 0;
    opacity: 0.95;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Archive Header */
.archive-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.archive-header h1 {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.archive-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

/* No Posts Message */
.no-posts {
    background: white;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.no-posts h2 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 10px;
}

.no-posts p {
    color: #666;
    margin-bottom: 20px;
}

.no-posts a {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-posts a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .author-bio-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-meta-info {
        flex-direction: column;
        gap: 10px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .archive-header h1 {
        font-size: 28px;
    }

    .archive-header {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .article-meta-info {
        font-size: 12px;
    }

    .related-articles-section {
        padding: 15px;
    }

    .author-bio-box {
        padding: 15px;
    }

    .cta-widget {
        padding: 15px;
    }

    .table-of-contents {
        padding: 15px;
    }

    .archive-header {
        padding: 20px 10px;
    }

    .archive-header h1 {
        font-size: 22px;
    }
}
