/* ============================================
   MODERN MOBILE HEADER - هيدر الهاتف العصري
   ============================================ */

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
    .professional-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        box-shadow: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
    
    .professional-mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* ===== MOBILE HEADER ===== */
    .professional-header {
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: none !important;
        padding: 0 !important;
        height: 70px !important;
        transition: all 0.3s ease !important;
    }
    
    /* Hide original menu completely on mobile - we use separate sidebar */
    .professional-menu {
        display: none !important;
    }
    
    /* Header when scrolled - becomes white with blur */
    .professional-header.scrolled {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    }
    
    .professional-container {
        padding: 0 20px !important;
        max-width: 100% !important;
    }
    
    .professional-nav {
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* ===== LOGO SECTION ===== */
    .professional-logo {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex: 1 !important;
        max-width: calc(100% - 140px) !important;
    }
    
    .professional-logo-img {
        height: 45px !important;
        width: auto !important;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    }
    
    /* Show company name on mobile */
    .professional-logo-text {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* RTL - العربي: محاذاة يمين */
    [dir="rtl"] .professional-logo-text {
        align-items: flex-end !important;
    }
    
    /* LTR - الإنجليزي: محاذاة يسار */
    [dir="ltr"] .professional-logo-text {
        align-items: flex-start !important;
    }
    
    .professional-logo-main {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        display: block !important;
    }
    
    /* RTL - العربي: محاذاة نص يمين */
    [dir="rtl"] .professional-logo-main {
        text-align: right !important;
        direction: rtl !important;
    }
    
    /* LTR - الإنجليزي: محاذاة نص يسار */
    [dir="ltr"] .professional-logo-main {
        text-align: left !important;
        direction: ltr !important;
    }
    
    .professional-logo-sub {
        font-size: 9px !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        display: block !important;
    }
    
    /* RTL - العربي: محاذاة نص يمين */
    [dir="rtl"] .professional-logo-sub {
        text-align: right !important;
        direction: rtl !important;
    }
    
    /* LTR - الإنجليزي: محاذاة نص يسار */
    [dir="ltr"] .professional-logo-sub {
        text-align: left !important;
        direction: ltr !important;
    }
    
    /* English subtitle smaller */
    [dir="ltr"] .professional-logo-sub {
        font-size: 7px !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Logo colors when scrolled */
    .professional-header.scrolled .professional-logo-main {
        color: #1a1a1a !important;
        text-shadow: none;
    }
    
    .professional-header.scrolled .professional-logo-sub {
        color: #666666 !important;
    }
    
    /* ===== ACTIONS SECTION ===== */
    .professional-actions {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    /* Language Button */
    .professional-lang-btn {
        width: 45px !important;
        height: 45px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        border-radius: 12px !important;
        color: #ffffff !important;
        font-size: 20px !important;
        transition: all 0.3s ease !important;
    }
    
    .professional-lang-btn:hover,
    .professional-lang-btn:active {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: scale(1.05) !important;
    }
    
    .professional-lang-text {
        display: none !important;
    }
    
    /* Language button when scrolled */
    .professional-header.scrolled .professional-lang-btn {
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
        border-color: rgba(59, 130, 246, 0.3) !important;
        color: #ffffff !important;
    }
    
    .professional-header.scrolled .professional-lang-btn:hover {
        background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%) !important;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
    }
    
    /* Mobile Toggle Button */
    .professional-mobile-toggle {
        display: flex !important;
        width: 45px !important;
        height: 45px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        position: relative !important;
        transition: all 0.3s ease !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        padding: 12px !important;
    }
    
    .professional-mobile-toggle:hover,
    .professional-mobile-toggle:active {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: scale(1.05) !important;
    }
    
    .professional-toggle-bar {
        width: 20px !important;
        height: 2.5px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
    }
    
    /* Toggle animation when active */
    .professional-mobile-toggle.active .professional-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .professional-mobile-toggle.active .professional-toggle-bar:nth-child(2) {
        opacity: 0 !important;
    }
    
    .professional-mobile-toggle.active .professional-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px) !important;
    }
    
    /* Toggle button when scrolled */
    .professional-header.scrolled .professional-mobile-toggle {
        background: rgba(59, 130, 246, 0.1) !important;
        border-color: rgba(59, 130, 246, 0.2) !important;
    }
    
    .professional-header.scrolled .professional-toggle-bar {
        background: #3b82f6 !important;
    }
    
    /* Old menu styles removed - using separate mobile sidebar system */
}

/* ===== EXTRA SMALL DEVICES ===== */
@media (max-width: 480px) {
    .professional-header {
        height: 65px !important;
    }
    
    .professional-nav {
        height: 65px !important;
    }
    
    .professional-container {
        padding: 0 16px !important;
    }
    
    .professional-logo-img {
        height: 40px !important;
    }
    
    .professional-logo-main {
        font-size: 14px !important;
    }
    
    .professional-logo-sub {
        font-size: 8px !important;
    }
    
    [dir="ltr"] .professional-logo-sub {
        font-size: 6px !important;
    }
    
    .professional-lang-btn,
    .professional-mobile-toggle {
        width: 42px !important;
        height: 42px !important;
    }
    
    /* Old menu responsive styles removed */
}

/* ===== LANDSCAPE MODE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .professional-header {
        height: 60px !important;
    }
    
    .professional-nav {
        height: 60px !important;
    }
    
    .professional-logo-img {
        height: 38px !important;
    }
    
    /* Old menu landscape styles removed */
}
