/* Reza Projects Filter Styles */
.reza-projects-filter {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-section {
    flex: 1;
    min-width: 200px;
}

.filter-section h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    color: #495057;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #6c757d;
    color: #fff;
}

.reset-btn:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.filter-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.filter-loading span {
    display: inline-block;
    position: relative;
}

.filter-loading span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 100%;
    margin-left: 10px;
    margin-top: -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-section {
        min-width: auto;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .filter-btn,
    .reset-btn {
        flex: 1;
        max-width: 150px;
    }
}

/* Project Items Styles */
.project-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.project-content {
    padding: 15px;
}

.project-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.project-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-title a:hover {
    color: #007bff;
}

.project-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.no-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.no-posts-found {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-posts-found p {
    font-size: 16px;
    margin: 0;
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .filter-container {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .filter-section h4 {
        color: #e2e8f0;
    }
    
    .filter-select {
        background-color: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .filter-select:focus {
        border-color: #63b3ed;
        box-shadow: 0 0 0 0.2rem rgba(99, 179, 237, 0.25);
    }
    
    .project-item {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .project-title a {
        color: #e2e8f0;
    }
    
    .project-excerpt {
        color: #a0aec0;
    }
    
    .no-image {
        background: #4a5568;
        color: #a0aec0;
    }
}
