/* ===================================
   علم السعودية في الـ Navbar
   زرار تبديل اللغة (بدون shape)
   =================================== */

#logo {
    display: flex;
    align-items: center;
    gap: 12px; /* المسافة بين اللوجو والعلم */
}

.saudi-flag-container {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* المسافة بين العلم والـ label */
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.saudi-flag-container:hover {
    transform: translateY(-2px);
}

.saudi-flag-container:active {
    transform: translateY(0);
}

.saudi-flag {
    height: 28px;
    width: auto;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: none; /* العلم نفسه مش clickable، الـ container هو اللي clickable */
}

.saudi-flag-container:hover .saudi-flag {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* الـ Label للغة */
.lang-label {
    font-size: 14px;
    font-weight: 700;
    color: #006233;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.saudi-flag-container:hover .lang-label {
    color: #004d26;
    transform: scale(1.1);
}

/* عند Scroll */
.header-scrolled .saudi-flag {
    height: 24px;
}

.header-scrolled .lang-label {
    font-size: 12px;
}

/* Responsive للموبايل */
@media (max-width: 991px) {
    .saudi-flag {
        height: 24px;
    }
    
    .lang-label {
        font-size: 12px;
    }
    
    #logo {
        gap: 8px;
    }
}

@media (max-width: 575px) {
    .saudi-flag {
        height: 22px;
    }
    
    .saudi-flag-container {
        gap: 5px;
        margin-left: 5px;
    }
    
    .lang-label {
        font-size: 11px;
        min-width: 20px;
    }
    
    #logo {
        gap: 6px;
    }
}

/* للتأكد من التوافق مع RTL/LTR */
html[dir="rtl"] .saudi-flag-container {
    margin-left: 0;
    margin-right: 8px;
    flex-direction: row-reverse; /* العلم على اليمين في RTL */
}

html[dir="rtl"] #logo {
    flex-direction: row-reverse;
}

@media (max-width: 575px) {
    html[dir="rtl"] .saudi-flag-container {
        margin-right: 5px;
    }
}
