/* Blog-specific styles extending main styles.css */

/* Blog introduction section */
#blog-intro {
    padding: clamp(1.1rem, 2.5vw, 1.8rem);
    margin: 1.25rem 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

#blog-intro h2 {
    color: var(--heading);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    margin-bottom: 1rem;
}

#blog-intro p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Posts list container */
#blog-posts {
    width: 100%;
    padding-top: 1rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual post card */
.post-card {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 12px 32px rgba(96, 165, 250, 0.15);
    transform: translateY(-2px);
}

.post-card h3 {
    margin: 0 0 0.75rem 0;
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

.post-card h3 a {
    color: var(--heading);
    text-decoration: none;
    transition: color 0.25s ease;
}

.post-card h3 .post-title {
    color: var(--heading);
}

.post-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: rgba(2, 6, 23, 0.25);
}

.post-status--wip {
    border-color: rgba(245, 158, 11, 0.35);
    color: rgba(251, 191, 36, 0.95);
    background: rgba(245, 158, 11, 0.12);
}

.post-status--coming {
    border-color: rgba(96, 165, 250, 0.35);
    color: rgba(147, 197, 253, 0.98);
    background: rgba(96, 165, 250, 0.12);
}

.post-card h3 a:hover {
    color: var(--primary);
}

/* Post metadata (date, reading time) */
.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-date,
.post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-date .material-symbols-outlined,
.post-reading-time .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--primary);
}

.post-card > p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-card {
        padding: 1rem;
    }
}
