.filter-section {
    background: var(--white-color);
    border-radius: 15px;
    padding: 25px 30px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 25px;
    border: 2px solid #eee;
    border-radius: 50px;
    background: var(--white-color);
    color: var(--body-color);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-tab:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
    transform: translateY(-3px);
}

.filter-tab.active {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

.filter-tab i {
    font-size: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-card {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--theme-color);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.category-book {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.category-article {
    background: linear-gradient(135deg, #2196F3 0%, #0D47A1 100%);
}

.category-video {
    background: linear-gradient(135deg, #FF5722 0%, #D84315 100%);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.card-meta i {
    margin-left: 5px;
}

.card-description {
    color: var(--body-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 15px;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    font-weight: 600;
    font-size: 14px;
}

.author-name {
    font-size: 14px;
    color: var(--title-color);
    font-weight: 500;
}

.view-btn {
    padding: 8px 20px;
    background: var(--theme-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    background: #2d56e8;
    color: white;
    transform: translateX(-5px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #666;
    margin-bottom: 10px;
}

.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.toggle-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid #eee;
    background: var(--white-color);
    color: var(--body-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.toggle-btn.active {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

/* نمط القائمة */
.content-list .content-card {
    flex-direction: row;
    max-width: 100%;
}

.content-list .card-image {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.content-list .card-content {
    flex-grow: 1;
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .content-list .content-card {
        flex-direction: column;
    }
    
    .content-list .card-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {    
    .filter-section {
        padding: 20px;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tab {
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .card-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-btn {
        width: 100%;
        justify-content: center;
    }
}