/* ================================
   NAVBAR BASE
================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--color-white);
    z-index: 9999;
    display: flex;
    align-items: center;
}

.inner-nav {
    width: 100%;
    max-width: var(--container-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* ================================
   LOGO
================================ */
.logo {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo,
.logo img {
    background: transparent !important;
    box-shadow: none;
}

.logo img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    height: 120px;
    /* تحكم في الحجم */
    width: auto;
    /* مهم جدًا */
    max-width: 180px;
    /* يمنع التمدد الزائد */

    object-fit: contain;
    background: none;
}

/* Hover بدون كسر التمركز */
.logo img:hover {
    transform: translateY(-50%) scale(1.05);
}

/* ================================
   MENU BUTTON
================================ */
.menu-toggle {
    background: none;
    border: none;
    color: var(--color-secondary-nav-gray);
    font-size: 22px;
    cursor: pointer;
    display: none;
}

/* ================================
   NAV LINKS DESKTOP
================================ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links ul {
    display: flex;
    gap: 10px;
    list-style: none;
    font-weight: 700 !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-secondary-nav-gray);
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

/* .nav-links a a:hover{
    background-color: var(--color-primary-blu);
    color: var(--color-white)

} */

/* Hover effect */
.nav-links a:hover {
    /* color: var(--color-primary-blu); */
    background-color: var(--color-primary-blu);
    color: var(--color-white)
}

/* ================================
   SUPPORT BUTTON
================================ */
.support-btn {
    background: var(--color-btn-background);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================
   ICON VISIBILITY CONTROL
================================ */

/* افتراضياً: مخفية (Desktop) */
.mobile-icon {
    display: none;
}

/* ================================
   MOBILE STYLE
================================ */
@media (max-width: 992px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        height: 100vh;
        width: var(--mobile-menu-width);
        background: #fff;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
        padding: 70px 15px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 20px;
        overflow-y: auto;
        scroll-behavior: smooth;
        transition: transform 0.4s cubic-bezier(.77, 0, .18, 1);
        border-radius: 0 20px 20px 0;
        z-index: 10000;
        -webkit-overflow-scrolling: touch;
        will-change: transform;
    }

    /* اخفاء scrollbar */
    .nav-links::-webkit-scrollbar {
        width: 0;
    }

    /* RTL دعم */
    /* الحالة الافتراضية (مقفولة) */
    html[dir="rtl"] .nav-links {
        right: 0;
        transform: translateX(110%);
        border-radius: 20px 0 0 20px;
    }

    html[dir="ltr"] .nav-links {
        left: 0;
        transform: translateX(-110%);
    }

    /* الحالة المفتوحة */
    .nav-links.open {
        transform: translateX(0) !important;
    }

    /* عند الفتح */
    .nav-links.open {
        transform: translateX(0);
    }

    /* القائمة */
    .nav-links ul {
        flex-direction: column;
        gap: 5px;
    }

    .nav-links ul li {
        width: 100%;
    }

    .nav-links ul li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        border-radius: 10px;
        color: #333;
        font-weight: 600;
        transition: 0.3s;
        position: relative;
    }

    /* Hover احترافي */
    html[dir="rtl"] .nav-links ul li a:hover {
        transform: translateX(-5px);
    }

    html[dir="ltr"] .nav-links ul li a:hover {
        transform: translateX(5px);
    }

    /* ======================
       ICON ONLY ON MOBILE
    ====================== */
    .mobile-icon {
        display: inline-block;
        font-size: 18px;
        min-width: 25px;
        text-align: center;
    }


    /* ======================
   ICON ON EDGE (الحافة)
====================== */

    .mobile-icon {
        position: absolute;
        font-size: 18px;
        width: 30px;
        text-align: center;
    }

    /* RTL (العربي) */
    html[dir="rtl"] .mobile-icon {
        right: -5px;
        /* يخليها تلمس حافة الشاشة */
    }

    /* LTR */
    html[dir="ltr"] .mobile-icon {
        left: -5px;
    }

    /* النص يتحرك بعيد عن الأيقونة */
    html[dir="rtl"] .nav-links ul li a {
        padding-right: 40px;
    }

    html[dir="ltr"] .nav-links ul li a {
        padding-left: 40px;
    }

    /* ======================
       LANGUAGE LINK
    ====================== */
    .lang-link {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 15px;
        /* margin-top: auto; */
        padding: 10px;
        border-radius: 10px;
        background: var(--color-secondary-gray);
        color: #333;
        background: #f3ba2f;
    }

    /* ======================
       OVERLAY
    ====================== */
    /* body::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 9998;
    }

    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    } */

    /* ======================
       اخفاء النصوص في الديسكتوب فقط للأيقونات
    ====================== */

    .nav-links ul li a {
        position: relative;
        display: flex;
        align-items: center;
        padding: 12px 15px;
    }

    /* RTL */
    html[dir="rtl"] .nav-links ul li a {
        padding-right: 45px;
    }

    /* LTR */
    html[dir="ltr"] .nav-links ul li a {
        padding-left: 45px;
    }
}