/* 
 * تصميم نظيف لصفحات الأقسام بدون Schema markup
 * Mobile Phone Showcase - Category Clean Design
 */

/* تحسينات إضافية للبطاقات */
.phone-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.phone-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

/* تحسين العناوين */
.phone-title a {
    display: block;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.phone-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* تحسين شارة الماركة */
.brand-badge {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.9), 
        rgba(29, 78, 216, 0.9)
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-badge span {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* تحسين الصور */
.phone-image {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 1px solid var(--border-light);
}

.phone-image img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-card:hover .phone-image img {
    transform: scale(1.08);
}

/* تحسين المواصفات */
.spec-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.spec-item:hover {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
}

.spec-item:hover::before {
    opacity: 1;
}

.spec-icon {
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.spec-item:hover .spec-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* تحسين زر عرض التفاصيل */
.view-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.5s;
}

.view-button:hover::before {
    left: 100%;
}

.view-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
}

.view-button:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s;
}

/* تحسين فلتر الماركات */
.brands-filter-section {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.brand-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.brand-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.brand-item:hover::before {
    transform: scaleY(1);
}

.brand-item:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.brand-item.current {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.brand-item.current::before {
    background: rgba(255, 255, 255, 0.3);
    transform: scaleY(1);
}

/* تحسين الترقيم */
.pagination-wrapper a,
.pagination-wrapper span {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.pagination-wrapper a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(37, 99, 235, 0.1), 
        transparent
    );
    transition: left 0.3s;
}

.pagination-wrapper a:hover::before {
    left: 100%;
}

.pagination-wrapper a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.pagination-wrapper .current {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* تحسينات للحالة الفارغة */
.empty-state {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-light);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* تحسينات للسيدبار */
.sidebar {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar .widget-title::after,
.sidebar .widgettitle::after {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 3px;
    border-radius: 2px;
}

/* تحسينات متجاوبة إضافية */
@media (max-width: 768px) {
    .phone-card:hover {
        transform: translateY(-3px) scale(1.005);
    }
    
    .brand-item:hover {
        transform: translateX(2px);
    }
    
    .view-button:hover {
        transform: translateY(-1px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .phone-card:hover {
        transform: translateY(-2px);
    }
    
    .spec-item:hover {
        transform: none;
    }
    
    .brand-item:hover {
        transform: none;
    }
}

/* تحسينات للأداء */
.phone-card,
.spec-item,
.brand-item,
.view-button {
    will-change: transform;
}

/* تحسينات للوصولية */
@media (prefers-reduced-motion: reduce) {
    .phone-card,
    .spec-item,
    .brand-item,
    .view-button,
    .pagination-wrapper a {
        transition: none;
    }
    
    .phone-card:hover,
    .spec-item:hover,
    .brand-item:hover {
        transform: none;
    }
}

/* تحسينات للطباعة */
@media print {
    .brands-filter-section,
    .pagination-wrapper,
    .sidebar {
        display: none;
    }
    
    .phone-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .view-button {
        display: none;
    }
}
