/* Portfolio Grid Filter Styles */

.pgf-main-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.pgf-sidebar {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.pgf-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pgf-reset-filters {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 0.9em;
    padding: 0;
}

.pgf-category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pgf-cat-item {
    margin-bottom: 8px;
}

.pgf-cat-row {
    display: flex;
    align-items: center;
}

.pgf-toggle {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 5px;
    transition: transform 0.2s;
}

.pgf-toggle::before {
    content: '▶';
    font-size: 10px;
    color: #666;
}

.pgf-cat-item.active > .pgf-cat-row > .pgf-toggle::before {
    content: '▼';
}

.pgf-toggle-placeholder {
    width: 25px;
}

.pgf-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
    flex-grow: 1;
}

.pgf-cat-checkbox {
    margin-right: 8px !important;
}

.pgf-sub-tree {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

/* Content Area */
.pgf-content {
    flex-grow: 1;
}

.pgf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pgf-post-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.pgf-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pgf-post-card a {
    text-decoration: none;
    color: inherit;
}

.pgf-post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pgf-post-info {
    padding: 15px;
}

.pgf-post-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.pgf-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-style: italic;
    color: #666;
}

.pgf-pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pgf-page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.pgf-page-link.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

@media (max-width: 768px) {
    .pgf-main-container {
        flex-direction: column;
    }
    .pgf-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
    }
}
