/* Wrapper */
.wp-post-filter-wrapper {
    margin: 20px 0;
}

/* Controls Header */
.wp-post-filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Category Buttons */
.wp-post-filter-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wp-post-filter-btn {
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    /* Default fallback colors, overridden by inline PHP */
    background-color: #eee;
    color: #333;
    border-radius: 4px;
}

/* Sort Select */
.wp-post-filter-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-post-filter-sort select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Posts Grid */
.wp-post-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Post Item Card */
.wp-post-filter-item {
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    /* Could be variable? */
    padding: 15px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-post-filter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.wp-post-filter-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    display: block;
}

.wp-post-filter-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.wp-post-filter-title a {
    text-decoration: none;
    color: inherit;
}

.wp-post-filter-excerpt {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.wp-post-filter-meta {
    font-size: 0.85em;
    color: #999;
}