/* أنماط الأقسام */
.wpboxtools-category-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.wpboxtools-category-header {
    text-align: center;
    margin-bottom: 30px;
}

.wpboxtools-category-title {
    font-size: 1.8em;
    color: #2d3748;
    margin-bottom: 10px;
}

.wpboxtools-category-description {
    color: #718096;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

/* تخطيطات الروابط */
.wpboxtools-layout-list .wpboxtools-download-box {
    margin-bottom: 15px;
}

.wpboxtools-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.wpboxtools-layout-masonry {
    column-count: 3;
    column-gap: 20px;
}

.wpboxtools-layout-masonry .wpboxtools-download-box {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* شبكة الأقسام */
.wpboxtools-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.wpboxtools-category-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.wpboxtools-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wpboxtools-category-card-header {
    margin-bottom: 15px;
}

.wpboxtools-category-card-header h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 1.3em;
}

.wpboxtools-category-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.wpboxtools-category-card-description {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wpboxtools-category-card-actions {
    margin-top: 15px;
}

.wpboxtools-view-category {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wpboxtools-view-category:hover {
    background: #38a169;
    color: white;
}

/* أنماط القوالب المختلفة */
.wpboxtools-template-modern .wpboxtools-download-box {
    border-left: 4px solid #48bb78;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.wpboxtools-template-minimal .wpboxtools-download-box {
    background: transparent;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.wpboxtools-template-minimal .wpboxtools-download-btn {
    background: #718096;
}

.wpboxtools-template-gradient .wpboxtools-download-box {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.wpboxtools-template-gradient .wpboxtools-title,
.wpboxtools-template-gradient .wpboxtools-body p,
.wpboxtools-template-gradient .wpboxtools-meta {
    color: white;
}

.wpboxtools-template-professional .wpboxtools-download-box {
    background: white;
    border: 2px solid #2d3748;
}

.wpboxtools-template-professional .wpboxtools-download-btn {
    background: #2d3748;
}

/* متجاوب */
@media (max-width: 768px) {
    .wpboxtools-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .wpboxtools-layout-masonry {
        column-count: 1;
    }
    
    .wpboxtools-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .wpboxtools-category-section {
        padding: 15px;
    }
}

/* رسالة عدم وجود روابط */
.wpboxtools-no-links {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}