/* ===== تصميم التصنيفات الدائرية الكبيرة للثيم الافتراضي ===== */

/* شبكة التصنيفات للكمبيوتر - 6 في الصف */
.categories-grid-desktop {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 10px 0;
}

/* عنصر التصنيف للكمبيوتر */
.category-item-desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.category-item-desktop:hover {
    transform: translateY(-5px);
}

/* حاوي الأيقونة الدائرية للكمبيوتر */
.category-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #fff;
    position: relative;
}

.category-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #28a745, #ffc107, #dc3545);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item-desktop:hover .category-icon-wrapper::before {
    opacity: 1;
}

.category-item-desktop:hover .category-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* صورة التصنيف */
.category-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item-desktop:hover .category-icon-wrapper img {
    transform: scale(1.1);
}

/* اسم التصنيف للكمبيوتر */
.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.category-item-desktop:hover .category-name {
    color: #007bff;
}

/* شبكة التصنيفات للجوال - 4 في الصف */
.categories-grid-mobile {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px 0;
}

/* عنصر التصنيف للجوال */
.category-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.category-item-mobile:hover {
    transform: translateY(-3px);
}

/* حاوي الأيقونة الدائرية للجوال */
.category-icon-wrapper-mobile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #fff;
    position: relative;
}

.category-icon-wrapper-mobile::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #28a745, #ffc107, #dc3545);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item-mobile:hover .category-icon-wrapper-mobile::before {
    opacity: 1;
}

.category-item-mobile:hover .category-icon-wrapper-mobile {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* صورة التصنيف للجوال */
.category-icon-wrapper-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item-mobile:hover .category-icon-wrapper-mobile img {
    transform: scale(1.1);
}

/* اسم التصنيف للجوال */
.category-name-mobile {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-item-mobile:hover .category-name-mobile {
    color: #007bff;
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .categories-grid-mobile {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-icon-wrapper-mobile {
        width: 70px;
        height: 70px;
    }
    
    .category-name-mobile {
        font-size: 11px;
        max-width: 70px;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1400px) {
    .categories-grid-desktop {
        gap: 25px;
    }
    
    .category-icon-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .category-name {
        font-size: 18px;
    }
}

/* تأثيرات إضافية للتفاعل */
.category-item-desktop a,
.category-item-mobile a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.category-item-desktop a:hover,
.category-item-mobile a:hover {
    text-decoration: none;
    color: inherit;
}

/* تحسين عنوان قسم التصنيفات */
.categories-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* تأثير loading للصور */
.category-icon-wrapper img[src=""],
.category-icon-wrapper-mobile img[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}