/* تحسين مظهر شعارات الشركات */

.company-logo-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.company-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.company-logo-fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.company-logo-fallback:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 100%);
}

/* تحسين للشركات بأسماء عربية */
.company-logo-fallback[data-arabic="true"] {
    font-family: 'Arial', sans-serif;
    direction: rtl;
}

/* Loading animation للصور */
.company-logo-img[style*="opacity: 0"] {
    animation: fadeInImage 0.5s ease-in-out forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* تحسين للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .company-logo-container {
        border: 1px solid #333;
    }
    
    .company-logo-fallback {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 768px) {
    .company-logo-container {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    .company-logo-container:hover {
        transform: scale(1.02);
    }
}

/* تحسين placeholder للشركات بدون شعار */
.company-logo-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-logo-placeholder::before {
    content: "🏢";
    font-size: 16px;
    margin-bottom: 2px;
    display: block;
}