/* ==========================================================================
   Blog Styles — list and article views.
   Extracted from templates/blog/post_list.html and post_detail.html.
   ========================================================================== */

/* ==========================================================================
   Post List Page
   ========================================================================== */

    /* Blog Header */
    .blog-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 3.5rem 0;
        margin-bottom: 0;
    }

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

    .blog-header .tagline {
        opacity: 0.9;
        font-size: 1.125rem;
        margin-bottom: 0;
    }

    .blog-container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 3rem 1.5rem;
    }

    /* Category tag style */
    .post-category {
        display: inline-block;
        font-size: 0.8125rem;
        font-weight: 600;
        color: #06c8ea;
        text-decoration: none;
        margin-bottom: 0.5rem;
    }

    .post-category:hover {
        color: #05a8c7;
        text-decoration: underline;
    }

    /* Post title */
    .post-title {
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

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

    .post-title a:hover {
        color: #06c8ea;
    }

    /* Post excerpt */
    .post-excerpt {
        color: #4a4a4a;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }

    /* Post meta */
    .post-meta {
        font-size: 0.8125rem;
        color: #888;
    }

    .post-meta span {
        margin-right: 0.25rem;
    }

    /* Featured/Hero Post */
    .featured-post {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2.5rem;
        margin-bottom: 3rem;
        padding-bottom: 3rem;
        border-bottom: 1px solid #eee;
    }

    .featured-post .post-image {
        border-radius: 8px;
        overflow: hidden;
    }

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

    .featured-post .post-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .featured-post .post-title {
        font-size: 2rem;
    }

    .featured-post .post-excerpt {
        font-size: 1rem;
    }

    /* Two-column row */
    .two-col-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        margin-bottom: 3rem;
        padding-bottom: 3rem;
        border-bottom: 1px solid #eee;
    }

    .two-col-row .post-image {
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .two-col-row .post-image img {
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

    .two-col-row .post-title {
        font-size: 1.5rem;
    }

    .two-col-row .post-excerpt {
        font-size: 0.9375rem;
    }

    /* Three-column row */
    .three-col-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .three-col-row .post-image {
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .three-col-row .post-image img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .three-col-row .post-title {
        font-size: 1.125rem;
    }

    .three-col-row .post-excerpt {
        font-size: 0.875rem;
    }

    /* Image placeholder for posts without images */
    .post-image-placeholder {
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    .featured-post .post-image-placeholder {
        height: 350px;
    }

    .two-col-row .post-image-placeholder {
        height: 280px;
    }

    .three-col-row .post-image-placeholder {
        height: 180px;
    }

    .post-image-placeholder i {
        font-size: 3rem;
        color: rgba(255, 255, 255, 0.4);
    }

    /* Category Filter */
    .category-filter {
        margin-bottom: 2.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
    }

    .category-filter a {
        font-size: 0.875rem;
        color: #666;
        text-decoration: none;
        padding: 0.375rem 0;
        border-bottom: 2px solid transparent;
        transition: all 0.2s;
    }

    .category-filter a:hover,
    .category-filter a.active {
        color: #06c8ea;
        border-bottom-color: #06c8ea;
    }

    /* Pagination */
    .blog-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding-top: 2rem;
        border-top: 1px solid #eee;
    }

    .blog-pagination a {
        color: #666;
        text-decoration: none;
        font-size: 0.9375rem;
    }

    .blog-pagination a:hover {
        color: #06c8ea;
    }

    .blog-pagination .page-info {
        color: #999;
        font-size: 0.875rem;
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 5rem 2rem;
    }

    .empty-state i {
        font-size: 4rem;
        color: #ddd;
        margin-bottom: 1rem;
    }

    .empty-state h3 {
        color: #666;
        font-weight: 500;
    }

    .empty-state p {
        color: #999;
    }

    /* Responsive */
    @media (max-width: 991px) {
        .featured-post {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

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

        .two-col-row {
            gap: 2rem;
        }

        .three-col-row {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 575px) {
        .blog-container {
            padding: 2rem 1rem;
        }

        .two-col-row {
            grid-template-columns: 1fr;
        }

        .three-col-row {
            grid-template-columns: 1fr;
        }

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

/* ==========================================================================
   Post Detail Page (article header + .post-content typography)
   ========================================================================== */

    .post-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 3rem 0;
    }

    .post-category {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0.375rem 0.75rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        text-decoration: none;
        margin-bottom: 1rem;
    }

    .post-category:hover {
        background: rgba(255, 255, 255, 0.3);
        color: white;
    }

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

    .post-meta {
        opacity: 0.9;
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .post-meta span {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .post-featured-image {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }

    .post-featured-image img {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.post-content p {
    margin-bottom: 1.5rem;
}
.post-content h1 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}
.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}
.post-content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.post-content li {
    margin-bottom: 0.5rem;
}
.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}
.post-content code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}
.post-content pre {
    background-color: #1f2937;
    color: #f3f4f6;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.post-content th, .post-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}
.post-content th {
    background: #f8f9fa;
    font-weight: 600;
}
.post-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

/* Admonition Styles for MyST Directives */
.admonition {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}
.admonition-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.admonition-content {
    line-height: 1.6;
}
.admonition-note {
    background: #e8f4fd;
    border-color: #0d6efd;
    color: #084298;
}
.admonition-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #664d03;
}
.admonition-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #842029;
}
.admonition-tip {
    background: #d1e7dd;
    border-color: #198754;
    color: #0f5132;
}
.admonition-important {
    background: #e0cffc;
    border-color: #6f42c1;
    color: #432874;
}
.admonition-hint {
    background: #e2e3e5;
    border-color: #6c757d;
    color: #41464b;
}
.admonition-caution {
    background: #fff3cd;
    border-color: #fd7e14;
    color: #664d03;
}
.admonition-attention {
    background: #cff4fc;
    border-color: #0dcaf0;
    color: #055160;
}

/* Code syntax highlighting */
.highlight {
    background: #1f2937;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}
