/* =========================================================
   blog-list.css — Styles for the zh-CN blog list page.
   Depends on main.css being loaded first (variables, nav, footer, etc.)
   ========================================================= */

/* Page wrapper with top padding for fixed nav */
.blog-page {
    padding-top: 72px;
    min-height: 100vh;
}

/* ── Page Hero ── */
.blog-hero {
    padding: 68px 0 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(160deg, #fafafa 0%, #ffffff 100%);
}

.blog-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.blog-hero-text .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.blog-hero-text .blog-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 480px;
    line-height: 1.7;
}

.blog-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.blog-stat .stat-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--text-primary);
}

.blog-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

/* ── Breadcrumb ── */
.breadcrumb {
    /* Override main.css generic nav { position: fixed } if tag is ever <nav> */
    position: static;
    height: auto;
    width: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: auto;
    padding: 14px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb .sep {
    opacity: 0.4;
}

/* ── Main Blog Content Area ── */
.blog-content {
    padding: 64px 0 96px;
}

/* ── Featured Article Card ── */
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 72px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    min-height: 380px;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.featured-cover {
    position: relative;
    overflow: hidden;
    background: #e8eaed;
    min-height: 320px;
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-cover img {
    transform: scale(1.04);
}

/* Gradient placeholder cover for featured card */
.featured-cover-gradient {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-cover-gradient i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.18);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}

.featured-card:hover .featured-cover-gradient i {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.26);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(17, 17, 17, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.featured-body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 10px;
    border-radius: 999px;
    transition: background 0.2s;
}

.featured-card:hover .tag,
.post-card:hover .tag {
    background: rgba(0, 0, 0, 0.08);
}

.featured-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-primary);
}

.featured-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-top: 8px;
    transition: gap 0.2s;
}

.featured-card:hover .featured-cta {
    gap: 12px;
}

/* ── Section Heading for Grid ── */
.posts-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.posts-section-heading h2 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.posts-count-badge {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4px 12px;
    border-radius: 999px;
}

/* ── Post Cards Grid ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.1);
}

.post-cover {
    position: relative;
    overflow: hidden;
    background: #e8eaed;
    aspect-ratio: 16 / 9;
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-cover img {
    transform: scale(1.05);
}

/* Gradient placeholder cover for regular cards */
.post-cover-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-cover-gradient i {
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}

.post-card:hover .post-cover-gradient i {
    transform: scale(1.12);
    color: rgba(255, 255, 255, 0.32);
}

.post-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.post-title {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--text-primary);
    flex: 1;
}

.post-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.2s, gap 0.2s;
}

.post-card:hover .post-read-more {
    color: var(--text-primary);
    gap: 10px;
}

/* ── Empty State ── */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.blog-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
    display: block;
}


/* ── Responsive ── */
@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .featured-cover {
        min-height: 220px;
    }

    .featured-cover-placeholder {
        min-height: 220px;
    }

    .featured-body {
        padding: 32px 28px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-stat {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        padding: 48px 0 40px;
    }

    .blog-hero-text h1 {
        font-size: 2.4rem;
    }

    .blog-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-stat {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }

    .blog-stat .stat-number {
        font-size: 2.6rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .featured-body {
        padding: 24px 20px;
    }
}
