.ajax-filter-wrapper {
    margin: 0 auto;
    max-width: 700px;
}

.ajax-filter-form {
    margin-bottom: 20px;
}

.ajax-filter-select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
}

.post-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-item:last-child {
    border-bottom: none;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    margin-bottom: 10px;
}

/* Checkbox styles */
.checkbox-label {
    display: block;
    margin-bottom: 5px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* Radio styles */
.radio-label {
    display: block;
    margin-bottom: 5px;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
}

/* Make filters appear side by side on wider screens */
@media (min-width: 768px) {
    .ajax-filter-form {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .filter-group {
        flex: 1;
        min-width: 200px;
    }
}

/* Loading animations */
.ajax-filter-results {
    transition: opacity 0.3s ease;
}

.ajax-filter-results.loading {
    opacity: 0.5;
}

.ajax-filter-results.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ajax-filter-results.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .filter-group {
        width: 100%;
    }
    
    .filter-toggle-button {
        display: block;
    }
    
    .filters-wrapper {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 20px;
        z-index: 1000;
    }
    
    .filters-wrapper.active {
        display: block;
    }
}

.posts-count {
    text-align: center;
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
}

/* Reset button styles */
.reset-filters {
    position: absolute;
    top: 10px;
    right: -30px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    color: #666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.reset-filters:hover {
    opacity: 1;
}

.reset-filters .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Make sure form has relative positioning for reset button */
.ajax-filter-form {
    position: relative;
    margin-bottom: 20px;
}

.load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}

.load-more-button {
    min-width: 150px;
}

.load-more-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
} 