/* Blog Grid */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 0 1px var(--brand-primary);
    border-color: var(--brand-primary);
}
.theme-light .blog-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08), 0 0 0 1px var(--brand-primary);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-body);
    transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-image {
    transform: scale(1.04);
}
.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.blog-card:hover .blog-card-title {
    color: var(--brand-primary);
}
.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}
.blog-card-link {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    display: inline-block;
    transition: letter-spacing 0.2s ease;
}
.blog-card:hover .blog-card-link {
    letter-spacing: 0.02em;
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1.2s linear infinite alternate;
}
@keyframes skeleton-loading {
    0% { background-color: var(--bg-surface); }
    100% { background-color: var(--border-color); }
}
.skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}
.skeleton-title { height: 24px; width: 80%; }
.skeleton-img { width: 100%; height: 200px; }

/* Single Post Page */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}
.post-header {
    margin-bottom: 2rem;
    text-align: center;
}
.post-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.post-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.post-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
}
.post-content h1, .post-content h2, .post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.post-content p {
    margin-bottom: 1.2rem;
}
.post-content a {
    color: var(--primary-color);
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}
.back-btn:hover {
    color: var(--primary-color);
}
