/* ========================================
   BLOG STYLES
   ======================================== */
#blog-section {
    padding: 4rem 4rem 0;
}

#blog-section h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--theme-primary);
    max-width: 800px;
    margin: 3rem auto;
    font-family: var(--theme-font-heading);
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.blog-post:hover {
    border-color: var(--theme-border-heavy);
    cursor: default;
}

.blog-post-title {
    text-decoration: none;
    color: var(--theme-text);
    display: block;
}

.blog-post-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin-bottom: 0.5rem;
    font-family: var(--theme-font-heading);
}

.blog-post-title h2:hover {
    color: var(--theme-primary-dark);
}

.blog-post-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    margin-bottom: 1rem;
}

.blog-post-author {
    color: var(--theme-primary);
    font-weight: 500;
}

.blog-post-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
    object-fit: cover;
    max-height: 300px;
}

.blog-post-excerpt {
    color: var(--theme-text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.blog-post-excerpt p {
    margin-bottom: 0.75rem;
}

.blog-post-excerpt p:last-child {
    margin-bottom: 0;
}

.blog-post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border);
}

.blog-post-actions .like-btn,
.blog-post-actions .comment-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--theme-text-light);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}

.blog-post-actions .like-btn:hover,
.blog-post-actions .comment-btn:hover {
    background: var(--theme-hover-bg);
    color: var(--theme-primary);
}

.blog-post-actions .read-more-btn {
    margin-left: auto;
    text-decoration: none;
    color: var(--theme-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.blog-post-actions .read-more-btn:hover {
    color: var(--theme-primary-dark);
}

.blog-post-comments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-border);
    display: none;
}

.blog-post-comments h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
    font-family: var(--theme-font-heading);
}

.comment-list {
    margin-bottom: 1rem;
}

.no-comments {
    color: var(--theme-text-muted);
    font-style: italic;
    font-size: 0.875rem;
}

.comment {
    background: var(--theme-bg-light);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.comment-text {
    color: var(--theme-text);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

.add-comment {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-input {
    width: 100%;
    min-height: 60px;
    padding: 0.75rem;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    font-family: var(--theme-font-body);
    font-size: 0.9375rem;
    resize: vertical;
    background: var(--theme-bg);
    color: var(--theme-text);
    transition: border-color 0.2s ease;
}

.comment-input:focus {
    outline: none;
    border-color: var(--theme-primary);
}

.submit-comment-btn {
    align-self: flex-start;
    padding: 0.5rem 1.25rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--theme-font-heading);
    font-size: 0.875rem;
}

.submit-comment-btn:hover {
    background: var(--theme-primary-dark);
    transform: translateY(-1px);
}

.blog-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1.5rem;
    color: #991b1b;
}

.blog-error p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.blog-error small {
    display: block;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    #blog-section {
        padding: 2rem 2rem 0;
    }

    #blog-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .blog-post {
        padding: 1rem;
    }

    .blog-post-title h2 {
        font-size: 1.25rem;
    }

    .blog-post-actions {
        flex-wrap: wrap;
    }

    .blog-post-actions .read-more-btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
        padding-top: 0.75rem;
    }
}
