/* ── Blog hero ────────────────────────────────────────────────────────── */
.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2.5rem 0 2rem;
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 1.75rem 0 1.5rem;
    }
}

/* ── Blog card ────────────────────────────────────────────────────────── */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.blog-thumb {
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-light);
}

.blog-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    color: var(--text-3);
    font-size: .8rem;
    margin-bottom: .5rem;
}

.blog-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: .5rem;
}

.blog-title a {
    color: var(--text);
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-2);
    font-size: .9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.blog-readmore {
    color: var(--primary);
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    align-self: flex-start;
}

.blog-readmore:hover {
    color: var(--primary-dark);
}

/* ── Blog empty state ─────────────────────────────────────────────────── */
.blog-empty-state {
    padding: 4rem 2rem;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
}

.blog-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

/* ── Blog details ─────────────────────────────────────────────────────── */
.blog-details-image {
    width: 100%;
    border-radius: var(--radius-lg);
}

.blog-content {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.8;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
    color: var(--text);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: .75rem;
}

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

.blog-content img {
    max-width: 100%;
    border-radius: var(--radius);
}

/* ── Blog comments ────────────────────────────────────────────────────── */
.blog-comments {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.blog-comment-form textarea {
    resize: vertical;
}

.blog-comment {
    display: flex;
    gap: .85rem;
    margin-bottom: 1.5rem;
}

.blog-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-comment-body {
    flex-grow: 1;
}

.blog-comment-meta {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin-bottom: .25rem;
}

.blog-comment-author {
    font-weight: 600;
    color: var(--text);
    font-size: .9rem;
}

.blog-comment-date {
    color: var(--text-3);
    font-size: .78rem;
}

.blog-comment-text {
    color: var(--text-2);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: .5rem;
}

.blog-comment-reply-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font-weight: 600;
    font-size: .8rem;
    cursor: pointer;
}

.blog-comment-reply-btn:hover {
    color: var(--primary-dark);
}

.blog-comment-replies {
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border);
}

.blog-comment-reply {
    margin-bottom: 1rem;
}

.blog-comment-reply .blog-comment-avatar {
    width: 32px;
    height: 32px;
    font-size: .85rem;
}
