/* assets/css/projects.css - تصميم عصري لصفحة المشاريع */

/* ============================================ */
/* PROJECTS HEADER */
/* ============================================ */
.projects-header {
    background: linear-gradient(135deg, #1a5276, #2c3e50) !important;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* ============================================ */
/* FILTERS SECTION */
/* ============================================ */
.projects-filters-section {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filters-wrapper {
    padding: 10px 0;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #fff;
    border-radius: 50px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-tab.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

.filter-tab i {
    font-size: 14px;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.filter-tab.active .filter-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.filter-stats {
    text-align: left;
}

.total-projects {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.total-projects i {
    color: var(--secondary);
}

/* ============================================ */
/* PROJECT CARDS ADVANCED */
/* ============================================ */
.project-card-advanced {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}

.project-card-advanced:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.project-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-advanced:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.badge-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.badge-type.completed {
    background: #27ae60;
}

.badge-type.ongoing {
    background: #f39c12;
}

.badge-type.planned {
    background: #3498db;
}

.project-card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(0,0,0,0.1);
    z-index: 2;
}

.progress-bar-advanced {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    position: relative;
    transition: width 1.5s ease;
    border-radius: 0 2px 2px 0;
}

.progress-bar-advanced span {
    position: absolute;
    right: 0;
    top: -22px;
    font-size: 11px;
    font-weight: 700;
    color: #f39c12;
}

.project-card-body {
    padding: 22px 24px 24px;
}

.project-card-body h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-card-body p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
}

.meta-item i {
    color: var(--primary);
    font-size: 14px;
    width: 16px;
}

.btn-project {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-project:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(26, 82, 118, 0.3);
}

.btn-project i {
    transition: transform 0.3s ease;
}

.btn-project:hover i {
    transform: translateX(5px);
}

/* ============================================ */
/* EMPTY STATE */
/* ============================================ */
.empty-projects {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-projects h4 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.empty-projects p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 992px) {
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-stats {
        text-align: center;
        margin-top: 15px;
    }
    
    .project-card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .filter-tab i {
        font-size: 12px;
    }
    
    .filter-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .project-card-image {
        height: 180px;
    }
    
    .project-card-body {
        padding: 18px 18px 20px;
    }
    
    .project-card-body h4 {
        font-size: 1rem;
    }
    
    .project-card-meta {
        gap: 8px;
        padding: 10px 0;
    }
    
    .meta-item {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .filter-tabs {
        gap: 5px;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
        min-width: 60px;
    }
    
    .filter-tab .filter-count {
        display: none;
    }
    
    .project-card-image {
        height: 160px;
    }
    
    .badge-type {
        font-size: 10px;
        padding: 4px 12px;
    }
    
    .btn-project {
        font-size: 14px;
        padding: 10px;
    }
}

/* ============================================ */
/* RTL OVERRIDES */
/* ============================================ */
.rtl .project-card-badge {
    right: auto;
    left: 15px;
}

.rtl .btn-project:hover {
    transform: translateX(-5px);
}

.rtl .btn-project:hover i {
    transform: translateX(-5px);
}

.rtl .meta-item i {
    margin-left: 5px;
    margin-right: 0;
}