/* ========== متغيرات من بيانات الموقع ========== */
:root {
    --maincolor:  '#0a58ca' ;
    --secondcolor:'#6c757d' ;
    --thirdcolor: '#17a2b8' ;
    --light-color:'#ffffff' ;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);

            --dark-color: #2c3e50;
}

.glass-navbar-modern {
    background: rgba(0, 0, 0, 0.826);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}


.glass-navbar-modern.scrolled {
    background: var(--maincolor);
    backdrop-filter: blur(16px);
    padding: 0.5rem 0;
}

/
.brand-logo-glow {
    filter: drop-shadow(0 0 5px rgba(0,123,255,0.3));
    transition: transform 0.3s ease;
}
.brand-logo-glow:hover { transform: scale(1.02); }
.brand-text-modern {
    font-size: 1rem;
    font-weight: 600;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    color: #fff;
     white-space: normal;   /* مهم */

    max-width: 220px;
}

.hamburger-modern {
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s;
}
.hamburger-modern:hover { background: rgba(255,255,255,0.1); }
.hamburger-line {
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 4px;
    transition: all 0.3s;
}

/* روابط سطح المكتب */
.nav-link-modern {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: all 0.25s;
    position: relative;
    text-decoration: none;
}
.nav-link-modern:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}
.active-modern {
    color: white;
    background: linear-gradient(120deg, var(--maincolor), var(--secondcolor));
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* زر تقديم البحث */
.btn-submit-research-modern {
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-submit-research-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--maincolor), 0.4);
    color: white;
}

/* تبديل اللغة */
.lang-switcher-modern {
    background: rgba(255,255,255,0.08);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: white;
    font-weight: 500;
    transition: 0.2s;
     text-decoration: none;
}
.lang-switcher-modern:hover {
    background: var(--maincolor);
    color: white;
}

/* أيقونات المستخدم */
.user-dropdown-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
}
.user-avatar-modern {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
}
.user-name-desktop { font-weight: 500; }

/* أزرار تسجيل الدخول / الاشتراك */
.btn-login-modern, .btn-register-modern {
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s;
     text-decoration: none;
}
.btn-login-modern {
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
}
.btn-login-modern:hover {
    background: white;
    color: var(--maincolor);
}
.btn-register-modern {
    background: var(--maincolor);
    color: white;
}
.btn-register-modern:hover {
    background: var(--thirdcolor);
    transform: scale(1.02);
}

/* ===== Offcanvas الجانبي للهواتف ===== */
.mobile-offcanvas-modern {
      background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);

    width: 320px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-link {
    display: block;
    padding: 10px 12px;
    color: rgba(255,255,255,0.85);
    border-radius: 14px;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
    color:black;
}
.mobile-nav-link:hover, .active-mobile {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}
.btn-submit-mobile {
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    color: white;
    text-align: center;
}
.user-info-mobile {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    margin-bottom: 12px;
}
.user-avatar-mobile {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.mobile-logout-btn {
    width: 100%;
    background: rgba(220,53,69,0.2);
    border: none;
    color: #ff8a92;
    padding: 10px;
    border-radius: 40px;
    font-weight: 600;
    margin-top: 12px;
}
.btn-login-mobile, .btn-register-mobile {
    text-align: center;
    margin-top: 8px;
}
.btn-register-mobile { background: var(--maincolor); }
