/**
 * تحسينات عرض أعلام الدول
 * بوابة الوحدة العربية - نظام إدارة المحتوى الإخباري
 */

/* تنسيق لصور الأعلام المحسنة في صفحة الوثائق */
.country-info-enhanced {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.country-flag-large-container {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-flag-large-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.flag-image-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}

.country-details {
    flex: 1;
}

/* تحسين عرض اسم الدولة */
.country-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.country-info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #666;
}

.country-code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.country-capital {
    font-size: 0.9rem;
}

/* تحسينات الجدول */
.countries-documents-grid table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.countries-documents-grid th {
    font-size: 1.1rem;
    padding: 15px;
}

.countries-documents-grid td {
    padding: 15px;
    vertical-align: middle;
}

.countries-documents-grid tbody tr {
    transition: background-color 0.3s ease;
}

.countries-documents-grid tbody tr:hover {
    background-color: #f8f9fa;
}

.country-cell {
    min-width: 250px;
}

/* عند العرض على الشاشات الصغيرة */
@media (max-width: 768px) {
    .country-info-enhanced {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .country-flag-large-container {
        width: 100px;
        height: 60px;
        margin-bottom: 10px;
    }
}

/* حالة عدم وجود علم */
.flag-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eaeaea;
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 5px;
}
