/* ===================================
   Widgets CSS - Composants Sidebar
   =================================== */

/* Widget Filtres */
.widget-filter {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.widget-filter .widget-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 20px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    margin-bottom: 12px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.filter-link::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 7px;
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='7' height='7' viewBox='0 0 6 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.48512 0.616324C4.11825 -0.00277913 5.18427 0.445789 5.18427 1.33131L5.18427 3.96752C5.18427 4.51981 4.73655 4.96752 4.18427 4.96752L1.48834 4.96752C0.592022 4.96753 0.148343 3.8792 0.789189 3.25254L3.48512 0.616324Z' fill='%231f1f1f'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-link:hover {
    padding-left: 32px;
    background: #f0f2f5;
    color: #1f1f1f;
    border-color: #e8e8e8;
}

.filter-link:hover::before {
    width: 7px;
    opacity: 1;
}

.filter-link.active {
    padding-left: 32px;
    background: linear-gradient(90deg, rgb(56, 107, 183) 0%, rgb(191, 195, 199) 100%);
    color: #fff;
    font-weight: 600;
}

.filter-link.active::before {
    width: 7px;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='7' height='7' viewBox='0 0 6 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.48512 0.616324C4.11825 -0.00277913 5.18427 0.445789 5.18427 1.33131L5.18427 3.96752C5.18427 4.51981 4.73655 4.96752 4.18427 4.96752L1.48834 4.96752C0.592022 4.96753 0.148343 3.8792 0.789189 3.25254L3.48512 0.616324Z' fill='%23fff'/%3E%3C/svg%3E");
}

.filter-name {
    flex: 1;
}

.filter-count {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
}

.filter-link.active .filter-count {
    opacity: 1;
}

/* Widget Info List */
.project-info-widget {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.project-info-widget .widget-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 20px;
}

.project-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-info-list li {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-info-list li:first-child {
    padding-top: 0;
}

.info-label {
    font-weight: 700;
    color: var(--color-heading, #1a1a1a);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--color-text, #666);
    text-align: right;
    font-weight: 500;
    font-size: 0.9375rem;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1200px) {
    .widget-filter, .project-info-widget { 
        padding: 20px !important; 
    }
}

@media (max-width: 768px) {
    .widget-filter, .project-info-widget { 
        padding: 20px !important; 
    }
    
    .widget-filter .widget-title,
    .project-info-widget .widget-title { 
        font-size: 20px; 
    }
    
    .filter-link { 
        padding: 10px 14px; 
        font-size: 14px; 
    }
    
    .filter-link::before { 
        left: 14px; 
    }
    
    .filter-link:hover { 
        padding-left: 30px; 
    }
    
    .filter-link.active { 
        padding-left: 30px; 
    }
}

@media (max-width: 480px) {
    .widget-filter, .project-info-widget { 
        padding: 16px !important; 
    }
    
    .widget-filter .widget-title,
    .project-info-widget .widget-title { 
        font-size: 18px; 
        margin-bottom: 16px; 
    }
    
    .filter-link { 
        padding: 8px 12px; 
        font-size: 13px; 
    }
    
    .filter-link::before { 
        left: 12px; 
        height: 6px; 
    }
    
    .filter-link:hover { 
        padding-left: 26px; 
    }
    
    .filter-link.active { 
        padding-left: 26px; 
    }
    
    .filter-link:hover::before,
    .filter-link.active::before { 
        width: 6px; 
    }
    
    .info-label,
    .info-value {
        font-size: 0.8125rem;
    }
}

