/* ============================================================
   Blog List Page Styles
   ============================================================ */

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}
.breadcrumb a {
    color: var(--text-tertiary);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb svg {
    width: 12px;
    height: 12px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}
.breadcrumb span { color: var(--text-primary); font-weight: 500; }

/* --- Blog Hero --- */
.blog-hero {
    padding-top: 100px;
    padding-bottom: 3rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.blog-hero-content {
    margin-bottom: 2.5rem;
}

.blog-hero-content .section-label {
    margin-bottom: 1rem;
}

.blog-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.blog-hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0;
}
.blog-hero-desc strong { color: var(--text-primary); font-weight: 600; }

/* --- Category Filter --- */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1.5px solid #e5e5e5;
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #eff6ff;
}
.filter-btn.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #fff;
}

/* --- Blog List Section --- */
.blog-list-section {
    padding: 4rem 0 6rem;
    background: #fafafa;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* --- Blog Card (standard) --- */
.blog-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #efefef;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
    border-color: #e0e0e0;
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

/* --- Featured Card (spans full width, horizontal layout) --- */
.blog-card-featured {
    grid-column: 1 / -1;
}
.blog-card-featured .blog-card-link {
    flex-direction: row;
}
.blog-card-featured .blog-card-visual {
    width: 360px;
    flex-shrink: 0;
    border-radius: 0;
    aspect-ratio: auto;
    min-height: 280px;
}
.blog-card-featured .blog-card-body {
    padding: 2.5rem 2.5rem;
    justify-content: center;
}
.blog-card-featured h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}
.blog-card-featured p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 560px;
}

/* --- Visual Banner Area --- */
.blog-card-visual {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-visual-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
}

.blog-visual-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
}

.blog-visual-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.blog-visual-icon svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.9);
}

/* Visual color themes */
.blog-visual-1 {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
}
.blog-visual-2 {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #059669 100%);
}
.blog-visual-3 {
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #6366f1 100%);
}
.blog-visual-4 {
    background: linear-gradient(135deg, #451a03 0%, #92400e 50%, #d97706 100%);
}
.blog-visual-5 {
    background: linear-gradient(135deg, #0c1a2e 0%, #1e3a5f 40%, #0891b2 100%);
}
.blog-visual-6 {
    background: linear-gradient(135deg, #1c0533 0%, #6b21a8 50%, #a855f7 100%);
}

/* --- Card Body --- */
.blog-card-body {
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
}

.blog-card-meta time {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* Tags */
.blog-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}
.blog-tag-tutorial {
    background: #eff6ff;
    color: #1d4ed8;
}
.blog-tag-comparison {
    background: #f0fdf4;
    color: #15803d;
}
.blog-tag-troubleshoot {
    background: #faf5ff;
    color: #7e22ce;
}

/* Card headings */
.blog-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    flex-shrink: 0;
}
.blog-card h3:hover { color: var(--brand-blue); }

.blog-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f5f5f5;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-blue);
    transition: gap 0.2s;
}
.blog-card:hover .blog-read-more { gap: 0.6rem; }
.blog-read-more svg { width: 14px; height: 14px; flex-shrink: 0; }

.blog-read-time {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* --- Empty State --- */
.blog-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    color: var(--text-tertiary);
}
.blog-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.4;
}
.blog-empty p { font-size: 1rem; margin: 0; }

/* --- Blog CTA Section --- */
.blog-cta-section {
    padding: 0 0 5rem;
    background: #fafafa;
}
.blog-cta-inner {
    background: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 3.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}
.blog-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 60%, rgba(59, 130, 246, 0.3) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 40%, rgba(6, 182, 212, 0.2) 0%, transparent 55%);
}
.blog-cta-inner > * { position: relative; z-index: 1; }

.blog-cta-text h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}
.blog-cta-text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    margin: 0;
}

.blog-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.blog-cta-actions .btn-light {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}
.blog-cta-actions .btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
}
.blog-cta-actions .btn-dark {
    background: #fff;
    color: var(--text-primary);
}
.blog-cta-actions .btn-dark:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-card-featured {
        grid-column: 1 / -1;
    }
    .blog-card-featured .blog-card-visual {
        width: 300px;
        min-height: 240px;
    }
    .blog-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2.5rem;
    }
    .blog-cta-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .blog-hero { padding-top: 90px; }

    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-card-featured .blog-card-link {
        flex-direction: column;
    }
    .blog-card-featured .blog-card-visual {
        width: 100%;
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }
    .blog-card-featured .blog-card-body {
        padding: 1.5rem;
    }
    .blog-card-featured h2 {
        font-size: 1.25rem;
    }

    .blog-cta-inner {
        border-radius: var(--radius-md);
        padding: 2.5rem 1.5rem;
    }
    .blog-cta-actions { flex-direction: column; width: 100%; }
    .blog-cta-actions .btn-large { width: 100%; justify-content: center; }
}
