/* Blog Styles - SEO-Optimized Content */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 100%);
    padding: 4rem 0;
    color: white;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #667eea;
}

.blog-card-excerpt {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.featured-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-post-content {
    padding: 2rem;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Blog Post Single */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-category {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #667eea;
    margin-bottom: 1rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.9375rem;
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-post-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-post-author-info {
    text-align: left;
}

.blog-post-author-name {
    font-weight: 600;
    color: #1f2937;
}

.blog-post-featured-image {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

/* Blog Content Typography */
.blog-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.blog-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
}

.blog-content code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.9375rem;
}

.blog-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: transparent;
    padding: 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.blog-content a {
    color: #667eea;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #764ba2;
}

/* Table of Contents */
.toc {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

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

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9375rem;
}

.toc-list a:hover {
    color: #667eea;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.share-button:hover {
    opacity: 0.8;
}

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

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

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

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Categories Sidebar */
.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    color: #4b5563;
    text-decoration: none;
}

.categories-list a:hover {
    color: #667eea;
}

.category-count {
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    text-decoration: none;
}

.pagination a {
    color: #4b5563;
    background: #f3f4f6;
}

.pagination a:hover {
    background: #667eea;
    color: white;
}

.pagination .current {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post-image {
        height: 250px;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 1rem;
    }
}
