/* Text panel padding */
.text-panel {
    padding: 20px;
}

/* Blog Page Grid */
.blog-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
}

.blog-tags-panel {
    grid-column: 1 / -1;
}

.blog-posts-panel {
    grid-column: 1 / 2;
}

.blog-image-panel {
    grid-column: 2 / 3;
}

/* Tag Filter */
.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-btn {
    padding: 6px 14px;
    border: 1px solid var(--color-border-strong, rgba(42, 37, 33, 0.15));
    border-radius: 20px;
    background-color: transparent;
    color: var(--color-text, #333);
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-btn:hover {
    border-color: var(--color-accent, #c9a227);
    color: var(--color-accent, #c9a227);
}

.tag-btn.active {
    background-color: var(--color-primary, #2a2521);
    border-color: var(--color-primary, #2a2521);
    color: white;
}

/* Style for posts list */
.posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: none;
    overflow-y: visible;
}

.posts-list li {
    border-bottom: 1px solid var(--color-border, rgba(42, 37, 33, 0.1));
    padding: 15px;
    margin: 0 -15px;
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-radius: var(--radius-md, 8px);
    transition: background-color var(--transition-fast, 0.15s ease);
}

.posts-list li:hover {
    background-color: var(--color-bg-secondary, rgba(0, 0, 0, 0.02));
}

.posts-list li:last-child {
    border-bottom: none;
}

/* Post Thumbnail */
.post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.post-content-wrapper {
    flex: 1;
    min-width: 0;
}

.posts-list .post-title-link {
    font-size: 1.2em;
    color: var(--color-primary, #2a2521);
    text-decoration: none;
    font-weight: 500;
}

.posts-list .post-title-link:hover {
    color: var(--color-accent, #c9a227);
    text-decoration: none;
}

.posts-list p {
    margin: 5px 0 0;
    color: var(--color-text-light, #666);
}

.posts-list .post-date {
    font-style: italic;
    color: var(--color-text-muted, #888);
    font-size: 0.9em;
}

.posts-list .post-excerpt {
    margin-top: 8px;
    line-height: 1.5;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.post-tag {
    padding: 3px 10px;
    background-color: var(--color-bg-tertiary, rgba(42, 37, 33, 0.08));
    border-radius: 4px;
    font-size: 0.75em;
    color: var(--color-text-light, #666);
}

/* No posts message */
.no-posts-message {
    text-align: center;
    color: var(--color-text-muted, #888);
    padding: 30px;
    font-style: italic;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border, rgba(42, 37, 33, 0.1));
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--color-border-strong, rgba(42, 37, 33, 0.15));
    border-radius: 6px;
    background-color: transparent;
    color: var(--color-text, #333);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: var(--color-accent, #c9a227);
    color: var(--color-accent, #c9a227);
}

.page-btn.active {
    background-color: var(--color-primary, #2a2521);
    border-color: var(--color-primary, #2a2521);
    color: white;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-image-panel {
        display: none;
    }

    .blog-posts-panel {
        grid-column: 1 / -1;
    }

    .post-thumbnail {
        width: 100px;
        height: 70px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .text-panel {
        padding: 15px;
    }

    .posts-list {
        max-height: none;
        overflow-y: visible;
    }

    .posts-list li {
        flex-direction: column;
        margin: 0;
        padding: 15px 0;
        border-radius: 0;
    }

    .posts-list li:hover {
        background-color: transparent;
    }

    .post-thumbnail {
        width: 100%;
        height: 140px;
    }

    .tag-filter {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .tag-btn {
        padding: 8px 14px;
        font-size: 0.85em;
        flex-shrink: 0;
        min-height: 44px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-btn {
        min-height: 44px;
        min-width: 44px;
    }
}
