/* ملف CSS خاص بصفحة تعريفات الأجهزة */

/* تنسيق العنوان الرئيسي */
.device-section-title {
    color: #8b0000;
    font-weight: 700;
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
}

.device-section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #8b0000, #ff9800);
    bottom: 0;
    right: 0;
    border-radius: 2px;
}

.device-section-description {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

/* تنسيق مربع البحث */
.device-search-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.device-search-box .form-control {
    border-radius: 5px 0 0 5px;
    border: 1px solid #ced4da;
    height: 50px;
    font-size: 1.1rem;
}

.device-search-box .btn-search {
    background-color: #8b0000;
    color: #fff;
    border-radius: 0 5px 5px 0;
    font-weight: 500;
    height: 50px;
    border: none;
    transition: all 0.3s ease;
}

.device-search-box .btn-search:hover {
    background-color: #6d0000;
}

.search-reset {
    color: #8b0000;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-reset:hover {
    color: #6d0000;
    text-decoration: underline !important;
}

/* تنسيق بطاقات الأجهزة */
.device-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.08);
    height: 100%;
    background: #fff;
    border-bottom: 3px solid #8b0000;
}

.device-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #ffffff);
    position: relative;
    padding: 15px;
    box-sizing: border-box;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
}

.device-card:hover .card-img-top {
    transform: scale(1.05);
}

.no-image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa, #ffffff);
    color: #c0c0c0;
    padding: 15px;
    box-sizing: border-box;
}

.device-card .card-body {
    padding: 1.5rem;
}

.device-card .card-title {
    color: #8b0000;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-card .card-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.device-card .card-footer {
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* أزرار التنزيل والمشاهدة */
.btn-device-pdf {
    background-color: #fff;
    color: #8b0000;
    border: 1px solid #8b0000;
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-device-pdf i {
    margin-left: 5px;
}

.btn-device-pdf:hover {
    background-color: #8b0000;
    color: #fff;
}

.btn-device-exe {
    background-color: #fff;
    color: #218838;
    border: 1px solid #218838;
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-device-exe i {
    margin-left: 5px;
}

.btn-device-exe:hover {
    background-color: #218838;
    color: #fff;
}

.btn-device-disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-device-disabled i {
    margin-left: 5px;
}

/* تنسيق صفحة النتائج الفارغة */
.device-empty-results {
    padding: 3rem;
    text-align: center;
}

.device-empty-results .fas {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.device-empty-results .message {
    font-size: 1.2rem;
    color: #6c757d;
}

.device-empty-results .search-term {
    font-weight: bold;
    color: #8b0000;
}

/* تعديلات للشاشات المختلفة */
@media (max-width: 767px) {
    .device-section-title {
        font-size: 1.5rem;
    }
    
    .device-section-description {
        font-size: 1rem;
    }
    
    .device-search-box {
        padding: 1rem;
    }
    
    .device-card .card-body {
        padding: 1rem;
    }
    
    .device-card .card-footer {
        padding: 0.75rem 1rem;
    }
}
